Skip to content

Commit 9a5acf9

Browse files
committed
Add extra check for cases where no MDL blockers are found
For example in MDL-69655 there was a blocker, but it was a MDLSITE one, and, by default, that was leading to a lowered priority, when it shouldn't. Now we skip those issues, when blockers are not MDL.
1 parent 44af756 commit 9a5acf9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tracker_automations/set_integration_priority_to_zero/set_integration_priority_to_zero.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,13 @@ for issue in $( sed -n 's/^"\(MDL-[0-9]*\)".*/\1/p' "${resultfile}" ); do
9393
done
9494
blockedbyissues=${blockedbyissues%?}
9595

96+
# If there aren't unresolved blockers, skip this issue.
97+
if [[ -z ${blockedbyissues} ]]; then
98+
echo " skipping this issue (unable to find MDL blockers)"
99+
echo
100+
continue
101+
fi
102+
96103
# Now let's see if any of the blockedby issues is unresolved.
97104
# (note that, since JiraCLU 8.1, getIssueCount can be used instead, but we are using older)
98105
if [[ -n ${blockedbyissues} ]]; then
@@ -117,6 +124,7 @@ for issue in $( sed -n 's/^"\(MDL-[0-9]*\)".*/\1/p' "${resultfile}" ); do
117124
# Arrived here, this is an issue that is blocked by some unresolved issue.
118125
# So we lower its priority here and now.
119126
echo " lowering its integration priority to 0 (has unresolved blockers)"
127+
echo
120128
${basereq} --action progressIssue \
121129
--issue ${issue} \
122130
--step "CI Global Self-Transition" \

0 commit comments

Comments
 (0)