Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Getting coverage information in Jenkinsfile pipeline #257

Open
@aadis

Description

@aadis

Has anyone gotten coverage information out from Jenkinsfile? I always get this:

[Cobertura] Publishing Cobertura coverage report...
[Cobertura] Publishing Cobertura coverage results...
[Cobertura] Cobertura coverage report found.

but after that

[phabricator:process-build-result] No line coverage found, skipping...
[phabricator:process-build-result] No coverage provider available.
[phabricator:file-fetcher] no files found by path: '.phabricator-lint'
[phabricator:harbormaster] Sending Harbormaster RUN_DISPLAY_URL via PHID: PHID-HMBT-5fmffgo4b7rm5de5nie6
[phabricator:process-build-result] Publishing unit results to Harbormaster for 162 tests.
[phabricator:process-build-result] Sending build result to Harbormaster with PHID PHID-HMBT-5fmffgo4b7rm5de5nie6, success: false

I'm calling cobertura like

step([$class: 'CoberturaPublisher', autoUpdateHealth: true, autoUpdateStability: true, coberturaReportFile: '**/coverage*.xml',
               failNoReports: false, failUnhealthy: false, failUnstable: false, maxNumberOfBuilds: 3, onlyStable: false, zoomCoverageChart: true])
publishHTML([allowMissing: true, keepAll: true, reportDir: 'htmlcov', reportFiles: 'index.html', reportName: 'Python Coverage HTML'])

and Phabricator plugin like

step([$class: 'PhabricatorNotifier', commentOnSuccess: true, commentWithConsoleLinkOnFailure: true, uberallsEnabled:true,
             customComment:true, commentFile:".phabricator-comment", commentSize:"20000",
             processLint:true, lintFile:".phabricator-lint",  ])

Any ideas what I'm doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions