From e1dee2ff014cd63d76b48faec4fdf630e5dc5649 Mon Sep 17 00:00:00 2001 From: Derek Higgins Date: Mon, 5 Dec 2022 23:26:54 +0000 Subject: [PATCH] Better default for jobs names (#1484) Using the search string "nightly-" on job names ensures we don't get incorrect hits for upgrade jobs (upgrading from ) --- scripts/periodics_pass_rates.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/periodics_pass_rates.sh b/scripts/periodics_pass_rates.sh index 2a4200243..0c23e3eb3 100755 --- a/scripts/periodics_pass_rates.sh +++ b/scripts/periodics_pass_rates.sh @@ -26,7 +26,7 @@ done shift $((OPTIND-1)) ALLJOBSURL="https://raw.githubusercontent.com/openshift/release/master/ci-operator/jobs/openshift/release/openshift-release-master-periodics.yaml" -JOBSTOTEST=$(curl -s $ALLJOBSURL | yq -r ".periodics[] | select(.name | contains(\"metal-ipi\")) | select(.name | contains(\"${1:-periodic}-\")) | .name") +JOBSTOTEST=$(curl -s $ALLJOBSURL | yq -r ".periodics[] | select(.name | contains(\"metal-ipi\")) | select(.name | contains(\"nightly-${1:-}\")) | .name") function getJobSummary(){ JOB=$1