Skip to content

Commit e1beadb

Browse files
committed
Exclude unfinished runs to prevent previous failure masking
1 parent d9ab91d commit e1beadb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.claude/scripts/microshift-prow-jobs-for-release.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ PROW_URL="https://prow.ci.openshift.org/data.js"
1111
fetch_latest_per_job() {
1212
local release="${1}"
1313
curl -s --max-time 60 "${PROW_URL}" | jq --arg release "${release}" '
14-
[.[] | select((.job | contains("microshift")) and (.job | contains($release)))] |
14+
[.[] | select((.job | contains("microshift")) and (.job | contains($release))
15+
and .finished and .finished != "")] |
1516
group_by(.job) |
1617
map(sort_by(.started | tonumber) | reverse | first) |
1718
[.[] | {

0 commit comments

Comments
 (0)