From 05a07de9ec5e2dfc2d01bd630f42fdf868028570 Mon Sep 17 00:00:00 2001 From: zhangli <123879394@qq.com> Date: Wed, 2 Jul 2025 17:56:23 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=A7=E7=BB=AD=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 81b5501..e9705b5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,19 +1,11 @@ pipeline { agent any - tools { - maven 'M3' // 这个名称要和 Global Tool Configuration 中一致 - } - stages { - stage('Build with Maven') { - steps { - sh 'mvn clean package' - } - } - } + environment { APP_NAME = "sczx-app" DOCKER_IMAGE = "${APP_NAME}:latest" CONTAINER_NAME = "${APP_NAME}-container" + PATH = "/usr/local/apache-maven-3.9.10/bin:${env.PATH}" } stages {