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 {
|
pipeline {
|
||||||
agent any
|
agent {
|
||||||
|
node {
|
||||||
|
customWorkspace '/var/www/ellpeck'
|
||||||
|
}
|
||||||
|
}
|
||||||
stages {
|
stages {
|
||||||
stage('Pull') {
|
|
||||||
when {
|
|
||||||
branch 'master'
|
|
||||||
}
|
|
||||||
steps {
|
|
||||||
sh '''cd /var/www/ellpeck
|
|
||||||
git pull'''
|
|
||||||
}
|
|
||||||
}
|
|
||||||
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'''
|
||||||
|
|
Loading…
Reference in a new issue