Include $GOPATH in $PATH 0.4.2
authorJan Dittberner <jandd@cacert.org>
Thu, 29 Mar 2018 20:12:09 +0000 (22:12 +0200)
committerJan Dittberner <jandd@cacert.org>
Thu, 29 Mar 2018 20:12:09 +0000 (22:12 +0200)
Jenkinsfile

index 09e443c..56bfc82 100644 (file)
@@ -4,6 +4,7 @@ pipeline {
 
     environment {
         GOPATH = "${pwd(tmp: true)}/gocode"
+        PATH = "${GOPATH}/bin:${PATH}"
     }
 
     stages {
@@ -14,7 +15,7 @@ pipeline {
             steps {
                 sh "rm -rf '${GOPATH}/src/git.cacert.org' ; mkdir -p '${GOPATH}/src/git.cacert.org'"
                 sh "ln -s '${pwd()}' '${BUILDDIR}'"
-                sh "cd '${BUILDDIR}' ; go get -u github.com/golang/dep/cmd/dep && '${GOPATH}/bin/dep' ensure -v"
+                sh "cd '${BUILDDIR}' ; go get -u github.com/golang/dep/cmd/dep && dep ensure -v"
                 sh "go get -u github.com/shuLhan/go-bindata/go-bindata"
             }
         }