Include $GOPATH in $PATH
This commit is contained in:
parent
369c9dab16
commit
8cf5ad44a4
1 changed files with 2 additions and 1 deletions
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue