Add direct call to dep

This commit is contained in:
Jan Dittberner 2017-08-27 16:12:46 +02:00
parent 91e6d9ad29
commit c62801fcb7

3
Jenkinsfile vendored
View file

@ -4,7 +4,6 @@ pipeline {
environment { environment {
GOPATH = "${pwd()}/gocode" GOPATH = "${pwd()}/gocode"
PATH = "${pwd()}/gocode/bin:${env.PATH}"
} }
stages { stages {
@ -13,7 +12,7 @@ pipeline {
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()}' '${GOPATH}/src/git.cacert.org/cacert-boardvoting'" sh "ln -s '${pwd()}' '${GOPATH}/src/git.cacert.org/cacert-boardvoting'"
sh "go get -u github.com/golang/dep/cmd/dep" sh "go get -u github.com/golang/dep/cmd/dep"
sh "cd '${GOPATH}/src/git.cacert.org/cacert-boardvoting' ; dep ensure -v" sh "cd '${GOPATH}/src/git.cacert.org/cacert-boardvoting' ; ${GOPATH}/bin/dep ensure -v"
} }
} }
stage('Build') { stage('Build') {