25 lines
No EOL
430 B
Groovy
25 lines
No EOL
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'''
|
|
}
|
|
}
|
|
}
|
|
} |