Commit 3ce1f592 authored by NetOps's avatar NetOps
Browse files

Update Jenkinsfile

parent 8f40c7cb
No related merge requests found
Showing with 0 additions and 3 deletions
+0 -3
......@@ -27,7 +27,6 @@ node() {
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 .
docker tag $docker_server/$docker_repo:$commit_id $docker_server/$docker_repo:$image_tag
'''
}
stage('docker-push') {
......@@ -36,9 +35,7 @@ node() {
pwd
commit_id=$(git rev-parse --short HEAD)
docker push $docker_server/$docker_repo:$commit_id
docker push $docker_server/$docker_repo:$image_tag
docker rmi -f $docker_server/$docker_repo:$commit_id
docker rmi -f $docker_server/$docker_repo:$image_tag
'''
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment