Verified Commit 694b6ed3 authored by Laurent Heirendt's avatar Laurent Heirendt
Browse files

checkout branch

parent dc95807c
......@@ -25,7 +25,8 @@ commit:
- url_host=`git remote get-url origin | sed -e "s/https:\/\/gitlab-ci-token:.*@//g"`
- git checkout $CI_COMMIT_BRANCH
- git branch -d $CI_COMMIT_BRANCH # delete existing branch locally
- git checkout -b $CI_COMMIT_BRANCH origin/$CI_COMMIT_BRANCH
- git remote set-url origin "https://$GIT_ACCESS_USER:$GIT_ACCESS_TOKEN@${url_host}"
- git config $GIT_ACCESS_USER
- git config $GIT_ACCESS_EMAIL
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment