From 3ce1f592afed9bc4763b9500fc8262e001f06af0 Mon Sep 17 00:00:00 2001
From: NetOps <idcnetops@tarento.com>
Date: Tue, 25 Jan 2022 13:51:10 +0000
Subject: [PATCH] Update Jenkinsfile

---
 Jenkinsfile | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 4655b6d..3b0e0eb 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -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
                   '''
        }
 
-- 
GitLab