Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
uphrh-smf-gateway
Commits
da2963bf
Commit
da2963bf
authored
3 years ago
by
NetOps
Browse files
Options
Download
Patches
Plain Diff
Update Jenkinsfile
parent
3ce1f592
master
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Jenkinsfile
+9
-0
Jenkinsfile
with
9 additions
and
0 deletions
+9
-0
Jenkinsfile
+
9
−
0
View file @
da2963bf
...
...
@@ -10,6 +10,9 @@ node() {
stage
(
'Checkout'
)
{
cleanWs
()
checkout
scm
commit_hash
=
sh
(
script:
'git rev-parse --short HEAD'
,
returnStdout:
true
).
trim
()
env
.
commit_id
=
sh
(
script:
"echo "
+
"form"
+
"_"
+
commit_hash
+
"_"
+
env
.
BUILD_NUMBER
,
returnStdout:
true
).
trim
()
echo
"${env.commit_id}"
}
}
stage
(
'docker-pre-build'
)
{
...
...
@@ -38,6 +41,12 @@ node() {
docker rmi -f $docker_server/$docker_repo:$commit_id
'''
}
stage
(
'ArchiveArtifacts'
)
{
sh
(
"echo ${commit_id} > commit_id.txt"
)
archiveArtifacts
"commit_id.txt"
currentBuild
.
description
=
"${commit_id}"
}
}
catch
(
err
)
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets