Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins - add chart to the job interface

Tags:

php

jenkins

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

like image 462
user1615069 Avatar asked Sep 01 '12 19:09

user1615069


1 Answers

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.

like image 93
edorian Avatar answered Oct 05 '22 22:10

edorian