Authored by jimi

a

@@ -31,7 +31,7 @@ pipeline { @@ -31,7 +31,7 @@ pipeline {
31 if(params.projectName==''){ 31 if(params.projectName==''){
32 error "no project ${params.projectName}" 32 error "no project ${params.projectName}"
33 } 33 }
34 - def IMAGEVERSION = sh returnStdout: true ,script: 'date +"%Y%m%d%H%M%S"' 34 + def IMAGEVERSION = new Date().format("yyyyMMddHHmmss")
35 IMAGEVERSION = IMAGEVERSION.trim() 35 IMAGEVERSION = IMAGEVERSION.trim()
36 PROJECT_WORK_DIR="${env.WORKSPACE}/${params.projectName}" 36 PROJECT_WORK_DIR="${env.WORKSPACE}/${params.projectName}"
37 QCLOUD_IMAGE_STORE="ccr.ccs.tencentyun.com/${params.imageSource}/${params.deployName}:${IMAGEVERSION}" 37 QCLOUD_IMAGE_STORE="ccr.ccs.tencentyun.com/${params.imageSource}/${params.deployName}:${IMAGEVERSION}"