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-user
Commits
cd53dc0d
Commit
cd53dc0d
authored
3 years ago
by
nivetha
Browse files
Options
Download
Plain Diff
Merge branch 'master' of
https://git.idc.tarento.com/smf/smf-user
parents
c61d0ad6
bf906bd0
master
bulkupload
delete-user
delete-user-fix
increase_timeout
institute-district
maney-test
sessionTimeout
updateEmailContentforOTP
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Jenkinsfile
+9
-4
Jenkinsfile
with
9 additions
and
4 deletions
+9
-4
Jenkinsfile
+
9
−
4
View file @
cd53dc0d
...
...
@@ -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 "
+
"user"
+
"_"
+
commit_hash
+
"_"
+
env
.
BUILD_NUMBER
,
returnStdout:
true
).
trim
()
echo
"${env.commit_id}"
}
}
stage
(
'docker-pre-build'
)
{
...
...
@@ -24,20 +27,22 @@ node() {
stage
(
'docker-build'
)
{
sh
'''
commit_id=$(git rev-parse --short HEAD)
echo $commit_id> commit_id.txt
docker build --no-cache -f Dockerfile -t $docker_server/$docker_repo:$commit_id .
'''
}
stage
(
'docker-push'
)
{
sh
'''
pwd
commit_id=$(git rev-parse --short HEAD)
docker push $docker_server/$docker_repo:$commit_id
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