pipeline-templates icon indicating copy to clipboard operation
pipeline-templates copied to clipboard

Testing Pipeline Failing on Sonar Scan

Open gregnrobinson opened this issue 3 years ago • 3 comments

Hey folks, looks like you need to update the sonar project for the sonar scan testing GitHub workflow. This pipeline runs every Sunday and I get emails when it fails. Should be an easy fix. Just need a sonar project that you want to use for testing.

Error:  Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar (default-cli) on project maven-test: Project not found. Please check the 'sonar.projectKey' and 'sonar.organization' properties, the 'SONAR_TOKEN' environment variable, or contact the project administrator -> [Help 1]
Error: 
Error:  To see the full stack trace of the errors, re-run Maven with the -e switch.
Error:  Re-run Maven using the -X switch to enable full debug logging.
Error: 
Error:  For more information about the errors and possible solutions, please read the following articles:
Error:  [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Error: Process completed with exit code 1.

gregnrobinson avatar Jun 28 '22 14:06 gregnrobinson

Here is the workflow...

https://github.com/bcgov/pipeline-templates/actions/runs/2562521758

gregnrobinson avatar Jun 28 '22 14:06 gregnrobinson

Hey @mitovskaol this still needs to be addressed...

Just requires your team to edit the pom.xml in the demo folder with a maven project that exists.

This is causing the testing workflow to fail every week...

gregnrobinson avatar Sep 09 '22 04:09 gregnrobinson

@ShellyXueHan @caggles Is this something that one of you can do ?

mitovskaol avatar Sep 09 '22 18:09 mitovskaol

Close, fixing on https://github.com/bcgov/pipeline-templates/pull/60 and https://github.com/bcgov/pipeline-templates/pull/57

w8896699 avatar Jul 04 '23 23:07 w8896699