aboutsummaryrefslogtreecommitdiffstats
path: root/jjb/ci-AGL-verify/ci-platform-jjb.yaml
diff options
context:
space:
mode:
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>2017-03-08 17:01:12 +0100
committerJan-Simon Möller <jsmoeller@linuxfoundation.org>2017-03-08 17:01:12 +0100
commita6422419b4311b5a69cc2772b7e813bca38b84c4 (patch)
tree6485ed67e720e3d2570564d7350764c3aa59b5a0 /jjb/ci-AGL-verify/ci-platform-jjb.yaml
parenta33163627fff1a0881a13b0b0fc41620bf9ea106 (diff)
Move failure case into publisher on condition failed
Change-Id: I8b16cccd35ee8815dc850937c36dd2228a949e57 Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
Diffstat (limited to 'jjb/ci-AGL-verify/ci-platform-jjb.yaml')
-rw-r--r--jjb/ci-AGL-verify/ci-platform-jjb.yaml102
1 files changed, 54 insertions, 48 deletions
diff --git a/jjb/ci-AGL-verify/ci-platform-jjb.yaml b/jjb/ci-AGL-verify/ci-platform-jjb.yaml
index 3c60e56c..2994e198 100644
--- a/jjb/ci-AGL-verify/ci-platform-jjb.yaml
+++ b/jjb/ci-AGL-verify/ci-platform-jjb.yaml
@@ -18,7 +18,7 @@
- ci-platform-{project}-verify-CIB-start
- ci-platform-{project}-verify-CIB-{machine}
- ci-platform-{project}-verify-CIB-finish-success
- - ci-platform-{project}-verify-CIB-finish-failure
+ - ci-platform-{project}-verify-failure
- ci-platform-{project}-verify-CIBT-start
- ci-platform-{project}-verify-CIBT-{machine}
- ci-platform-{project}-verify-CIBT-finish
@@ -162,7 +162,59 @@
abort-all-job: true
kill-phase-on: FAILURE
-# publishers:
+ publishers:
+ - trigger-parameterized-builds:
+ - project:
+ - ci-platform-{project}-verify-failure
+ condition: FAILED
+ current-parameters: true
+
+#
+# -verify-failure
+####################
+
+- job-template:
+ name: 'ci-platform-{project}-verify-failure'
+ project-type: freestyle
+ concurrent: true
+ node: control-slave
+
+ parameters:
+ - string:
+ name: GERRIT_PROJECT
+ default: 'AGL/{project}'
+ description: "Project to build"
+ - string:
+ name: GERRIT_BRANCH
+ default: master
+ description: "branch to build"
+ - string:
+ name: GERRIT_REFSPEC
+ default: refs/heads/master
+ description: "refspec to build"
+ - string:
+ name: GERRIT_CHANGE_NUMBER
+ default: "8313"
+ description: "change # to build"
+ - string:
+ name: GERRIT_PATCHSET_NUMBER
+ default: "2"
+ description: "patchset # to build"
+
+ build-discarder:
+ days-to-keep: 30
+ artifact-days-to-keep: -1
+ artifact-num-to-keep: 5
+
+ wrappers:
+ - agl-infra-wrappers:
+ build-timeout: '{build-timeout}'
+
+ builders:
+ - shell: |
+ set
+ echo "#### Verified -1 ####"
+ ssh -p 29418 agl-jobbuilder@gerrit.automotivelinux.org gerrit review ${{GERRIT_CHANGE_NUMBER}},${{GERRIT_PATCHSET_NUMBER}} --verified -1 -n NONE --message="CI-cycle\ failed,\ Verified-1.\ URL:\ ${{BUILD_URL}}" || true
#
@@ -331,52 +383,6 @@
echo "#### CIB +1 #### Verified +1 ####"
ssh -p 29418 agl-jobbuilder@gerrit.automotivelinux.org gerrit review ${{GERRIT_CHANGE_NUMBER}},${{GERRIT_PATCHSET_NUMBER}} --verified +1 --label ci-image-build=+1 -n NONE --message="CI-Image-Build\ finished,\ CIB+1,\ Verified+1" || true
-#
-# CIB-finish-failure
-####################
-
-- job-template:
- name: 'ci-platform-{project}-verify-CIB-finish-failure'
- project-type: freestyle
- concurrent: true
- node: control-slave
-
- parameters:
- - string:
- name: GERRIT_PROJECT
- default: 'AGL/{project}'
- description: "Project to build"
- - string:
- name: GERRIT_BRANCH
- default: master
- description: "branch to build"
- - string:
- name: GERRIT_REFSPEC
- default: refs/heads/master
- description: "refspec to build"
- - string:
- name: GERRIT_CHANGE_NUMBER
- default: "8313"
- description: "change # to build"
- - string:
- name: GERRIT_PATCHSET_NUMBER
- default: "2"
- description: "patchset # to build"
-
- build-discarder:
- days-to-keep: 30
- artifact-days-to-keep: -1
- artifact-num-to-keep: 5
-
- wrappers:
- - agl-infra-wrappers:
- build-timeout: '{build-timeout}'
-
- builders:
- - shell: |
- set
- echo "#### CIB -1 #### Verified -1 ####"
- ssh -p 29418 agl-jobbuilder@gerrit.automotivelinux.org gerrit review ${{GERRIT_CHANGE_NUMBER}},${{GERRIT_PATCHSET_NUMBER}} --verified -1 --label ci-image-build=-1 -n NONE --message="CI-Image-Build\ failed,\ CIB-1,\ Verified-1" || true
#