ci: 清理build_parent和build_sdk
This commit is contained in:
parent
be8ee7a8c5
commit
945fd3bc31
|
@ -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")) {
|
||||||
|
|
Loading…
Reference in New Issue