From a73670e5b7c6b8a89e916faaba13cf284a070bab Mon Sep 17 00:00:00 2001 From: qishiyao Date: Fri, 10 Nov 2023 10:15:11 +0800 Subject: [PATCH] * Update full downgrade ci --- misc/ci/Jenkinsfile.downgrade | 43 ++++++++++++++++++----------------- 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/misc/ci/Jenkinsfile.downgrade b/misc/ci/Jenkinsfile.downgrade index 0bd9c397b9..d31abb5f3c 100755 --- a/misc/ci/Jenkinsfile.downgrade +++ b/misc/ci/Jenkinsfile.downgrade @@ -60,7 +60,7 @@ pipeline { steps { sh 'env' replayCheckout([ - [name: "downRepo", subDir: true, url: "${env.DOWNGRADE_GIT_REPO}", credentialsId: "git-zcorp-cc-jenkins-bot-http", branch: "downgrade/${env.GIT_BRANCH}/src"] + [name: "downRepo", subDir: true, url: "${env.DOWNGRADE_GIT_REPO}", credentialsId: "git-zcorp-cc-jenkins-bot-http", branch: "downgrade/blank"] ]) container('package') { @@ -73,27 +73,27 @@ pipeline { sh 'ls -l $ZENTAO_RELEASE_PATH' sh 'test ! -f ${ZENTAO_RELEASE_PATH}/downgradeReport.html' } - - post { - failure { - container('package') { - sh 'mkdir ./report && cp ${ZENTAO_RELEASE_PATH}/downgradeReport.html ./report' - } - - publishHTML([ - allowMissing: true, - alwaysLinkToLastBuild: false, - keepAll: true, - reportDir: './report', - reportFiles: 'downgradeReport.html', - reportName: 'DowngradeReport' - ]) - - ximNotify(title: "禅道增量降级失败", content: "[PHP语法错误报告]($BUILD_URL/DowngradeReport/)", contentHeaderFile: job.headerFileName()) - } - } - } + + post { + failure { + container('package') { + sh 'mkdir ./report && cp ${ZENTAO_RELEASE_PATH}/downgradeReport.html ./report' + } + + publishHTML([ + allowMissing: true, + alwaysLinkToLastBuild: false, + keepAll: true, + reportDir: './report', + reportFiles: 'downgradeReport.html', + reportName: 'DowngradeReport' + ]) + + ximNotify(title: "禅道全量降级失败", content: "[PHP语法错误报告]($BUILD_URL/DowngradeReport/)") + } + } + } } @@ -106,3 +106,4 @@ pipeline { } +