Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Source code is unavailable (Cobertura plugin 1.10) #103

Open
vitalykarasik opened this issue Aug 14, 2018 · 8 comments
Open

Source code is unavailable (Cobertura plugin 1.10) #103

vitalykarasik opened this issue Aug 14, 2018 · 8 comments

Comments

@vitalykarasik
Copy link

I'm producing coverage report by coverage.py and use "Publish cobertura report".
I do have "Cobertura Coverage Report" , but couldn't not see Python sources.
Can please someone point to to the document or example or proper coverage.xml file?
I reviewed coverage.xml, and filenames seem be right - "/opt/mydir/mypackage/vitaly.py".
In the same time into "Coverage Breakdown by File" section of report I see this path without leading slash, i.e. "opt/mydir/mypackage/vitaly.py".

Seems to be different from #102 - I do have admin right.

TIA,
Vitaly

@henryborchers
Copy link

I'm having the same issue

@jeffpearce
Copy link
Contributor

@henryborchers - I know you just updated the plugin - is this new with the latest version, or were you having it before?

@jeffpearce
Copy link
Contributor

@vitalykarasik - sorry for the slow response. Can you share the step from your Jenkinsfile that publishes the code coverage? Hopefully that should allow me to repro and fix

@jeffpearce
Copy link
Contributor

@henryborchers - same request - can you share the step from your Jenkinsfile that publishes the coverage?

@henryborchers
Copy link

@jeffpearce I'm actually trying out the new Jenkins Coverage Adapter for Cobertura so mine might be a little different. The xml file parses correctly but the generated report doesn't link to the source files
https://github.com/UIUCLibrary/Speedwagon/blob/87f25a04097350ff9f7283b8e0d3949b272e6af5/Jenkinsfile
line 317

@himperion92
Copy link

Same issue for me

@milos-u
Copy link

milos-u commented Feb 4, 2019

Same issue for me, running with latest jenkins and cobertura + coverage plugins
obrazek

@cizezsy
Copy link
Contributor

cizezsy commented Feb 14, 2019

@milos-u You need to click the name of sub-element to enter next level to see source files. You can see them below the chart you trying to click.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants