From d01110198a044d6248cad96c54a8f570f3d849a3 Mon Sep 17 00:00:00 2001 From: fyf Date: Tue, 10 May 2022 14:51:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 6 +++--- k8s_datav.yaml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index f53afa1..47cc27d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -74,7 +74,7 @@ pipeline{ echo "3.Build Docker Image Stage" if(params.operation=='develop') { - sh "docker build -t 111.9.47.105:10249/bpa/datav:${build_tag} ." + sh "docker build -t 10.2.1.24:10242/bpa/datav:${build_tag} ." } } } @@ -86,10 +86,10 @@ pipeline{ script{ echo "4.Push Docker Image Stage" withCredentials([usernamePassword(credentialsId: 'harbor', passwordVariable: 'harborPassword', usernameVariable: 'harborUser')]) { - sh "docker login -u ${harborUser} -p ${harborPassword} 111.9.47.105:10249" + sh "docker login -u ${harborUser} -p ${harborPassword} 10.2.1.24:10242" if(params.operation=='develop') { - sh "docker push 111.9.47.105:10249/bpa/datav:${build_tag}" + sh "docker push 10.2.1.24:10242/bpa/datav:${build_tag}" } } } diff --git a/k8s_datav.yaml b/k8s_datav.yaml index c8374dc..8a099a3 100644 --- a/k8s_datav.yaml +++ b/k8s_datav.yaml @@ -15,7 +15,7 @@ spec: app: datav spec: containers: - - image: 111.9.47.105:10249/bpa/datav: + - image: 10.2.1.24:10240/bpa/datav: imagePullPolicy: IfNotPresent name: datav env: