summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Dittberner <jan@dittberner.info>2017-08-27 21:46:49 +0200
committerJan Dittberner <jan@dittberner.info>2017-08-27 21:46:49 +0200
commit4afeb6ddfc8963ba65a8f7d3496922e0a7736e16 (patch)
tree5e2a2aaa2fdd09c697b9d7a86d133f724b3bdcad
parent06e0a527379fea9887bfcab62384733e01b5b267 (diff)
downloadcacert-boardvoting-4afeb6ddfc8963ba65a8f7d3496922e0a7736e16.tar.gz
cacert-boardvoting-4afeb6ddfc8963ba65a8f7d3496922e0a7736e16.tar.xz
cacert-boardvoting-4afeb6ddfc8963ba65a8f7d3496922e0a7736e16.zip
Change to build directory inside shell blocks
-rw-r--r--Jenkinsfile8
1 files changed, 2 insertions, 6 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index ba5ea4d..b983486 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -14,9 +14,7 @@ pipeline {
steps {
sh "rm -rf '${GOPATH}/src/git.cacert.org' ; mkdir -p '${GOPATH}/src/git.cacert.org'"
sh "ln -s '${pwd()}' '${BUILDDIR}'"
- dir("${BUILDDIR}") {
- sh "pwd ; go get -u github.com/golang/dep/cmd/dep && '${GOPATH}/bin/dep' ensure -v"
- }
+ sh "cd '${BUILDDIR} ; go get -u github.com/golang/dep/cmd/dep && '${GOPATH}/bin/dep' ensure -v"
}
}
stage('Build') {
@@ -24,9 +22,7 @@ pipeline {
BUILDDIR = "${GOPATH}/src/git.cacert.org/cacert-boardvoting"
}
steps {
- dir("${BUILDDIR}") {
- sh 'make clean && make'
- }
+ sh "cd '${BUILDDIR}' ; make clean && make"
}
}
stage('Create build output') {