Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
daas
jwt-tokenissuer
Commits
076e5653
Commit
076e5653
authored
Apr 10, 2017
by
Morten Knutsen
Browse files
Jenkinsfile: Move the workaround inside the container.
parent
836396e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Jenkinsfile
View file @
076e5653
node
{
node
{
checkout
scm
checkout
scm
env
.
VERSION_STRING
=
"0.01-devel-${env.BUILD_ID}"
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
()
GIT_TAG
=
sh
(
returnStdout:
true
,
script:
"git tag --sort version:refname | tail -1"
).
trim
()
if
(
GIT_TAG
)
{
if
(
GIT_TAG
)
{
env
.
VERSION_STRING
=
GIT_TAG
env
.
VERSION_STRING
=
GIT_TAG
}
}
docker
.
image
(
'golang:1.8'
).
inside
{
docker
.
image
(
'golang:1.8'
).
inside
{
stage
'test'
stage
'test'
sh
'export \$HOME=\$PWD'
sh
'env'
sh
'env'
sh
'curl https://glide.sh/get | sh'
sh
'curl https://glide.sh/get | sh'
sh
'git config --global user.name "jenkins"'
sh
'git config --global user.name "jenkins"'
...
...
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