Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
daas
jwt-tokenissuer
Commits
c915ea6f
Commit
c915ea6f
authored
Apr 10, 2017
by
Morten Knutsen
Browse files
Jenkinsfile: Wrap it all in a withEnv block instead.
parent
66fd6aa8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Jenkinsfile
View file @
c915ea6f
...
...
@@ -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'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment