You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sonarcube seems to be intermittently failing to build in CI jobs. See examples here and here
Steps to reproduce
Open a PR
Sonar will try building but fail with the following error code
> Your project contains .java files, please provide compiled classes with sonar.java.binaries property, or exclude them from the analysis with sonar.exclusions property.
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
The text was updated successfully, but these errors were encountered:
@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
Compiled .class files are required for java projects with more than one java file. If not provided properly, analysis will fail with the message:
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
The text was updated successfully, but these errors were encountered: