ci: 清理build_parent和build_sdk

This commit is contained in:
CaptainB 2022-10-26 15:39:13 +08:00 committed by 刘瑞斌
parent a5d934949c
commit 473d7c177f
1 changed files with 1 additions and 1 deletions

2
Jenkinsfile vendored
View File

@ -141,7 +141,7 @@ pipeline {
sh "echo \$WEBHOOK\n" sh "echo \$WEBHOOK\n"
script { script {
try { try {
if ($BUILD_PARENT || $BUILD_SDK) { if ("$BUILD_PARENT".equals("true") || "$BUILD_SDK".equals("true")) {
println "JOB_NAME=$JOB_NAME, BUILD_NUMBER=$BUILD_NUMBER, BUILD_URL=$BUILD_URL" println "JOB_NAME=$JOB_NAME, BUILD_NUMBER=$BUILD_NUMBER, BUILD_URL=$BUILD_URL"
Hudson.instance.getItemByFullName("$JOB_NAME").builds.each { Hudson.instance.getItemByFullName("$JOB_NAME").builds.each {
if(it.number == Integer.parseInt("$BUILD_NUMBER")) { if(it.number == Integer.parseInt("$BUILD_NUMBER")) {