- In GitLab
- Admin -> Application -> New Application
- Create Application
- Name: arbitral
- RedirectURL:
http://<your_sonarqube_dns>/oauth2/callback/gitlab
- Checked
- Trusted
- Confidential
- Scopes.api
- Copy
ApplicationID
andSecret
- In SonarQube
- Administration -> Configuration -> DevOps Platform Integrations -> GitLab
- GitLab Authentication
- Enabled:
true
- GitLabURL:
http://<your_gitlab_dns>
- AppliactionID:
ApplicationID
- Secret:
Secret
- Allow userd to sign-up: arbitral
- Synchronize user groups: arbitral (Fllowing, We assume to set
true
)
- Enabled:
- GitLab Authentication
- Administration -> Configuration -> Generatl -> Server base URL
- See Issue
- Server base URL:
http://<your_sonarqube_dns>/
- Administration -> Configuration -> DevOps Platform Integrations -> GitLab
- (Optional) Synchronize user groups with GitLab
- Create gruop in GitLab (
admin-group
) - Administration -> Security -> Groups
- Create Gruop:
admin-group
- For detail naming rules, see document
- Administration -> Security -> GlobalPermissions
- Attach permissions
- Create gruop in GitLab (
- In GitLab
- In SonarQube
- Assign
sonar-user
to GitLab Project - Automatically CICD is runned
- You Can see bot in MR