question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Source code is unavailable no matter what I do

See original GitHub issue

I’m using #55 and everything seems to work fine, I see coverage results in jenkins with cool graphs, but I can’t manage to get the sources to display in jenkins.

Source

Source code is unavailable. Some possible reasons are:

This is not the most recent build (to save on disk space, this plugin only keeps the most recent build’s source code).
Cobertura found the source code but did not provide enough information to locate the source code.
Cobertura could not find the source code, so this plugin has no hope of finding it.
You do not have sufficient permissions to view this file.

image

There are a few related old issues: #29 #38

There is this closed issue: https://issues.jenkins-ci.org/browse/JENKINS-5235

My coverage.xml does have a valid path in sources:source tag. I was able to ls the sources from the path in the file.

        <sources>
                <source>/var/lib/jenkins/workspace/e-HTHYJUZDZMCL63QUXR6Q5QZPTK4AQEV3NNTYGGY2FQSB27WHP6ZA/MyAppName</source>
        </sources>

(only works with #55)

step([$class: 'CoberturaPublisher', coberturaReportFile: 'MyAppName/reports/coverage.xml'])

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
v-lopezcommented, Nov 30, 2016

On my installation, I found out that only users with admin privilege can see the source code. Might be relevant to you.

2reactions
Jean-Danielcommented, Dec 12, 2016

Did just install the modified cobertura plugin and have the same issue here. It works with the old plugin when importing coverage.xml in a old style job, but not with the new plugin working in a pipeline job, so this is definitively not a user permission issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Jenkins Cobertura plugin "Source code is unavailable"
Source code is unavailable. Some possible reasons are: This is not the most recent build (to save on disk space, this plugin only...
Read more >
What Does HTTP Error 503 (Service Unavailable) Mean ...
A 503 Service Unavailable Error is an HTTP response status code that indicates your web server operates properly, but it can't handle a...
Read more >
503 Service Unavailable - HTTP - MDN Web Docs
The HyperText Transfer Protocol (HTTP) 503 Service Unavailable server error response code indicates that the server is not ready to handle ...
Read more >
How to Fix the 503 Error in WordPress - DreamHost
A 503 Service Unavailable Error typically means your web server ran out of the resources it needs to display your website. This can...
Read more >
HTTP Error 503 Service Unavailable Explained - freeCodeCamp
What does the 503 error code mean? ... Source. Whatever the reason for the 503 error, it's usually temporary – the server will...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found