Showing
1 changed file
with
1 additions
and
2 deletions
@@ -33,14 +33,13 @@ pipeline { | @@ -33,14 +33,13 @@ pipeline { | ||
33 | } | 33 | } |
34 | def IMAGEVERSION = sh(returnStdout: true ,script: 'date +"%Y%m%d%H%M%S"') | 34 | def IMAGEVERSION = sh(returnStdout: true ,script: 'date +"%Y%m%d%H%M%S"') |
35 | IMAGEVERSION = IMAGEVERSION.trim() | 35 | IMAGEVERSION = IMAGEVERSION.trim() |
36 | - print IMAGEVERSION | ||
37 | PROJECT_WORK_DIR="${env.WORKSPACE}/${params.projectName}" | 36 | PROJECT_WORK_DIR="${env.WORKSPACE}/${params.projectName}" |
38 | 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}" |
39 | if(fileExists("${PROJECT_WORK_DIR}/")){ | 38 | if(fileExists("${PROJECT_WORK_DIR}/")){ |
40 | echo "starting delete the dir ${PROJECT_WORK_DIR}" | 39 | echo "starting delete the dir ${PROJECT_WORK_DIR}" |
41 | sh "rm -rf ${PROJECT_WORK_DIR}" | 40 | sh "rm -rf ${PROJECT_WORK_DIR}" |
42 | } | 41 | } |
43 | - DEPLOY_YAML_WORK_DIR="${env.WORKSPACE}/${k8s-deploy-yaml}" | 42 | + DEPLOY_YAML_WORK_DIR="${env.WORKSPACE}/k8s-deploy-yaml" |
44 | if(fileExists("${DEPLOY_YAML_WORK_DIR}/")){ | 43 | if(fileExists("${DEPLOY_YAML_WORK_DIR}/")){ |
45 | echo "starting delete the deploy yaml : ${DEPLOY_YAML_WORK_DIR}" | 44 | echo "starting delete the deploy yaml : ${DEPLOY_YAML_WORK_DIR}" |
46 | sh "rm -rf ${DEPLOY_YAML_WORK_DIR}" | 45 | sh "rm -rf ${DEPLOY_YAML_WORK_DIR}" |
-
Please register or login to post a comment