diff options
-rw-r--r-- | jjb/apex/apex.yml | 14 | ||||
-rw-r--r-- | jjb/apex/apex.yml.j2 | 14 | ||||
-rw-r--r-- | jjb/apex/update-build-result.groovy | 4 |
3 files changed, 32 insertions, 0 deletions
diff --git a/jjb/apex/apex.yml b/jjb/apex/apex.yml index fd4dc9ff5..8f8aa56d2 100644 --- a/jjb/apex/apex.yml +++ b/jjb/apex/apex.yml @@ -750,6 +750,20 @@ on-evaluation-failure: mark-unstable steps: - shell: 'echo "Tests Passed"' +# Build status is always success due conditional plugin prefetching +# build status before multijob phases execute +# - conditional-step: +# condition-kind: current-status +# condition-worst: SUCCESS +# condtion-best: SUCCESS +# on-evaluation-failure: mark-unstable +# steps: +# - shell: 'echo "Tests Passed"' + + publishers: + - groovy-postbuild: + script: + !include-raw-escape: ./update-build-result.groovy # danube Daily diff --git a/jjb/apex/apex.yml.j2 b/jjb/apex/apex.yml.j2 index d7b67c344..a3cc9c658 100644 --- a/jjb/apex/apex.yml.j2 +++ b/jjb/apex/apex.yml.j2 @@ -694,6 +694,20 @@ on-evaluation-failure: mark-unstable steps: - shell: 'echo "Tests Passed"' +# Build status is always success due conditional plugin prefetching +# build status before multijob phases execute +# - conditional-step: +# condition-kind: current-status +# condition-worst: SUCCESS +# condtion-best: SUCCESS +# on-evaluation-failure: mark-unstable +# steps: +# - shell: 'echo "Tests Passed"' + + publishers: + - groovy-postbuild: + script: + !include-raw-escape: ./update-build-result.groovy {% for stream in scenarios %} # {{ stream }} Daily diff --git a/jjb/apex/update-build-result.groovy b/jjb/apex/update-build-result.groovy new file mode 100644 index 000000000..a569e51f8 --- /dev/null +++ b/jjb/apex/update-build-result.groovy @@ -0,0 +1,4 @@ +import hudson.model.* +if (manager.build.@result == hudson.model.Result.FAILURE) { + manager.build.@result = hudson.model.Result.UNSTABLE +} |