diff --git a/ci-operator/step-registry/bmctest/openshift/bmctest-openshift-commands.sh b/ci-operator/step-registry/bmctest/openshift/bmctest-openshift-commands.sh index 8a9b19e00b95f..14f0c73d51b32 100644 --- a/ci-operator/step-registry/bmctest/openshift/bmctest-openshift-commands.sh +++ b/ci-operator/step-registry/bmctest/openshift/bmctest-openshift-commands.sh @@ -17,6 +17,10 @@ SSHCMD="sudo dnf install --nobest --refresh -y git jq python3-pip epel-release; yq -iy .platform.baremetal.provisioningBridge\=\\\"\$DEFINT\\\" /tmp/bmctest-openshift.yaml; git clone https://github.com/openshift-metal3/bmctest; cd bmctest; + if [ \"${REPO_NAME:-}\" = \"bmctest\" ] && [ -n \"${PULL_NUMBER:-}\" ]; then + git fetch origin pull/${PULL_NUMBER}/head:pr-branch; + git checkout pr-branch; + fi; ./ocpbmctest.sh -s /tmp/pull-secret -c /tmp/bmctest-openshift.yaml -r ${RELEASEV}" scp "${SSHOPTS[@]}" /var/run/bmctest-openshift/config "cloud-user@${SERVER_IP}:/tmp/bmctest-openshift"