try using customWorkspace for the jenkins build
Some checks failed
Web/pipeline/head There was a failure building this commit

This commit is contained in:
Ell 2021-03-17 19:21:46 +01:00
parent 8a5aec6867
commit 95d15e026a

17
Jenkinsfile vendored
View file

@ -1,21 +1,16 @@
pipeline { pipeline {
agent any agent {
stages { node {
stage('Pull') { customWorkspace '/var/www/ellpeck'
when {
branch 'master'
}
steps {
sh '''cd /var/www/ellpeck
git pull'''
}
} }
}
stages {
stage('Node') { stage('Node') {
when { when {
branch 'master' branch 'master'
} }
steps { steps {
sh '''cd /var/www/ellpeck/node sh '''cd node
npm install npm install
node blog.js node blog.js
node rss.js''' node rss.js'''