继续修改脚本
This commit is contained in:
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user