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
|
|
|
|
git pull'''
|
|
|
|
}
|
|
|
|
}
|
2020-04-02 21:54:20 +02:00
|
|
|
stage('Node') {
|
|
|
|
when {
|
|
|
|
branch 'master'
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh '''cd /var/www/ellpeck/node
|
|
|
|
node blog.js
|
|
|
|
node rss.js'''
|
|
|
|
}
|
|
|
|
}
|
2020-02-25 13:10:28 +01:00
|
|
|
}
|
|
|
|
}
|