Include $GOPATH in $PATH

This commit is contained in:
Jan Dittberner 2018-03-29 22:12:09 +02:00
parent 369c9dab16
commit 8cf5ad44a4

3
Jenkinsfile vendored
View 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"
}
}