Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorLipu Fei <lipu.fei815@gmail.com>2019-12-17 13:49:24 +0300
committerLipu Fei <lipu.fei815@gmail.com>2019-12-17 13:52:32 +0300
commit208ab6421f76fdb5f98d5e3b256b9ead4ab92fbf (patch)
tree36956020aa2ab4b6ea0b2bfcbe556b50b1db6e50 /docker
parent88196fa62bae3ebec563d6df625edb84bbb334dc (diff)
WIP: Fix fetching Uranium
Diffstat (limited to 'docker')
-rwxr-xr-xdocker/build.sh3
1 files changed, 2 insertions, 1 deletions
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."