Commit 66de1aa2 authored by Morten Knutsen's avatar Morten Knutsen
Browse files

Jenkinsfile: Needs double quotes and env qualifier to use env vars in shell.

parent 9666cb54
......@@ -9,8 +9,8 @@ node {
stage 'test'
sh 'env'
sh 'curl | sh'
sh 'mv $GOPATH/src/ $GOPATH/src/'
sh 'cd $GOPATH/src/'
sh "mv ${env.GOPATH}/src/ ${env.GOPATH}/src/"
sh "cd ${env.GOPATH}/src/"
sh 'glide install'
sh 'make test'
......@@ -22,7 +22,7 @@ node {
stage 'package'
unstash 'binary'
sh 'mv jwt-tokenissuer /src/'
sh 'fpm -s dir /src=/opt/jwt-tokenissuer -t deb -n jwt-tokenissuer -v $VERSION_STRING'
sh "fpm -s dir /src=/opt/jwt-tokenissuer -t deb -n jwt-tokenissuer -v ${env.VERSION_STRING}"
archive includes: '*.deb'
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