Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disable sonar analysis if SONAR_TOKEN not available #299

Closed
vdelendik opened this issue Apr 23, 2023 · 2 comments
Closed

disable sonar analysis if SONAR_TOKEN not available #299

vdelendik opened this issue Apr 23, 2023 · 2 comments
Labels
enhancement New feature or request
Milestone

Comments

@vdelendik
Copy link
Contributor

due to the upgraded sonarqube to 9.8.0 we need SONAR_TOKEN obligatory to start static code analysis.
if no token discovered we have to skip analysis otherwise we see:

12:43:48  [ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar (default-cli) on project carina-demo: Not authorized. Please check the properties sonar.login and sonar.password. -> [Help 1]
12:43:48  [ERROR] 
12:43:48  [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
12:43:48  [ERROR] Re-run Maven using the -X switch to enable full debug logging.
12:43:48  [ERROR] 
12:43:48  [ERROR] For more information about the errors and possible solutions, please read the following articles:
12:43:48  [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
@vdelendik vdelendik added the enhancement New feature or request label Apr 23, 2023
@vdelendik vdelendik added this to the 2.0 milestone Apr 23, 2023
@vdelendik
Copy link
Contributor Author

done. by default after setup CE from develop we have disabled sonar integration. only after finishing https://github.com/zebrunner/community-edition/blob/develop/docs/integration/scm.md and https://github.com/zebrunner/community-edition/blob/develop/docs/integration/sonarqube.md static code analysis and pull request checker should appear

@ghost
Copy link

ghost commented Apr 27, 2023

verified, fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

No branches or pull requests

1 participant