2020-02-25 13:10:28 +01:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
stages {
|
|
|
|
stage('Pull') {
|
2020-03-15 13:20:58 +01:00
|
|
|
when {
|
|
|
|
branch 'master'
|
|
|
|
}
|
2020-02-25 13:10:28 +01:00
|
|
|
steps {
|
|
|
|
sh '''cd /var/www/ellpeck
|
2021-03-17 03:30:30 +01:00
|
|
|
git pull'''
|
2020-02-25 13:10:28 +01:00
|
|
|
}
|
|
|
|
}
|
2020-04-02 21:54:20 +02:00
|
|
|
stage('Node') {
|
|
|
|
when {
|
|
|
|
branch 'master'
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
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
|
|
|
}
|
|
|
|
}
|