Fix Jenkins coverage plugin syntax: use recordCoverage instead of lcovAdapter
qt-migration-copilot-demo/pipeline/pr-main This commit looks good
qt-migration-copilot-demo/pipeline/head Build queued...

- Jenkins Coverage Plugin 4.x+ uses recordCoverage method
- Replaced deprecated publishCoverage with lcovAdapter syntax
- New syntax: recordCoverage tools: [[parser: 'LCOV', pattern: '...']]

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Entire-Checkpoint: 02bccf38a4ee
This commit is contained in:
torstenandCopilot committed 2026-10-22 19:54:34 +02:00
1 parent 63444f8f14
commit 08edfc17ee
1 file changed
+2 -2
Vendored
+2 -2
View File
@@ -137,8 +137,8 @@ pipeline {
}
post {
always {
publishCoverage adapters: [lcovAdapter(mergeToOneReport: true, reportFile: 'coverage/lcov.info')],
sourceFileResolver: sourceFiles('STORE_LAST_BUILD')
recordCoverage tools: [[parser: 'LCOV', pattern: 'coverage/lcov.info']],
sourceCodeRetention: 'LAST_BUILD'
}
}
}