[FOLIO-2901] Potential misconfiguration of SonarQube for mod-copycat Created: 08/Dec/20  Updated: 16/Dec/20  Resolved: 08/Dec/20

Status: Closed
Project: FOLIO
Components: None
Affects versions: None
Fix versions: None

Type: Task Priority: TBD
Reporter: David Crossley Assignee: John Malconian
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original estimate: Not Specified

Sprint: DevOps: Sprint 103
Development Team: FOLIO DevOps

 Description   

For mod-copycat its Sonarcloud "Overview" page says:

Quality Gate : Not computed
We can't display your Quality Gate without a New Code definition.

When we set up the initial mod-copycat repo, then we did commit the Jenkinsfile directly to mainline branch, as is needed to get its initial run. There was an unrelated failure during later stages that build.

In case that was the reason, then today i removed Jenkinsfile and directly re-added it. But the Sonarcloud message remains.

Note this other message towards the end of the Jenkins stage "Maven Build":

[INFO] --- jacoco-maven-plugin:0.8.6:report (default-cli) @ mod-copycat ---
[INFO] Skipping JaCoCo execution due to missing execution data file.

However i cannot determine what that means. Help please.



 Comments   
Comment by John Malconian [ 08/Dec/20 ]

I was able to resolve this by configuring the 'New Code definition' directly for the project in Sonarcloud - the default 'New Code definition' for FOLIO repos is 'Number of Days' - specifically, 30 days. Normally, this is set up automatically. I'm not entirely sure what happened in this instance. We'll need to monitor this on new repos going forward to see if it's still set automatically or we now need to configure it specifically.

More information:

https://sonarcloud.io/documentation/user-guide/new-code/

Comment by David Crossley [ 16/Dec/20 ]

I verified some other new repos (e.g. edge-dematic) and yes, did need to manually set it too.

Generated at Thu Feb 08 23:24:05 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d.