summaryrefslogtreecommitdiff
path: root/Jenkinsfile
diff options
context:
space:
mode:
authorJan Dittberner <jan@dittberner.info>2017-08-27 21:25:47 +0200
committerJan Dittberner <jan@dittberner.info>2017-08-27 21:29:58 +0200
commit9398d90a3874021897b758bb03023a635a29ffc9 (patch)
treebff0e2722804a43a8bf917316055541b593f4cbe /Jenkinsfile
parent9b07f3e5384668d84daaa9a062b6c967e5f2ee1b (diff)
downloadcacert-boardvoting-9398d90a3874021897b758bb03023a635a29ffc9.tar.gz
cacert-boardvoting-9398d90a3874021897b758bb03023a635a29ffc9.tar.xz
cacert-boardvoting-9398d90a3874021897b758bb03023a635a29ffc9.zip
Use temporary path for gopath
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile14
1 files changed, 9 insertions, 5 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index 44d1d68..acc6234 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -3,7 +3,7 @@ pipeline {
agent any
environment {
- GOPATH = "${pwd()}/gocode"
+ GOPATH = "${pwd(tmp: true)}/gocode"
}
stages {
@@ -11,14 +11,18 @@ pipeline {
steps {
sh "rm -rf '${GOPATH}/src/git.cacert.org' ; mkdir -p '${GOPATH}/src/git.cacert.org'"
sh "ln -s '${pwd()}' '${GOPATH}/src/git.cacert.org/cacert-boardvoting'"
- sh "go get -u github.com/golang/dep/cmd/dep"
- sh "cd '${GOPATH}/src/git.cacert.org/cacert-boardvoting' ; ${GOPATH}/bin/dep ensure -v"
+ dir(path: "${GOPATH}/src/git.cacert.org/cacert-boardvoting") {
+ sh "go get -u github.com/golang/dep/cmd/dep"
+ sh "${GOPATH}/bin/dep ensure -v"
+ }
}
}
stage('Build') {
steps {
- sh 'make clean'
- sh 'make'
+ dir(path: "${GOPATH}/src/git.cacert.org/cacert-boardvoting") {
+ sh 'make clean'
+ sh 'make'
+ }
}
}
stage('Create build output') {