When performing a scan with the "maven" type and "__debug: true", the following error is reported:
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 04:18 min
[INFO] Finished at: 2021-01-08T18:05:03Z
[INFO] ------------------------------------------------------------------------/sonar/report-task.txt ]]
+ echo 'error: SonarQube report could not be located.'
error: SonarQube report could not be located.
+ exit 1
The resource is not able to find the generated report. Backtracking a bit, we find the following in the Concourse log output:
The reason for that is that the mvn -X portion is outputing debug information, and the extra output is mistakenly being set as the maven_project_build_directory
When performing a scan with the "maven" type and "__debug: true", the following error is reported:
The resource is not able to find the generated report. Backtracking a bit, we find the following in the Concourse log output:
Specifically, this line is important:
The reason for that is that the
mvn -X
portion is outputing debug information, and the extra output is mistakenly being set as themaven_project_build_directory
Here is the code portion in full: https://github.com/cathive/concourse-sonarqube-resource/blob/27a00c69ef2044d79c3f90175908b4b78db58fcd/assets/out#L246-L275