2020-02-25 13:10:28 +01:00
|
|
|
pipeline {
|
2021-03-17 19:46:58 +01:00
|
|
|
agent any
|
2021-03-17 19:21:46 +01:00
|
|
|
stages {
|
2021-03-17 19:46:58 +01:00
|
|
|
stage('Pull') {
|
|
|
|
when {
|
|
|
|
branch 'master'
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh '''cd /var/www/ellpeck
|
2021-03-17 21:07:25 +01:00
|
|
|
git checkout ${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
|
|
|
}
|
|
|
|
}
|