From 6dcb6b7843267189117dd38df5030d2e10bccb4d Mon Sep 17 00:00:00 2001 From: zhouxin Date: Fri, 9 Dec 2022 15:28:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9E=84=E5=BB=BA=E6=96=87=E4=BB=B6=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jenkinsfile_poms_api | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/jenkinsfile_poms_api b/jenkinsfile_poms_api index c3e7a7d..2349c6f 100644 --- a/jenkinsfile_poms_api +++ b/jenkinsfile_poms_api @@ -2,18 +2,16 @@ pipeline { agent { node{ label 'jnlp-slave' - } + } } stages { - stage('Testing pep-report-api ......') { + stage('Testing projectManagement api......') { steps { - sh 'switch-auth.sh anxinyun' - buildName "#${BUILD_NUMBER} ~/fs-cloud/${JOB_NAME}:${IMAGE_VERSION}" - buildDescription "registry.cn-hangzhou.aliyuncs.com/${CLOUD}/${JOB_NAME}:${IMAGE_VERSION}" - sh 'docker build -t registry.cn-hangzhou.aliyuncs.com/${CLOUD}/${JOB_NAME}:${IMAGE_VERSION} ./api' - sh 'docker push registry.cn-hangzhou.aliyuncs.com/${CLOUD}/${JOB_NAME}:${IMAGE_VERSION}' - } + buildName '#${BUILD_NUMBER} ~/pep/${JOB_NAME}:${IMAGE_VERSION}' + buildDescription 'harbor.anxinyun.cn/pep/${JOB_NAME}:${IMAGE_VERSION}' + sh 'nerdctl build -t harbor.anxinyun.cn/pep/${JOB_NAME}:${IMAGE_VERSION} .' + sh 'nerdctl push harbor.anxinyun.cn/pep/${JOB_NAME}:${IMAGE_VERSION}' + }} } - } } \ No newline at end of file