Skip to content

Commit

Permalink
Git url in CI includes credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
holly-cummins committed Sep 2, 2018
1 parent 48fc23e commit 202fcca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script/ci/bluemix-devops/ci_release
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ pushd semver-tool
git checkout tags/1.2.1
popd

GIT_URL=`cat artefacts/.gitorigin`
SECURED_GIT_URL=`cat artefacts/.gitorigin`
GIT_HASH=`cat artefacts/.gitcommithash`

SECURED_GIT_URL=`echo $GIT_URL | sed -e "s,https://,https://bluemixgarage:$OAUTH_TOKEN@,g"`
GIT_URL=`echo $SECURED_GIT_URL | sed -e "s,https://.@,https://,g"`
mkdir prerelease
pushd prerelease
git clone $SECURED_GIT_URL
Expand Down

0 comments on commit 202fcca

Please sign in to comment.