aboutsummaryrefslogtreecommitdiffstats
path: root/.cirrus.yml
diff options
context:
space:
mode:
authorPierre <pierre.guillot@sonarsource.com>2020-10-20 16:09:31 +0200
committersonartech <sonartech@sonarsource.com>2020-11-04 20:05:48 +0000
commita8840ebd5252f9d87a322f246b66d58c3db5667c (patch)
tree60f1c02ea73079056942813eb35677ba4d3e45e6 /.cirrus.yml
parentcce98134e5b88b3597f29758e6ee6d54fba32bd2 (diff)
downloadsonarqube-a8840ebd5252f9d87a322f246b66d58c3db5667c.tar.gz
sonarqube-a8840ebd5252f9d87a322f246b66d58c3db5667c.zip
SONAR-13978 validate gitlab alm settings
Diffstat (limited to '.cirrus.yml')
-rw-r--r--.cirrus.yml9
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