Commit 076e5653 authored by Morten Knutsen's avatar Morten Knutsen
Browse files

Jenkinsfile: Move the workaround inside the container.

parent 836396e6
node {
checkout scm
env.VERSION_STRING = "0.01-devel-${env.BUILD_ID}"
env.HOME = env.PWD
GIT_TAG = sh(returnStdout: true, script: "git tag --sort version:refname | tail -1").trim()
if(GIT_TAG) {
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"'
......
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