Web/Jenkinsfile

21 lines
332 B
Text
Raw Normal View History

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