From 208ab6421f76fdb5f98d5e3b256b9ead4ab92fbf Mon Sep 17 00:00:00 2001 From: Lipu Fei Date: Tue, 17 Dec 2019 11:49:24 +0100 Subject: WIP: Fix fetching Uranium --- docker/build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'docker') diff --git a/docker/build.sh b/docker/build.sh index eb20b18c0d..a772c00509 100755 --- a/docker/build.sh +++ b/docker/build.sh @@ -20,7 +20,8 @@ cd "${PROJECT_DIR}" # Check the branch to use: # 1. Use the Uranium branch with the branch same if it exists. # 2. Otherwise, use the default branch name "master" -URANIUM_BRANCH="${CI_COMMIT_REF_NAME:-master}" +echo "GIT_REF_NAME: ${GIT_REF_NAME}" +URANIUM_BRANCH="${GIT_REF_NAME:-master}" output="$(git ls-remote --heads https://github.com/Ultimaker/Uranium.git "${URANIUM_BRANCH}")" if [ -z "${output}" ]; then echo "Could not find Uranium banch ${URANIUM_BRANCH}, fallback to use master." -- cgit v1.2.3