Web/Jenkinsfile
Ell c1d01df228
All checks were successful
Web/pipeline/head This commit looks good
fetch changes before checking out
2021-03-17 21:14:53 +01:00

26 lines
453 B
Groovy

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