try using customWorkspace for the jenkins build
Some checks failed
Web/pipeline/head There was a failure building this commit
Some checks failed
Web/pipeline/head There was a failure building this commit
This commit is contained in:
parent
8a5aec6867
commit
95d15e026a
1 changed files with 6 additions and 11 deletions
17
Jenkinsfile
vendored
17
Jenkinsfile
vendored
|
@ -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'''
|
||||
|
|
Loading…
Reference in a new issue