diff --git a/Jenkinsfile b/Jenkinsfile index 6e97b0e..ba5ea4d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -7,10 +7,10 @@ pipeline { } stages { - environment { - BUILDDIR = "${GOPATH}/src/git.cacert.org/cacert-boardvoting" - } stage('Fetch go dependencies') { + environment { + BUILDDIR = "${GOPATH}/src/git.cacert.org/cacert-boardvoting" + } steps { sh "rm -rf '${GOPATH}/src/git.cacert.org' ; mkdir -p '${GOPATH}/src/git.cacert.org'" sh "ln -s '${pwd()}' '${BUILDDIR}'" @@ -20,6 +20,9 @@ pipeline { } } stage('Build') { + environment { + BUILDDIR = "${GOPATH}/src/git.cacert.org/cacert-boardvoting" + } steps { dir("${BUILDDIR}") { sh 'make clean && make'