继续修改脚本

This commit is contained in:
2025-07-02 18:02:49 +08:00
parent 05a07de9ec
commit 8684f9446f

5
Jenkinsfile vendored
View File

@ -1,11 +1,12 @@
pipeline { pipeline {
agent any agent any
tools {
maven 'M3' // 必须在 Jenkins → Manage Jenkins → Global Tool Configuration 中配置过
}
environment { environment {
APP_NAME = "sczx-app" APP_NAME = "sczx-app"
DOCKER_IMAGE = "${APP_NAME}:latest" DOCKER_IMAGE = "${APP_NAME}:latest"
CONTAINER_NAME = "${APP_NAME}-container" CONTAINER_NAME = "${APP_NAME}-container"
PATH = "/usr/local/apache-maven-3.9.10/bin:${env.PATH}"
} }
stages { stages {