Skip to content

Commit e1dee2f

Browse files
authored
Better default for jobs names (#1484)
Using the search string "nightly-<version>" on job names ensures we don't get incorrect hits for upgrade jobs (upgrading from <version> )
1 parent ac7ac11 commit e1dee2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/periodics_pass_rates.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ done
2626
shift $((OPTIND-1))
2727

2828
ALLJOBSURL="https://raw.githubusercontent.com/openshift/release/master/ci-operator/jobs/openshift/release/openshift-release-master-periodics.yaml"
29-
JOBSTOTEST=$(curl -s $ALLJOBSURL | yq -r ".periodics[] | select(.name | contains(\"metal-ipi\")) | select(.name | contains(\"${1:-periodic}-\")) | .name")
29+
JOBSTOTEST=$(curl -s $ALLJOBSURL | yq -r ".periodics[] | select(.name | contains(\"metal-ipi\")) | select(.name | contains(\"nightly-${1:-}\")) | .name")
3030

3131
function getJobSummary(){
3232
JOB=$1

0 commit comments

Comments
 (0)