user1615069 user1615069 - 1 year ago 117
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 Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download