diff --git a/Jenkinsfile b/Jenkinsfile index a61441e4..7f0e50ee 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -79,6 +79,10 @@ def runShellCommand(script, int retries = 1) { def buildImage(appName, appVersion, String type='CE') { // Type EE, CE, MID, EE-MID echo "Building ${appName}:${appVersion}" + echo "Type: ${type}" + echo "env: ${env}" + return + def appBuildOption = [ "core-xpack": [ "image": "xpack", @@ -174,6 +178,7 @@ pipeline { env.PIP_MIRROR="https://pypi.tuna.tsinghua.edu.cn/simple" env.MAVEN_MIRROR="https://maven.aliyun.com/repository/public" env.APK_MIRROR="mirrors.tuna.tsinghua.edu.cn" + env.repo = '' } } } @@ -182,7 +187,9 @@ pipeline { script { ALL_APPS.each { app -> dir(app) { - git url: "git@github.com:jumpserver/${app}.git", branch: "${env.branch}" + if (app == env.repo || env.repo == '') { + git url: "git@github.com:jumpserver/${app}.git", branch: "${env.branch}" + } } } }