From 1d63bb9da99d3a2d4d748ba2a29b5a93da272474 Mon Sep 17 00:00:00 2001 From: Aleksandr Shmaraiev Date: Wed, 19 Apr 2023 11:02:42 +0300 Subject: [PATCH] Change commands --- .ci/openshift-ci/common.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.ci/openshift-ci/common.sh b/.ci/openshift-ci/common.sh index 1dc9f336f4..a6b2310c58 100644 --- a/.ci/openshift-ci/common.sh +++ b/.ci/openshift-ci/common.sh @@ -15,9 +15,8 @@ set -e # only exit with zero if all commands of the pipeline exit successfully set -o pipefail -git remote add origin https://github.com/eclipse-che/che-server.git -git fetch -BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD) +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) export CHE_NAMESPACE=${CHE_NAMESPACE:-"eclipse-che"}