diff --git a/Jenkinsfile b/Jenkinsfile index 09e443c..56bfc82 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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" } }