We are starting with our sonarcloud trial and our maven builds fail using Gitlab CI with the following error message:
Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar (default-cli) on project yyy: You must define the following mandatory properties for 'xxx:yyy': sonar.organization
Can you point me to the documentation explaining the sonar.organization property, please? What is the expected value and how do I set it? I would prefer if we can set it globally in a Gitlab CI environment variable.
OK, I can see it now - it is supposed to contain the “organization key” as set in the sonarcloud Administration → Organization details → Edit organization key
Is there an environment variable I can set globally in gitlab CI so that I don’t have to modify each and every project pom.xml file, please?
ERROR: Error during SonarScanner execution ERROR: You must define the following mandatory properties for 'XXX:YYY': sonar.organization ERROR: ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.
Where do I specify sonar.organization for this use case, please?
It would really simplify things if there was an option to set this globally per gitlab group.