diff --git a/.ci/openshift-ci/common.sh b/.ci/openshift-ci/common.sh index a6b2310c58..70c2470abe 100644 --- a/.ci/openshift-ci/common.sh +++ b/.ci/openshift-ci/common.sh @@ -15,6 +15,9 @@ set -e # only exit with zero if all commands of the pipeline exit successfully set -o pipefail +git branch +git remote add origin https://github.com/eclipse-che/che-server.git +git fetch git branch BRANCH_NAME=$(echo $SOURCE_REF | sed 's#refs/heads/##') PR_IMAGE_TAG=$(git show origin/pr-number-${BRANCH_NAME}:shared-files/pr-image-tag)