Getting Error trying to trigger SonarCloud from Jenkins

(Nathan McKeown) #1


We’ve been trying to follow the guidance from the forums to setup our Jenkins server to talk to SonarCloud, but we’ve been getting the error below.

Organization of component with key 'our project key' does not match specified organization 'default'

I can’t see any documentation regarding an organization property anywhere.

Any suggestions would be hugely appreciated!

(Fabrice Bellingard) #2

Hi Nathan,

how did you find the command line to run to trigger the analysis? If you created your project from the Web interface, you ended up on the empty project home page which shows a tutorial. Using that tutorial, you are supposed to find the relevant command to execute, and this command will include a sonar.organization parameter that is mandatory.