From 8cf5ad44a475def645a663534fdcfcc3af4166aa Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Thu, 29 Mar 2018 22:12:09 +0200 Subject: [PATCH] Include $GOPATH in $PATH --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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" } }