aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--jjb/ci-AGL-verify/ci-platform-jjb.yaml73
1 files changed, 66 insertions, 7 deletions
diff --git a/jjb/ci-AGL-verify/ci-platform-jjb.yaml b/jjb/ci-AGL-verify/ci-platform-jjb.yaml
index 1a5e23dc..a9ad0d21 100644
--- a/jjb/ci-AGL-verify/ci-platform-jjb.yaml
+++ b/jjb/ci-AGL-verify/ci-platform-jjb.yaml
@@ -17,7 +17,8 @@
- ci-platform-{project}-verify
- ci-platform-{project}-verify-CIB-start
- ci-platform-{project}-verify-CIB-{machine}
- - ci-platform-{project}-verify-CIB-finish
+ - ci-platform-{project}-verify-CIB-finish-success
+ - ci-platform-{project}-verify-CIB-finish-failure
- ci-platform-{project}-verify-CIBT-start
- ci-platform-{project}-verify-CIBT-{machine}
- ci-platform-{project}-verify-CIBT-finish
@@ -101,10 +102,18 @@
abort-all-job: true
kill-phase-on: FAILURE
- multijob:
- name: CIB-{project}-finish
+ name: CIB-{project}-finish-success
condition: SUCCESSFUL
projects:
- - name: 'ci-platform-{project}-verify-CIB-finish'
+ - name: 'ci-platform-{project}-verify-CIB-finish-success'
+ current-parameters: true
+ abort-all-job: true
+ kill-phase-on: FAILURE
+ - multijob:
+ name: CIB-{project}-finish-failure
+ condition: FAILURE
+ projects:
+ - name: 'ci-platform-{project}-verify-CIB-finish-failure'
current-parameters: true
abort-all-job: true
kill-phase-on: FAILURE
@@ -266,13 +275,16 @@
builders:
- shell: |
- ssh -p 29418 agl-jobbuilder@gerrit.automotivelinux.org gerrit review ${{GERRIT_CHANGE_NUMBER}},${{GERRIT_PATCHSET_NUMBER}} --verified=0 --label ci-image-build=0 --label ci-image-boot-test=0 -n NONE --message="CI-Image-Build\ started.\ URL:\ ${{BUILD_URL}}" || true
+ set
+ export TRIGGERURL=$(echo ${{BUILDURL}} | sed -e 's,-CIB-start/,,')
+ ssh -p 29418 agl-jobbuilder@gerrit.automotivelinux.org gerrit review ${{GERRIT_CHANGE_NUMBER}},${{GERRIT_PATCHSET_NUMBER}} --verified=0 --label ci-image-build=0 --label ci-image-boot-test=0 -n NONE --message="CI-Image-Build\ started.\ URL:\ ${{TRIGGERURL}}" || true
+
#
-# CIB-finish
-############
+# CIB-finish-success
+####################
- job-template:
- name: 'ci-platform-{project}-verify-CIB-finish'
+ name: 'ci-platform-{project}-verify-CIB-finish-success'
project-type: freestyle
concurrent: true
node: control-slave
@@ -314,6 +326,53 @@
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
+
#
# CIBT-{machine} 'BOOT TEST'