jdamata / terraform-provider-sonarqube

Terraform provider for managing Sonarqube configuration
GNU General Public License v3.0
62 stars 54 forks source link

Unable create gitlab binding Sonarqube version: 9.9.0 community #137

Closed daemondev closed 1 year ago

daemondev commented 1 year ago

Hi there,

Thank you for opening an issue.

Terraform Version

Sonarqube version: 9.9.0 Terraform v1.2.9 on linux_amd64

Affected Resource(s)

Please list the resources as a list, for example:

Terraform Configuration Files

sonarqube_gitlab_binding.gitlab-binding: Creating...
╷
│ Error: API returned an error: Unknown url : /api/alm_settings/set_gitlab_binding
│ 
│   with sonarqube_gitlab_binding.gitlab-binding,
│   on integration.tf line 13, in resource "sonarqube_gitlab_binding" "gitlab-binding":
│   13: resource "sonarqube_gitlab_binding" "gitlab-binding" {
│ 
╵
ERRO[0026] 1 error occurred:
        * exit status 1

Expected Behavior

create binding

Actual Behavior

error

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform apply

References

Are there any other GitHub issues (open or closed) or Pull Requests that should be linked here? For example:

daemondev commented 1 year ago

Gitlab community 15

jdamata commented 1 year ago

What version of sonarqube are you using?

daemondev commented 1 year ago

@jdamata Sonarqube version: 9.9.0 image

jdamata commented 1 year ago

Are you able to configure this manually via these steps? https://docs.sonarqube.org/latest/devops-platform-integration/gitlab-integration/#importing-your-gitlab-projects-into-sonarqube

Maybe the community version you are using is not supported for this? The CI for this project uses the sonarqube:developer docker image.

daemondev commented 1 year ago

@jdamata then, what sonar (version community) is full compatible with terraform-provider-sonarqube ?

jdamata commented 1 year ago

Some of the features supported by this provider are only available in the developer edition of sonarqube.

jdamata commented 1 year ago

Are you able to configure this manually via these steps? https://docs.sonarqube.org/latest/devops-platform-integration/gitlab-integration/#importing-your-gitlab-projects-into-sonarqube

Maybe the community version you are using is not supported for this? The CI for this project uses the sonarqube:developer docker image.

Were you able to configure this manually? If not, I don't think this is an issue with the terraform provider and I'll close this issue