Not able to create new project when ran in Jenkins CI with personal access token

Hi, today have started to get the following error during our Jenkins CI build when it’s trying to run the analysis on a project that does not yet exist in Sonarcloud.

Caused by: com.sonarsource.scanner.engine.webapi.client.HttpException: Error 404 on https://api.sonarcloud.io/analysis/analyses : {"errors":[{"msg":"The project xxxxxxxxxxxxxx doesn't exist and can't be created. Please check the sonar.organizationKey and sonar.projectKey parameters, the permissions associated with your token, or create the project on the SonarQube Cloud UI."}

Last week, this worked fine on a new project. Nothing has changed in the permissions of the user whose token is being used. Have also tried it using another token, and getting the same error still. Analysis on existing projects is working fine, it’s only erroring on a new project.

Any ideas please on what can be done to resolve?

Jenkins is using v2.18.2 of the SonarQube scanner for Jenkins plugin

Hi,

We pushed a fix for that earlier today. Can you try again? This should be fixed.

 
Thx,
Ann

Thanks. Have retried and can confirm it now works as expected.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.