From df1f1db03f91717d6092336710600dae3ee98ac5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=96=87=E8=89=B3?= Date: Wed, 20 May 2026 10:50:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96jenkins?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 2adc59a86..dff27279f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -108,13 +108,8 @@ pipeline { steps { script { def cfg = PROJECT_CONFIG[params.PROJECT_NAME] - def buildDir = cfg.buildDir ?: params.PROJECT_NAME def imageTag = env.BUILD_TAG.toLowerCase() dir("projects/${cfg.imageName}") { - // fangjia-script 构建产物在 deliverables/script/target/classes,需同步过来 - if (cfg.buildDir) { - sh "rsync -a --delete ../../deliverables/${buildDir}/target/classes/ target/classes/" - } withDockerRegistry(credentialsId: 'DockerNexus', url: "http://${REGISTRY}") { sh "docker build -t ${REGISTRY}/${cfg.imageName}:${imageTag} ." sh "docker tag ${REGISTRY}/${cfg.imageName}:${imageTag} ${REGISTRY}/${cfg.imageName}:latest"