From b99f7df5521d09d964c5290b347b31cf816e0dd7 Mon Sep 17 00:00:00 2001 From: holly-cummins Date: Sun, 2 Sep 2018 21:04:10 +0100 Subject: [PATCH] Allow both secured and unsecured git origins --- script/ci/bluemix-devops/ci_release | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/ci/bluemix-devops/ci_release b/script/ci/bluemix-devops/ci_release index 3550ba9..3914aa4 100755 --- a/script/ci/bluemix-devops/ci_release +++ b/script/ci/bluemix-devops/ci_release @@ -20,10 +20,10 @@ pushd semver-tool git checkout tags/1.2.1 popd -SECURED_GIT_URL=`cat artefacts/.gitorigin` +SECURED_GIT_URL=`cat artefacts/.gitorigin | sed -e "s,https://.@,https://,g"` GIT_HASH=`cat artefacts/.gitcommithash` -GIT_URL=`echo $SECURED_GIT_URL | sed -e "s,https://.@,https://,g"` +GIT_URL=`echo $GIT_URL | sed -e "s,https://,https://bluemixgarage:$OAUTH_TOKEN@,g"` mkdir prerelease pushd prerelease git clone $SECURED_GIT_URL