We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 862dd51 commit 410b49dCopy full SHA for 410b49d
ci/prow-rhcos.sh
@@ -2,8 +2,10 @@
2
# Entrypoint run via OpenShift Prow (https://docs.ci.openshift.org/)
3
# that tests RHCOS (openshift/os).
4
set -xeuo pipefail
5
-# https://github.com/kubernetes/test-infra/blob/master/prow/jobs.md
6
-BRANCH=${PULL_BASE_REF:-main}
+# PULL_BASE_REF: https://github.com/kubernetes/test-infra/blob/master/prow/jobs.md
+# But prefer OPENSHIFT_BUILD_REFERENCE if available, which is more correct in
7
+# rehearsal jobs: https://github.com/coreos/coreos-assembler/pull/2598
8
+BRANCH=${OPENSHIFT_BUILD_REFERENCE:-${PULL_BASE_REF:-main}}
9
case ${BRANCH} in
10
# For now; OpenShift hasn't done the master->main transition
11
main|master) RHCOS_BRANCH=master;;
0 commit comments