diff options
author | Pierre <pierre.guillot@sonarsource.com> | 2020-10-20 16:09:31 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2020-11-04 20:05:48 +0000 |
commit | a8840ebd5252f9d87a322f246b66d58c3db5667c (patch) | |
tree | 60f1c02ea73079056942813eb35677ba4d3e45e6 /.cirrus.yml | |
parent | cce98134e5b88b3597f29758e6ee6d54fba32bd2 (diff) | |
download | sonarqube-a8840ebd5252f9d87a322f246b66d58c3db5667c.tar.gz sonarqube-a8840ebd5252f9d87a322f246b66d58c3db5667c.zip |
SONAR-13978 validate gitlab alm settings
Diffstat (limited to '.cirrus.yml')
-rw-r--r-- | .cirrus.yml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/.cirrus.yml b/.cirrus.yml index 04d0c9fd239..664b8bfa902 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -226,7 +226,14 @@ qa_gitlab_task: memory: 5Gb env: # Creating a personnal access token from rails console for test purpuse (can't do through gitlab REST API) - GITLAB_POST_RECONFIGURE_SCRIPT: "gitlab-rails runner \"token = User.find_by_username('root').personal_access_tokens.create(scopes: [:api], name: 'token'); token.set_token('token-here-456'); token.save!\"" + GITLAB_POST_RECONFIGURE_SCRIPT: "gitlab-rails runner \" + token = User.find_by_username('root').personal_access_tokens.create(scopes: [:api], name: 'token'); + token.set_token('token-here-456'); + token.save!; + token_read = User.find_by_username('root').personal_access_tokens.create(scopes: [:read_api], name: 'token_read'); + token_read.set_token('token-read-123'); + token_read.save!; + \"" env: # No need to clone the full history. # Depth of 1 is not enough because it would fail the build in case of consecutive pushes |