Web/Jenkinsfile
Ell 21b8fbb09f
Some checks failed
Web/pipeline/head There was a failure building this commit
always check out the exact commit
2021-03-17 21:05:55 +01:00

25 lines
430 B
Groovy

pipeline {
agent any
stages {
stage('Pull') {
when {
branch 'master'
}
steps {
sh '''cd /var/www/ellpeck
git checkout ${env.GIT_COMMIT}'''
}
}
stage('Node') {
when {
branch 'master'
}
steps {
sh '''cd /var/www/ellpeck/node
npm install
node blog.js
node rss.js'''
}
}
}
}