summaryrefslogtreecommitdiff
path: root/Jenkinsfile
diff options
context:
space:
mode:
authorJan Dittberner <jan@dittberner.info>2017-08-27 21:43:40 +0200
committerJan Dittberner <jan@dittberner.info>2017-08-27 21:44:02 +0200
commit06e0a527379fea9887bfcab62384733e01b5b267 (patch)
tree1eb7f55235422826418adaad91f73a51198a2478 /Jenkinsfile
parent3fb815f6f100bb8ce940e7c333401fcaf43bc7a8 (diff)
downloadcacert-boardvoting-06e0a527379fea9887bfcab62384733e01b5b267.tar.gz
cacert-boardvoting-06e0a527379fea9887bfcab62384733e01b5b267.tar.xz
cacert-boardvoting-06e0a527379fea9887bfcab62384733e01b5b267.zip
Move environment declaration to stage blocks
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile9
1 files changed, 6 insertions, 3 deletions
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'