浏览代码

#2023-12-10_CICD

lith 1 年之前
父节点
当前提交
7407549ea4
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6 1
      Publish/DevOps2/jenkins-bash/CICD.ki.git_Multibranch.deploy.jenkinsfile

+ 6 - 1
Publish/DevOps2/jenkins-bash/CICD.ki.git_Multibranch.deploy.jenkinsfile

@@ -11,7 +11,7 @@ pipeline {
 
 
     environment {
     environment {
         //APPNAME = "Sers"
         //APPNAME = "Sers"
-        APPNAME = "${env.projectName}"
+        APPNAME = "${env.JOB_NAME}"
 
 
 
 
         stageName = "ki"
         stageName = "ki"
@@ -47,6 +47,11 @@ pipeline {
                         remote.password = "${dind_ssh_account_PSW}"
                         remote.password = "${dind_ssh_account_PSW}"
 
 
                         env.codePath = "/root/docker-cache/jenkins/" + basePath.substring(5, basePath.length()) 
                         env.codePath = "/root/docker-cache/jenkins/" + basePath.substring(5, basePath.length()) 
+
+                        echo "APPNAME: [$APPNAME]"
+                        echo "basePath: [$basePath]"
+                        echo "releasePath: [$releasePath]"
+                        echo "DOCKER_ImagePrefix: [$DOCKER_ImagePrefix]"
                         echo "codePath: [$codePath]"
                         echo "codePath: [$codePath]"
 
 
                         env.inputChoice = "no"
                         env.inputChoice = "no"