shanbin / scoverage-plugin

Jenkins scoverage plugin for Scala code coverage
https://wiki.jenkins-ci.org/display/JENKINS/Scoverage+Plugin
MIT License
6 stars 19 forks source link

Build report return 404 in Jenkins 2.150.1 #24

Open iaco86 opened 5 years ago

iaco86 commented 5 years ago

We just updated to Jenkins 2.150.1 and the scoverage plugin stopped working for the build-specific reports. For instance, for the run number 71, jetty returns a

HTTP ERROR 404
Problem accessing /<orgName>/job/<projectName>/71/scoverage-report. Reason:

    Not Found

When viewing the report for the project, instead, that is correctly reachable at /<orgName>/job/<projectName>/scoverage/ I double checked the directories created on the master instance, and files are correctly stored, e.g. for build 71 in <jenkinsHome>/jobs/<projectName>/builds/71/scoverage-report... Has anyone seen this and found a workaround? It looks like an update to jenkins (possibly the stapler dependency) broke this...

iaco86 commented 5 years ago

The problem is in the ovverride of StaplerProxy in ScovergeBuildAction - since it returns null, jenkins throws a 404. Removing the implementation fixes the problem, I'm not sure if it breaks compatibility with older versions of jenkins.