diff --git a/.ci/openshift-ci/common.sh b/.ci/openshift-ci/common.sh index b45c3bcd66..18ad9ec510 100644 --- a/.ci/openshift-ci/common.sh +++ b/.ci/openshift-ci/common.sh @@ -21,6 +21,16 @@ cat ${SHARED_DIR}/console.url echo "Content of custom-links.txt" cat ${SHARED_DIR}/custom-links.txt +git remote add origin https://github.com/eclipse-che/che-server.git +git fetch + +echo ${PULL_NUMBER} +echo ${PULL_BASE_REF} +echo ${PULL_BASE_SHA} +echo ${PULL_SOURCE_REF} + +PR_COMMIT=$(echo ${PULL_PULL_SHA} | cut -c1-7) +BRANCH=$(git branch --contains ${PR_COMMIT}) BRANCH_NAME="che#21753" PR_IMAGE_TAG=$(git show origin/pr-number-${BRANCH_NAME}:shared-files/pr-image-tag)