revert: 清理build_parent和build_sdk

This commit is contained in:
CaptainB 2022-10-26 15:52:15 +08:00
parent 473d7c177f
commit 1291b68fac
1 changed files with 0 additions and 15 deletions

15
Jenkinsfile vendored
View File

@ -139,21 +139,6 @@ pipeline {
post('Notification') {
always {
sh "echo \$WEBHOOK\n"
script {
try {
if ("$BUILD_PARENT".equals("true") || "$BUILD_SDK".equals("true")) {
println "JOB_NAME=$JOB_NAME, BUILD_NUMBER=$BUILD_NUMBER, BUILD_URL=$BUILD_URL"
Hudson.instance.getItemByFullName("$JOB_NAME").builds.each {
if(it.number == Integer.parseInt("$BUILD_NUMBER")) {
println 'Deleting build number ' + it.number
it.delete()
break;
}
}
}
} catch (NoSuchElementException) {
}
}
withCredentials([string(credentialsId: 'wechat-bot-webhook', variable: 'WEBHOOK')]) {
qyWechatNotification failNotify: true, mentionedId: '', mentionedMobile: '', webhookUrl: "$WEBHOOK"
}