Commit c915ea6f authored by Morten Knutsen's avatar Morten Knutsen
Browse files

Jenkinsfile: Wrap it all in a withEnv block instead.

parent 66fd6aa8
......@@ -6,18 +6,19 @@ node {
env.VERSION_STRING = GIT_TAG
}
docker.image('golang:1.8').inside {
stage 'test'
sh 'export HOME=\$PWD'
sh 'env'
sh 'curl https://glide.sh/get | sh'
sh 'git config --global user.name "jenkins"'
sh 'git config --global user.email "jenkins@localhost"'
sh 'glide --debug install'
sh 'make test'
withEnv(["HOME=${env.WORKSPACE}"]) {
stage 'test'
sh 'env'
sh 'curl https://glide.sh/get | sh'
sh 'git config --global user.name "jenkins"'
sh 'git config --global user.email "jenkins@localhost"'
sh 'glide --debug install'
sh 'make test'
stage 'build'
sh 'make build'
stash includes: 'dist/linux-amd64/jwt-tokenissuer', name: 'binary'
stage 'build'
sh 'make build'
stash includes: 'dist/linux-amd64/jwt-tokenissuer', name: 'binary'
}
}
docker.image('cdrx/fpm-debian:8').inside {
stage 'package'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment