From 904018f92a7a576eefdcf6a545e6c4ec53097f92 Mon Sep 17 00:00:00 2001 From: zhangli <123879394@qq.com> Date: Wed, 2 Jul 2025 17:53:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=8C=87=E5=AE=9Amaven?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 5224acc..81b5501 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,6 +1,15 @@ 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"