Improve the gitlab:dev:ee_compat_check task to pass a repo URL without credentials

Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
Rémy Coutable 2017-10-17 16:12:00 +02:00
parent 4733570c3d
commit a5cc1c2613
1 changed files with 3 additions and 1 deletions

View File

@ -5,7 +5,9 @@ namespace :gitlab do
opts =
if ENV['CI']
{
ce_repo: ENV['CI_REPOSITORY_URL'],
# We don't use CI_REPOSITORY_URL since it includes `gitlab-ci-token:xxxxxxxxxxxxxxxxxxxx@`
# which is confusing in the steps suggested in the job's output.
ce_repo: "#{ENV['CI_PROJECT_URL']}.git",
branch: ENV['CI_COMMIT_REF_NAME']
}
else