diff --git a/rc-auth/pipeline b/rc-auth/pipeline index 8b38ebe9..d03f4059 100644 --- a/rc-auth/pipeline +++ b/rc-auth/pipeline @@ -9,7 +9,7 @@ pipeline { } environment { - KUBECONFIG = "/var/jenkins_home/.kube/prod-aliyun-config" + KUBECONFIG = "/var/jenkins_home/.kube/cls-bf654m8u-config" PATH = "/var/jenkins_home/docker-cli/bin:/var/jenkins_home/jdk-17/bin:/var/jenkins_home/kubectl/bin:${env.PATH}" BUILD_IMAGE = "${sh(script:'echo -n atyou-prod:auth-$(date +%Y%m%dv%H%M%S)', returnStdout: true)}" JAR_FILE = "" @@ -66,7 +66,7 @@ pipeline { stage('Apply') { steps { sh "pwd && whoami" - sh "kubectl -n ${K8S_NAMESPACE} set image deployment/${K8S_DEPLOYMENT} ${K8S_APP_LABEL}=${IMAGE_REP_TAG.replace('tuokemi-con-registry', 'tuokemi-con-registry-vpc')}" + sh "kubectl -n ${K8S_NAMESPACE} set image deployment/${K8S_DEPLOYMENT} ${K8S_APP_LABEL}=${IMAGE_REP_TAG}" } } } diff --git a/rc-gateway/pipeline b/rc-gateway/pipeline index 0622273e..aa46375f 100644 --- a/rc-gateway/pipeline +++ b/rc-gateway/pipeline @@ -9,7 +9,7 @@ pipeline { } environment { - KUBECONFIG = "/var/jenkins_home/.kube/prod-aliyun-config" + KUBECONFIG = "/var/jenkins_home/.kube/cls-bf654m8u-config" PATH = "/var/jenkins_home/docker-cli/bin:/var/jenkins_home/jdk-17/bin:/var/jenkins_home/kubectl/bin:${env.PATH}" BUILD_IMAGE = "${sh(script:'echo -n atyou-prod:gateway-$(date +%Y%m%dv%H%M%S)', returnStdout: true)}" JAR_FILE = "" @@ -66,7 +66,7 @@ pipeline { stage('Apply') { steps { sh "pwd && whoami" - sh "kubectl -n ${K8S_NAMESPACE} set image deployment/${K8S_DEPLOYMENT} ${K8S_APP_LABEL}=${IMAGE_REP_TAG.replace('tuokemi-con-registry', 'tuokemi-con-registry-vpc')}" + sh "kubectl -n ${K8S_NAMESPACE} set image deployment/${K8S_DEPLOYMENT} ${K8S_APP_LABEL}=${IMAGE_REP_TAG}" } } } diff --git a/rc-service/rc-service-console/pipeline b/rc-service/rc-service-console/pipeline index a6ebdd14..50719126 100644 --- a/rc-service/rc-service-console/pipeline +++ b/rc-service/rc-service-console/pipeline @@ -9,7 +9,7 @@ pipeline { } environment { - KUBECONFIG = "/var/jenkins_home/.kube/prod-aliyun-config" + KUBECONFIG = "/var/jenkins_home/.kube/cls-bf654m8u-config" PATH = "/var/jenkins_home/docker-cli/bin:/var/jenkins_home/jdk-17/bin:/var/jenkins_home/kubectl/bin:${env.PATH}" BUILD_IMAGE = "${sh(script:'echo -n atyou-prod:console-$(date +%Y%m%dv%H%M%S)', returnStdout: true)}" JAR_FILE = "" @@ -66,7 +66,7 @@ pipeline { stage('Apply') { steps { sh "pwd && whoami" - sh "kubectl -n ${K8S_NAMESPACE} set image deployment/${K8S_DEPLOYMENT} ${K8S_APP_LABEL}=${IMAGE_REP_TAG.replace('tuokemi-con-registry', 'tuokemi-con-registry-vpc')}" + sh "kubectl -n ${K8S_NAMESPACE} set image deployment/${K8S_DEPLOYMENT} ${K8S_APP_LABEL}=${IMAGE_REP_TAG}" } } } diff --git a/rc-service/rc-service-external/pipeline b/rc-service/rc-service-external/pipeline index 396568f3..8d17ffcd 100644 --- a/rc-service/rc-service-external/pipeline +++ b/rc-service/rc-service-external/pipeline @@ -9,7 +9,7 @@ pipeline { } environment { - KUBECONFIG = "/var/jenkins_home/.kube/prod-aliyun-config" + KUBECONFIG = "/var/jenkins_home/.kube/cls-bf654m8u-config" PATH = "/var/jenkins_home/docker-cli/bin:/var/jenkins_home/jdk-17/bin:/var/jenkins_home/kubectl/bin:${env.PATH}" BUILD_IMAGE = "${sh(script:'echo -n atyou-prod:external-$(date +%Y%m%dv%H%M%S)', returnStdout: true)}" JAR_FILE = "" @@ -66,7 +66,7 @@ pipeline { stage('Apply') { steps { sh "pwd && whoami" - sh "kubectl -n ${K8S_NAMESPACE} set image deployment/${K8S_DEPLOYMENT} ${K8S_APP_LABEL}=${IMAGE_REP_TAG.replace('tuokemi-con-registry', 'tuokemi-con-registry-vpc')}" + sh "kubectl -n ${K8S_NAMESPACE} set image deployment/${K8S_DEPLOYMENT} ${K8S_APP_LABEL}=${IMAGE_REP_TAG}" } } } diff --git a/rc-service/rc-service-live/pipeline b/rc-service/rc-service-live/pipeline index 4941ec9f..8e43b2f1 100644 --- a/rc-service/rc-service-live/pipeline +++ b/rc-service/rc-service-live/pipeline @@ -9,7 +9,7 @@ pipeline { } environment { - KUBECONFIG = "/var/jenkins_home/.kube/prod-aliyun-config" + KUBECONFIG = "/var/jenkins_home/.kube/cls-bf654m8u-config" PATH = "/var/jenkins_home/docker-cli/bin:/var/jenkins_home/jdk-17/bin:/var/jenkins_home/kubectl/bin:${env.PATH}" BUILD_IMAGE = "${sh(script:'echo -n atyou-prod:live-$(date +%Y%m%dv%H%M%S)', returnStdout: true)}" JAR_FILE = "" @@ -66,7 +66,7 @@ pipeline { stage('Apply') { steps { sh "pwd && whoami" - sh "kubectl -n ${K8S_NAMESPACE} set image deployment/${K8S_DEPLOYMENT} ${K8S_APP_LABEL}=${IMAGE_REP_TAG.replace('tuokemi-con-registry', 'tuokemi-con-registry-vpc')}" + sh "kubectl -n ${K8S_NAMESPACE} set image deployment/${K8S_DEPLOYMENT} ${K8S_APP_LABEL}=${IMAGE_REP_TAG}" } } } diff --git a/rc-service/rc-service-order/pipeline b/rc-service/rc-service-order/pipeline index 9e1e8b76..669e348d 100644 --- a/rc-service/rc-service-order/pipeline +++ b/rc-service/rc-service-order/pipeline @@ -9,7 +9,7 @@ pipeline { } environment { - KUBECONFIG = "/var/jenkins_home/.kube/prod-aliyun-config" + KUBECONFIG = "/var/jenkins_home/.kube/cls-bf654m8u-config" PATH = "/var/jenkins_home/docker-cli/bin:/var/jenkins_home/jdk-17/bin:/var/jenkins_home/kubectl/bin:${env.PATH}" BUILD_IMAGE = "${sh(script:'echo -n atyou-prod:order-$(date +%Y%m%dv%H%M%S)', returnStdout: true)}" JAR_FILE = "" @@ -66,7 +66,7 @@ pipeline { stage('Apply') { steps { sh "pwd && whoami" - sh "kubectl -n ${K8S_NAMESPACE} set image deployment/${K8S_DEPLOYMENT} ${K8S_APP_LABEL}=${IMAGE_REP_TAG.replace('tuokemi-con-registry', 'tuokemi-con-registry-vpc')}" + sh "kubectl -n ${K8S_NAMESPACE} set image deployment/${K8S_DEPLOYMENT} ${K8S_APP_LABEL}=${IMAGE_REP_TAG}" } } } diff --git a/rc-service/rc-service-other/pipeline b/rc-service/rc-service-other/pipeline index 7e5e1e9f..8801c599 100644 --- a/rc-service/rc-service-other/pipeline +++ b/rc-service/rc-service-other/pipeline @@ -9,7 +9,7 @@ pipeline { } environment { - KUBECONFIG = "/var/jenkins_home/.kube/prod-aliyun-config" + KUBECONFIG = "/var/jenkins_home/.kube/cls-bf654m8u-config" PATH = "/var/jenkins_home/docker-cli/bin:/var/jenkins_home/jdk-17/bin:/var/jenkins_home/kubectl/bin:${env.PATH}" BUILD_IMAGE = "${sh(script:'echo -n atyou-prod:other-$(date +%Y%m%dv%H%M%S)', returnStdout: true)}" JAR_FILE = "" @@ -66,7 +66,7 @@ pipeline { stage('Apply') { steps { sh "pwd && whoami" - sh "kubectl -n ${K8S_NAMESPACE} set image deployment/${K8S_DEPLOYMENT} ${K8S_APP_LABEL}=${IMAGE_REP_TAG.replace('tuokemi-con-registry', 'tuokemi-con-registry-vpc')}" + sh "kubectl -n ${K8S_NAMESPACE} set image deployment/${K8S_DEPLOYMENT} ${K8S_APP_LABEL}=${IMAGE_REP_TAG}" } } } diff --git a/rc-service/rc-service-wallet/pipeline b/rc-service/rc-service-wallet/pipeline index 5ddd3b4f..da4062ee 100644 --- a/rc-service/rc-service-wallet/pipeline +++ b/rc-service/rc-service-wallet/pipeline @@ -9,7 +9,7 @@ pipeline { } environment { - KUBECONFIG = "/var/jenkins_home/.kube/prod-aliyun-config" + KUBECONFIG = "/var/jenkins_home/.kube/cls-bf654m8u-config" PATH = "/var/jenkins_home/docker-cli/bin:/var/jenkins_home/jdk-17/bin:/var/jenkins_home/kubectl/bin:${env.PATH}" BUILD_IMAGE = "${sh(script:'echo -n atyou-prod:wallet-$(date +%Y%m%dv%H%M%S)', returnStdout: true)}" JAR_FILE = "" @@ -66,7 +66,7 @@ pipeline { stage('Apply') { steps { sh "pwd && whoami" - sh "kubectl -n ${K8S_NAMESPACE} set image deployment/${K8S_DEPLOYMENT} ${K8S_APP_LABEL}=${IMAGE_REP_TAG.replace('tuokemi-con-registry', 'tuokemi-con-registry-vpc')}" + sh "kubectl -n ${K8S_NAMESPACE} set image deployment/${K8S_DEPLOYMENT} ${K8S_APP_LABEL}=${IMAGE_REP_TAG}" } } }