summaryrefslogtreecommitdiffstats
path: root/jjb
diff options
context:
space:
mode:
authorAric Gardner <agardner@linuxfoundation.org>2017-07-31 14:58:15 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-07-31 14:58:15 +0000
commit55667d21f12f21317d52cb8b3b753ea92a037ccc (patch)
tree7ba80f2645f38e4bffd36a168b6c0376cc5b2137 /jjb
parent0c27ec09e767e609e4ed2359f7ad966e64423922 (diff)
parent3db0c0da006cd112c3663e2f4b0b47e073fd5420 (diff)
Merge "Apex: changes build result using groovy-postbuild"
Diffstat (limited to 'jjb')
-rw-r--r--jjb/apex/apex.yml14
-rw-r--r--jjb/apex/apex.yml.j214
-rw-r--r--jjb/apex/update-build-result.groovy4
3 files changed, 32 insertions, 0 deletions
diff --git a/jjb/apex/apex.yml b/jjb/apex/apex.yml
index f18fe4041..f47775f61 100644
--- a/jjb/apex/apex.yml
+++ b/jjb/apex/apex.yml
@@ -752,6 +752,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
+}