From be98e292c005fc182039d1c2fdc044a485cfc36c Mon Sep 17 00:00:00 2001 From: Aleksandr Shmaraiev Date: Wed, 19 Apr 2023 11:16:05 +0300 Subject: [PATCH] Return back git commanhs --- .ci/openshift-ci/common.sh | 3 +++ 1 file changed, 3 insertions(+) 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)