Fix error in CIBT scripting and harden pipeline 78/22378/1
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>
Tue, 10 Sep 2019 15:54:04 +0000 (17:54 +0200)
committerJan-Simon Möller <jsmoeller@linuxfoundation.org>
Tue, 10 Sep 2019 15:54:04 +0000 (17:54 +0200)
do not fail on CIBT result evaluation.

Change-Id: I91e84cc9e30a149f8e56c218b1f97375c76c3d95
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
jjb/ci-AGL-verify/ci-platform-jjb.yaml
jjb/common/include-agl-lava-jobs-submit.sh

index 804327a..52cca5e 100644 (file)
             - name: 'ci-platform-{project}-verify-CIBT-intel-corei7-64'
               current-parameters: true
               #abort-all-job: true
-              kill-phase-on: FAILURE
+              kill-phase-on: NEVER
             - name: 'ci-platform-{project}-verify-CIBT-raspberrypi3'
               current-parameters: true
               #abort-all-job: true
-              kill-phase-on: FAILURE
+              kill-phase-on: NEVER
             - name: 'ci-platform-{project}-verify-CIBT-dra7xx-evm'
               current-parameters: true
               #abort-all-job: true
-              kill-phase-on: FAILURE
+              kill-phase-on: NEVER
             - name: 'ci-platform-{project}-verify-CIBT-qemux86-64'
               current-parameters: true
               #abort-all-job: true
-              kill-phase-on: FAILURE
+              kill-phase-on: NEVER
             - name: 'ci-platform-{project}-verify-CIBT-qemuarm'
               current-parameters: true
               #abort-all-job: true
-              kill-phase-on: FAILURE
+              kill-phase-on: NEVER
             - name: 'ci-platform-{project}-verify-CIBT-qemuarm64'
               current-parameters: true
               #abort-all-job: true
-              kill-phase-on: FAILURE
+              kill-phase-on: NEVER
             - name: 'ci-platform-{project}-verify-CIBT-m3ulcb-nogfx'
               current-parameters: true
               #abort-all-job: true
-              kill-phase-on: FAILURE
+              kill-phase-on: NEVER
       - multijob:
           name: 'CIBT-{project}-complete'
           condition: ALWAYS
             - name: 'ci-platform-{project}-verify-CIBT-complete'
               current-parameters: true
               abort-all-job: true
-              kill-phase-on: FAILURE
+              kill-phase-on: NEVER
       - multijob:
           name: 'CIBT-{project}-finish-success'
           condition: SUCCESSFUL
             - name: 'ci-platform-{project}-verify-CIBT-finish-success'
               current-parameters: true
               abort-all-job: true
-              kill-phase-on: FAILURE
+              kill-phase-on: NEVER
     publishers:
       - trigger-parameterized-builds:
         - project:
index 95976a3..a029df1 100644 (file)
@@ -125,10 +125,11 @@ handle_skiplist() {
 }
 
 # Analyze jobs results
-lavacli results $job_id | tee job-result
+lavacli results $job_id | tee job-result | grep -v '^\* ' | grep '\[fail\]$' > job-result.fail 
+
 # GOODJOB is equal to 0 if any test fail (and not present in a skiplist), 1 if all test are success
 GOODJOB=1
-grep -v '^\* ' | grep '\[fail\]$' > job-result.fail
+
 if [ -s job-result.fail ];then
        handle_skiplist
 fi