Jenkins - add a diagram to the work interface

How to add pdepend diagram to Jenkins work interface (called project)? Is this really possible?

+7
source share
3 answers

Yes it is. Description Jenkins allows you to add images.

You could use embed some time ago, but this was removed when XSS protection was added, but:

Assuming your diagrams are under build/pdepend/* , insert the following two lines into the description:

 <img type="image/svg+xml" height="300" src="ws/build/pdepend/overview-pyramid.svg" width="500"></img> <img type="image/svg+xml" height="300" src="ws/build/pdepend/dependencies.svg" width="500"></img> 

Using a relative path, you do not need to change the path if you rename the project or move the server.

+7
source

Even after using the solution obtained by edorian , this did not work for me.

After doing some R&D, I noticed that it was a bug in Jenkins

https://issues.jenkins-ci.org/browse/JENKINS-22028

and allowed in 1.564 or later.

To resolve this issue, follow these steps: Go to Jenkins Management> Configure Global Security> and select the markup formatter as RAW HTML.

+6
source

I know this is an old question, but it can help those who are looking for a way to do this. Firstly, my project is a test project in which one of my test steps writes a file with the result that I want to measure over time, so I have a csv file. Then I included a highchart.js script in the project description with csv values. Thus, I have a chart with the values โ€‹โ€‹of all tasks in one place and look like this:

Jenkins chart screenshot

Note. To do this, you need to install the "nothing-goes-format" plugin, which, I think, has security risks. Hope this helps someone.

0
source

All Articles