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 {
agent any
stages {
stage('Pull') {
when {
branch 'master'
}
steps {
sh '''cd /var/www/ellpeck
git pull'''
}
agent {
node {
customWorkspace '/var/www/ellpeck'
}
}
stages {
stage('Node') {
when {
branch 'master'
}
steps {
sh '''cd /var/www/ellpeck/node
sh '''cd node
npm install
node blog.js
node rss.js'''