Must-share information (formatted with Markdown):
- which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension) - SonarQube
- how is SonarQube deployed: zip, Docker, Helm - zip
- what are you trying to achieve - For same project, with same token analysis is done and uploaded to sonarqube dashboard via github actions but the issue occurs in Jenkins pipeline
- what have you tried so far to achieve this -
- Tried same command and token from both github actions and Jenkins pipeline.
- Generated new token and tried with that as well
- Token generated as admin user and it has administer permission for all repos
Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!
> Task :sonar FAILED
**17:48:54**
**17:48:54** FAILURE: Build failed with an exception.
**17:48:54**
**17:48:54** * What went wrong:
**17:48:54** Execution failed for task ':sonar'.
**17:48:54** > You're not authorized to run analysis. Please contact the project administrator.
**17:48:54**
**17:48:54** * Try:
**17:48:54** > Run with --info or --debug option to get more log output.
**17:48:54** > Run with --scan to get full insights.
**17:48:54**
**17:48:54** * Exception is:
**17:48:54** org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':sonar'.
**17:48:54** at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:147)
**17:48:54** at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:282)