Search code examples
sonarqube

SonarQube - DevOpsPlatformIntegration - Settings via curl


I want to use a curl command to modify the SonarQube settings done on the dashboard with steps Project-Settings > DevOps-Platform-Integration > Configuration-Name & Repository-Name to be able to locate these 2 actions inside of a script. Although I have achieved to use of quality-gates and quality-profile related activities with curl, I could not find an API URL for this part to be able to use curl.


Solution

  • ok, it seems the curl below works as I request

    curl -u $token: -X POST -d "almSetting=XYZ" -d "repository=https://git.XYZ.com/XYZ/XYZ" -d "monorepo=false" -d "project=XYZ" "https://sonarqube.XYZ.com/api/alm_settings/set_github_binding"