Handle disabled post action jobs; Handle lack of FULLBUILD parameter
This commit is contained in:
parent
9711fd7b23
commit
88a4a3b41d
1 changed files with 5 additions and 5 deletions
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
def performSuccessfulBuildActions() {
|
||||
if (DOXYGEN_DEPLOY_JOB) {
|
||||
if (params.DOXYGEN_DEPLOY_JOB != null && DOXYGEN_DEPLOY_JOB) {
|
||||
if (Jenkins.instance.getItem(DOXYGEN_DEPLOY_JOB).isBuildable()) {
|
||||
build(
|
||||
wait: false,
|
||||
|
|
@ -12,7 +12,7 @@ def performSuccessfulBuildActions() {
|
|||
)
|
||||
}
|
||||
}
|
||||
if (STATIC_ANALYSIS_JOB) {
|
||||
if (params.STATIC_ANALYSIS_JOB != null && STATIC_ANALYSIS_JOB) {
|
||||
if (Jenkins.instance.getItem(STATIC_ANALYSIS_JOB).isBuildable()) {
|
||||
build(
|
||||
wait: false,
|
||||
|
|
@ -25,7 +25,7 @@ def performSuccessfulBuildActions() {
|
|||
}
|
||||
}
|
||||
if (UNIT_TEST_JOB) {
|
||||
if (Jenkins.instance.getItem(UNIT_TEST_JOB).isBuildable()) {
|
||||
if (params.UNIT_TEST_JOB != null && Jenkins.instance.getItem(UNIT_TEST_JOB).isBuildable()) {
|
||||
build(
|
||||
wait: false,
|
||||
job: UNIT_TEST_JOB,
|
||||
|
|
@ -37,7 +37,7 @@ def performSuccessfulBuildActions() {
|
|||
}
|
||||
}
|
||||
if (REGRESSION_TEST_JOB) {
|
||||
if (Jenkins.instance.getItem(REGRESSION_TEST_JOB).isBuildable()) {
|
||||
if (params.REGRESSION_TEST_JOB != null && Jenkins.instance.getItem(REGRESSION_TEST_JOB).isBuildable()) {
|
||||
build(
|
||||
wait: false,
|
||||
job: REGRESSION_TEST_JOB,
|
||||
|
|
@ -48,7 +48,7 @@ def performSuccessfulBuildActions() {
|
|||
)
|
||||
}
|
||||
}
|
||||
if (RELEASE_TO_GIT_JOB) {
|
||||
if (params.RELEASE_TO_GIT_JOB != null && RELEASE_TO_GIT_JOB) {
|
||||
if (Jenkins.instance.getItem(RELEASE_TO_GIT_JOB).isBuildable()) {
|
||||
build(
|
||||
wait: false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue