Add direct call to dep
authorJan Dittberner <jan@dittberner.info>
Sun, 27 Aug 2017 14:12:46 +0000 (16:12 +0200)
committerJan Dittberner <jan@dittberner.info>
Sun, 27 Aug 2017 14:12:46 +0000 (16:12 +0200)
Jenkinsfile

index 37b602f..44d1d68 100644 (file)
@@ -4,7 +4,6 @@ pipeline {
 
     environment {
         GOPATH = "${pwd()}/gocode"
-        PATH = "${pwd()}/gocode/bin:${env.PATH}"
     }
 
     stages {
@@ -13,7 +12,7 @@ pipeline {
                 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' ; dep ensure -v"
+                sh "cd '${GOPATH}/src/git.cacert.org/cacert-boardvoting' ; ${GOPATH}/bin/dep ensure -v"
             }
         }
         stage('Build') {