Authored by jimi

aaa

... ... @@ -33,14 +33,13 @@ pipeline {
}
def IMAGEVERSION = sh(returnStdout: true ,script: 'date +"%Y%m%d%H%M%S"')
IMAGEVERSION = IMAGEVERSION.trim()
print IMAGEVERSION
PROJECT_WORK_DIR="${env.WORKSPACE}/${params.projectName}"
QCLOUD_IMAGE_STORE="ccr.ccs.tencentyun.com/${params.imageSource}/${params.deployName}:${IMAGEVERSION}"
if(fileExists("${PROJECT_WORK_DIR}/")){
echo "starting delete the dir ${PROJECT_WORK_DIR}"
sh "rm -rf ${PROJECT_WORK_DIR}"
}
DEPLOY_YAML_WORK_DIR="${env.WORKSPACE}/${k8s-deploy-yaml}"
DEPLOY_YAML_WORK_DIR="${env.WORKSPACE}/k8s-deploy-yaml"
if(fileExists("${DEPLOY_YAML_WORK_DIR}/")){
echo "starting delete the deploy yaml : ${DEPLOY_YAML_WORK_DIR}"
sh "rm -rf ${DEPLOY_YAML_WORK_DIR}"
... ...