diff --git a/Jenkinsfile b/Jenkinsfile index e9705b5..3f6b72f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,11 +1,12 @@ pipeline { agent any - + tools { + maven 'M3' // 必须在 Jenkins → Manage Jenkins → Global Tool Configuration 中配置过 + } 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 {