From 47b99c0e89e51f9c3d14e1c07cda85064d8add1a Mon Sep 17 00:00:00 2001 From: lihongjie0209 Date: Sat, 12 Aug 2023 11:38:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96mvn=E6=89=93=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index dc17f1c6..bee8e9ac 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -23,47 +23,16 @@ pipeline{ sh "docker login -u ${u} -p ${p} 192.168.0.118" } sh "docker build . -t coal:${env.BRANCH_NAME}" - - - } - - } - - stage("打标签"){ - - - steps{ - sh "docker tag coal:${env.BRANCH_NAME} 192.168.0.118/coal/coal:${env.BRANCH_NAME}" - - - } - - } - - stage("推送到仓库"){ - - - steps{ - sh "docker push 192.168.0.118/coal/coal:${env.BRANCH_NAME}" - } } - stage("清理无用的层"){ - steps{ - sh "docker image prune -f" - - - } - - } stage("重新部署"){