Showing
1 changed file
with
5 additions
and
0 deletions
@@ -11,6 +11,7 @@ pipeline { | @@ -11,6 +11,7 @@ pipeline { | ||
11 | string(name:'imageSource', defaultValue: 'yoho-online', description: '镜像存储的仓库') | 11 | string(name:'imageSource', defaultValue: 'yoho-online', description: '镜像存储的仓库') |
12 | string(name:'imageVersion', defaultValue: 'release-1.0-20181227144324', description: '镜像存储的版本') | 12 | string(name:'imageVersion', defaultValue: 'release-1.0-20181227144324', description: '镜像存储的版本') |
13 | choice(name:'isNeedCdn',choices:'NO\nYES\n', description: '是否需要上传CDN') | 13 | choice(name:'isNeedCdn',choices:'NO\nYES\n', description: '是否需要上传CDN') |
14 | + choice(name:'isMergeMaster',choices:'NO\nYES\n', description: '是否需要合并master分支') | ||
14 | } | 15 | } |
15 | 16 | ||
16 | 17 | ||
@@ -53,6 +54,10 @@ pipeline { | @@ -53,6 +54,10 @@ pipeline { | ||
53 | script { | 54 | script { |
54 | def PROJECT_WORK_DIR="${env.WORKSPACE}/${params.projectName}" | 55 | def PROJECT_WORK_DIR="${env.WORKSPACE}/${params.projectName}" |
55 | sh "git clone -b ${params.projectBranch} git@git.yoho.cn:${params.projectGitGroup}/${params.projectName}.git ${PROJECT_WORK_DIR}" | 56 | sh "git clone -b ${params.projectBranch} git@git.yoho.cn:${params.projectGitGroup}/${params.projectName}.git ${PROJECT_WORK_DIR}" |
57 | + if(params.isNeedCdn=='YES'){ | ||
58 | + sh "cd ${PROJECT_WORK_DIR} && git merge --no-ff feature/dockerMerge" | ||
59 | + } | ||
60 | + | ||
56 | } | 61 | } |
57 | } | 62 | } |
58 | } | 63 | } |
-
Please register or login to post a comment