Closed fzhao99 closed 6 days ago
@shanice-skylight I seem to be able to repro this pretty consistently when I'm manually rerunning the sonar job, even after the first build succeeded. See this PR for an example
Notes on why this error is triggered:
Your project contains .java files, please provide compiled classes with sonar.java.binaries property, or exclude them from the analysis with sonar.exclusions property.
Reference used
I added the sonar.java.binaries
property, now I'm working through fixing a message that says Could not calculate hash for class
, fixed the hash error by providing the full path to java classes
Description
Sonarcube seems to be intermittently failing to build in CI jobs. See examples here and here
Steps to reproduce
Kicking the job seems to fix it somehow, so wondering if it's just an issue on first creation?
Expected behavior
Sonar building on the first try when unrelated code is put up for review