user1615069 user1615069 - 10 days ago 5
PHP Question

Jenkins - add chart to the job interface

How can I add the pdepend chart to the Jenkins job interface (under the project's title)? Is it actually possible to do so?

Answer

Yes it is. The Jenkins description allows for images to be added.

Some time ago you could use embed but that was removed when XSS protection was added but:

Assuming your charts are under build/pdepend/* paste the following two lines in 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>

By using a relative path you don't need to change the path if you rename the project or move the server.