...
|
...
|
@@ -31,8 +31,8 @@ pipeline { |
|
|
if(params.projectName==''){
|
|
|
error "no project ${params.projectName}"
|
|
|
}
|
|
|
def IMAGEVERSION="""${sh(returnStdout: true,script: 'date +"%Y%m%d%H%M%S"')}"""
|
|
|
IMAGEVERSION = IMAGEVERSION.trim();
|
|
|
def IMAGEVERSION = sh returnStdout: true ,script: 'date +"%Y%m%d%H%M%S"'
|
|
|
IMAGEVERSION = IMAGEVERSION.trim()
|
|
|
PROJECT_WORK_DIR="${env.WORKSPACE}/${params.projectName}"
|
|
|
QCLOUD_IMAGE_STORE="ccr.ccs.tencentyun.com/${params.imageSource}/${params.deployName}:${IMAGEVERSION}"
|
|
|
if(fileExists("${PROJECT_WORK_DIR}/")){
|
...
|
...
|
|