Web/Jenkinsfile

25 lines
430 B
Text
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:05:55 +01:00
git checkout ${env.GIT_COMMIT}'''
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
}
}