Update report script filters 78/136278/2
authorliamfallon <liam.fallon@est.tech>
Thu, 19 Oct 2023 07:52:54 +0000 (08:52 +0100)
committerLiam Fallon <liam.fallon@est.tech>
Thu, 19 Oct 2023 09:56:07 +0000 (09:56 +0000)
Update report script to ignore invalid and failed staging and release
jobs, which are only vali and only run successfully during the release
process.

Issue-ID: POLICY-4854
Change-Id: I4722e9b719a82d727585e7d597f83ce77e913744
Signed-off-by: liamfallon <liam.fallon@est.tech>
integration/src/main/scripts/reports/pf_status_report.sh

index 306985e..76cdcbe 100755 (executable)
@@ -3,7 +3,7 @@
 # ============LICENSE_START================================================
 # ONAP
 # =========================================================================
-# Copyright (C) 2022 Nordix Foundation.
+# Copyright (C) 2022-2023 Nordix Foundation.
 # =========================================================================
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
@@ -96,6 +96,7 @@ echo "------------"
 
 grep "job-status-red" "$jenkins_report_temp_file" |
     grep -v stage |
+    grep -v release-merge |
     cut -f1 -d' ' |
     sed 's/_/\//' |
     awk '{printf("https://jenkins.onap.org/%s\n", $1)}'
@@ -114,6 +115,7 @@ echo ""
 echo "invalid jobs"
 echo "------------"
 grep -v -E "(job-status-red|job-status-yellow|job-status-blue)" "$jenkins_report_temp_file" |
+    grep -v stage |
     cut -f1 -d' ' |
     sed 's/_/\//' |
     awk '{printf("https://jenkins.onap.org/%s\n", $1)}'