Repository navigation
CLP-897 Split build from analysis - #498
guillaume-dequenne wants to merge 1 commit into
Conversation
❌ ErrorsYour PR has failed checks. Please review the issues below and take necessary action before merging. 🚦 1 Pipeline job failed
Useful? React with 👍 / 👎 This comment will be updated automatically if new data arrives.🔗 Commit SHA: 3b91f6b | Docs | View more details | Give us feedback! |
| - name: Upload build output for scanning | ||
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | ||
| with: | ||
| name: build-output-${{ steps.build.outputs.BUILD_NUMBER }} | ||
| path: '**/target' | ||
| retention-days: 3 |
There was a problem hiding this comment.
⚠️ Bug: Scan artifact leaves out coverage/java/jacoco.xml, so NEXT loses coverage
The build job only uploads **/target. The aggregate JaCoCo report is written somewhere else: coverage-report/pom.xml sets report-aggregate to write to ${maven.multiModuleProjectDirectory}/coverage/java, and the root pom.xml points sonar.coverage.jacoco.xmlReportPaths at ${maven.multiModuleProjectDirectory}/coverage/java/jacoco.xml. That file never goes into the artifact, and a fresh checkout doesn't have it. The skip-build scan will therefore run without a coverage report and send 0%/missing coverage to NEXT. That contradicts the PR's claim that the analysis stays equivalent, and it can fail the coverage condition of the quality gate. To fix it, add coverage/java to the uploaded paths (the upload root is still the workspace, so the download restores it to the same place). You could also add if-no-files-found: error so a missing report is caught.
Include the aggregate coverage report in the scan artifact:
- name: Upload build output for scanning
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: build-output-${{ steps.build.outputs.BUILD_NUMBER }}
path: |
**/target
coverage/java
if-no-files-found: error
retention-days: 3
Was this helpful? React with 👍 / 👎
CI failed: Maven build failed on the coverage-report project because the maven-enforcer-plugin detected a missing explicit version for the jacoco-maven-plugin.Overview1 build failure found across 1 job, caused by a strict Maven enforcer rule regarding plugin versions. The relationship to the PR is unclear/unrelated. FailuresMaven Enforcer Plugin Version Failure (confidence: high)
Summary
Code Review
|
| Auto-apply | Compact | Unblock |
|
|
|
Was this helpful? React with 👍 / 👎 | Gitar
Part of CLP-897
Summary
Dependency
Validation