diff --git a/seer-mall/seer-mall-service-app-bootstrap/Jenkinsfile b/seer-mall/seer-mall-service-app-bootstrap/Jenkinsfile index 598808f..84b04d4 100644 --- a/seer-mall/seer-mall-service-app-bootstrap/Jenkinsfile +++ b/seer-mall/seer-mall-service-app-bootstrap/Jenkinsfile @@ -29,6 +29,7 @@ pipeline { DEPLOY_USER = 'root' LOGS_HOST_PATH = '/app/java/seer-mall/logs' LOGS_CONTAINER_PATH = '/app/java/seer-mall/logs' + JAVA_HOME = "/usr/local/java21" } options { @@ -40,6 +41,8 @@ pipeline { stage('初始化 & 分支校验') { steps { script { + sh 'echo "JAVA_HOME: $JAVA_HOME"' + sh 'java -version' sh 'echo "初始Git工作目录: $(pwd)"' sh 'ls -la ' checkout scm