-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Critical
-
Resolution: Fixed
-
Component/s: jacoco-plugin
-
Labels:None
-
Environment:Jenkins 1.625.2
JaCoCo plugin 2.0.0
Git plugin 2.4.0
Git client plugin 1.19.0
-
Similar Issues:
The jacoco plugin shows raw HTML instead of showing the coverage chart in certain views.
Steps to duplicate the problem:
- Download the reference docker image including the git-client-coverage job and plugin configurations
git clone git://github.com/MarkEWaite/docker.git cd docker git checkout -b master-jacoco-2.0.0-bug -t origin/master-jacoco-2.0.0-bug sudo docker build -t master-jacoco-2.0.0-bug . sudo docker run -it -p 9090:8080 -p 60000:50000 master-jacoco-2.0.0-bug
- Build git-client-coverage job once
- Select the left axis of the "Code Coverage Trend" graph
The page which appears will show raw HTML instead of showing the expected chart or table. Refer to the attached picture to see the results.
- is duplicated by
-
JENKINS-31758 Test coverage report defect after upgrade to Jacoco 0.7.5/Jacoco Plugin 2.0.0
-
- Closed
-
-
JENKINS-32153 HTML escaped in JaCoCo Coverage Report
-
- Closed
-
- is related to
-
JENKINS-32528 Jenkins JaCoCo Plugin 2.0.0 shows HTML code in Coverage Trend
-
- Closed
-
Code changed in jenkins
User: Calin Iorgulescu
Path:
src/main/resources/hudson/plugins/jacoco/tags/breakdownMethodsTable.jelly
src/main/resources/hudson/plugins/jacoco/tags/breakdownTable.jelly
src/main/resources/hudson/plugins/jacoco/tags/summaryMethod.jelly
src/main/resources/hudson/plugins/jacoco/tags/summaryTable.jelly
http://jenkins-ci.org/commit/jacoco-plugin/8651004c738ea37f43932cea0de244d20b16d52f
Log:
[FIXED JENKINS-31751]: Correctly escape HTML in jelly files.