Web/Jenkinsfile

26 lines
453 B
Plaintext
Raw Normal View History

2020-02-25 13:10:28 +01:00
pipeline {
2021-03-17 19:46:58 +01:00
agent any
stages {
2021-03-17 19:46:58 +01:00
stage('Pull') {
when {
branch 'master'
}
steps {
sh '''cd /var/www/ellpeck
2021-03-17 21:14:53 +01:00
git fetch
git checkout ${GIT_COMMIT} -f'''
2021-03-17 19:46:58 +01:00
}
}
2020-04-02 21:54:20 +02:00
stage('Node') {
when {
branch 'master'
}
steps {
2021-03-17 19:46:58 +01:00
sh '''cd /var/www/ellpeck/node
2021-03-17 03:30:30 +01:00
npm install
node blog.js
node rss.js'''
2020-04-02 21:54:20 +02:00
}
}
2020-02-25 13:10:28 +01:00
}
}