Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

Commit

Permalink
Switched che_version extraction from static master to the source branch
Browse files Browse the repository at this point in the history
  • Loading branch information
ScrewTSW committed Nov 18, 2019
1 parent 599ae08 commit 970856f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .ci/cico_rhche_prcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ eval "$(./env-toolkit load -f jenkins-env.json -r \
^KEYCLOAK \
^BUILD_NUMBER$ \
^JOB_NAME$ \
^ghprbPullId$ \
^ghprb \
^RH_CHE)"

source ./config
Expand All @@ -37,7 +37,7 @@ echo "Installing all dependencies lasted $instal_dep_duration seconds."

export PROJECT_NAMESPACE=prcheck-${RH_PULL_REQUEST_ID}
export DOCKER_IMAGE_TAG="${RH_TAG_DIST_SUFFIX}"-"${RH_PULL_REQUEST_ID}"
CHE_VERSION=$(curl -s https://raw.githubusercontent.com/redhat-developer/rh-che/master/pom.xml | xq -r '.project.parent.version')
CHE_VERSION=$(curl -s "https://raw.githubusercontent.com/redhat-developer/rh-che/${ghprbSourceBranch}/pom.xml" | xq -r '.project.parent.version')
export CHE_VERSION

echo "Running ${JOB_NAME} PR: #${RH_PULL_REQUEST_ID}, build number #${BUILD_NUMBER} for che-version:${CHE_VERSION}"
Expand Down

0 comments on commit 970856f

Please sign in to comment.