Skip to content

Commit f9d8067

Browse files
mrhillsmanAllda
authored andcommitted
Add missing OCP_VER variable
While working on failing e2e-ci runs discovered missing addition of the OCP_VER in the preflight-trigger task's get-prowjob-artifacts-and-decrypt step Signed-off-by: Melvin Hillsman <[email protected]>
1 parent 9ecbddd commit f9d8067

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

ansible/roles/operator-pipeline/templates/openshift/tasks/preflight-trigger.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,15 @@ spec:
152152
exit 0
153153
fi
154154
155+
DPTP_VER="4.9"
156+
CP_VER="$(params.ocp_version)"
157+
158+
if [ "$(printf '%s\n' "$DPTP_VER" "$CP_VER" | sort -V | head -n1)" = "$DPTP_VER" ]; then
159+
OCP_VER="${DPTP_VER}"
160+
else
161+
OCP_VER="${CP_VER}"
162+
fi
163+
155164
if [ "$(params.ocp_version)" == "4.6" ] || [ "$(params.ocp_version)" == "4.7" ]; then
156165
JOB_SUFFIX="aws"
157166
else

0 commit comments

Comments
 (0)