Change to build directory inside shell blocks
This commit is contained in:
parent
06e0a52737
commit
4afeb6ddfc
1 changed files with 2 additions and 6 deletions
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
|
@ -14,9 +14,7 @@ pipeline {
|
||||||
steps {
|
steps {
|
||||||
sh "rm -rf '${GOPATH}/src/git.cacert.org' ; mkdir -p '${GOPATH}/src/git.cacert.org'"
|
sh "rm -rf '${GOPATH}/src/git.cacert.org' ; mkdir -p '${GOPATH}/src/git.cacert.org'"
|
||||||
sh "ln -s '${pwd()}' '${BUILDDIR}'"
|
sh "ln -s '${pwd()}' '${BUILDDIR}'"
|
||||||
dir("${BUILDDIR}") {
|
sh "cd '${BUILDDIR} ; go get -u github.com/golang/dep/cmd/dep && '${GOPATH}/bin/dep' ensure -v"
|
||||||
sh "pwd ; go get -u github.com/golang/dep/cmd/dep && '${GOPATH}/bin/dep' ensure -v"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
|
@ -24,9 +22,7 @@ pipeline {
|
||||||
BUILDDIR = "${GOPATH}/src/git.cacert.org/cacert-boardvoting"
|
BUILDDIR = "${GOPATH}/src/git.cacert.org/cacert-boardvoting"
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
dir("${BUILDDIR}") {
|
sh "cd '${BUILDDIR}' ; make clean && make"
|
||||||
sh 'make clean && make'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Create build output') {
|
stage('Create build output') {
|
||||||
|
|
Loading…
Reference in a new issue