From df82cf91a6daa145906522fd928971ca6aa5f51a Mon Sep 17 00:00:00 2001 From: mindol1004 Date: Fri, 24 Mar 2023 13:01:36 +0900 Subject: [PATCH] =?UTF-8?q?=EC=97=85=EB=8D=B0=EC=9D=B4=ED=8A=B8=20'Jenkins?= =?UTF-8?q?file'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0d3b83f..7e8bd9a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -48,13 +48,13 @@ podTemplate( container("docker") { sh 'echo 2222' sh 'echo 3333' - docker.withRegistry("http://10.43.250.34:5000", 'REGISTRY_CREDENTIALS') { - sh 'echo 4444' - def dockerImage = docker.build("${image}:${tag}", './') + + /* sh 'docker build -t myimage:latest .' */ + sh 'docker login -u mindol1004 -p '$awlswn1318a' https://10.43.250.34:5000/v2/' + def dockerImage = docker.build("${image}:${tag}", './') dockerImage.push() dockerImage.push('latest') sh 'echo 5555' - } } } sh 'echo 6666'