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
e531b0db
Commit
e531b0db
authored
3 years ago
by
NetOps
Browse files
Options
Download
Patches
Plain Diff
Update Jenkinsfile
parent
024b7e90
master
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Jenkinsfile
+0
-4
Jenkinsfile
with
0 additions
and
4 deletions
+0
-4
Jenkinsfile
+
0
−
4
View file @
e531b0db
...
...
@@ -27,16 +27,12 @@ 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
'''
...
...
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