...
|
...
|
@@ -3,13 +3,13 @@ pipeline { |
|
|
agent { label 'master' }
|
|
|
|
|
|
parameters {
|
|
|
string(name:'projectName', defaultValue: 'yohoblk-wap', description: 'GITLAB应用名称')
|
|
|
string(name:'projectName', defaultValue: 'yoho-app-web', description: 'GITLAB应用名称')
|
|
|
string(name:'projectGitGroup', defaultValue: 'fe', description: 'GITLAB所在的组')
|
|
|
string(name:'projectBranch', defaultValue: 'feature/docker', description: 'git分支名称')
|
|
|
string(name:'deployName', defaultValue: 'node-yohoblk-wap', description: '应用名称')
|
|
|
string(name:'projectBranch', defaultValue: 'release/1.0', description: 'git分支名称')
|
|
|
string(name:'deployName', defaultValue: 'yoho-app-web', description: '应用名称')
|
|
|
string(name:'imageSource', defaultValue: 'yoho-online', description: '镜像存储的仓库')
|
|
|
string(name:'imageVersion', defaultValue: '20180714999', description: '镜像存储的版本')
|
|
|
string(name:'isNeedCdn',defaultValue:'NO', description: '是否需要上传CDN')
|
|
|
string(name:'imageVersion', defaultValue: 'release-1.0-20181227144324', description: '镜像存储的版本')
|
|
|
string(name:'isNeedCdn',defaultValue:'YES', description: '是否需要上传CDN')
|
|
|
}
|
|
|
|
|
|
|
...
|
...
|
@@ -40,7 +40,6 @@ pipeline { |
|
|
echo "print the para imageSource is : ${params.imageSource}......"
|
|
|
echo "print the para imageVersion is : ${params.imageVersion}......"
|
|
|
def localdir = "${workdir}/docker.sh"
|
|
|
|
|
|
if(fileExists("$localdir")){
|
|
|
echo "starting delete the dir ${workdir}"
|
|
|
sh "rm -rf ${workdir}"
|
...
|
...
|
|