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