Can’t connect sonnar and gitlab
environment
- docker image from official docker repo;
- try to set up the gitlab integration
Steps to reproduce
Docker
- run docker image:
$ docker run -d --name sonar -e SONAR_ES_BOOTSTRAP_CHECKS_DISABLE=true -p 9000:9000 sonarqube:latest
Sonar
- access https://localhost:9000
- change password as required
- select gitlab as DevOps platform
- set
Configuration name
: Test - add
GitLab URL API
: https://gitlab.com/api/v4 - add
Personal Access token
: { gitlab_token_already_created }
after that, sonar asks for access token once again but it returns:
Could not get projects from GitLab instance
From docker logs I can see:
I’ve tried to GET same url from postman, and it returns error 500
the stranger thing on this is, if i remove one parameter (any one) on postman, gitlab response normally…
could i change the request in sonar?
is there any other possible solution?
any help will be appreciated!
thanks