How to display a svg file in Jenkins
1 min readFeb 25, 2016
Consider this scenario: your Jenkins job create a svg file as artifact, e.g. a test result. You want to display it in Jenkins.
The issue is, you will see a black image in Chrome Firefox. Like this:
It’s due to this issue: https://issues.jenkins-ci.org/browse/JENKINS-32092
Well, I won’t say it’s an issue. Instead, it’s expected because of the content security policy.
To workaround this issue:
If you use Firefox:
- Open Firefox
- Type “about:config” to open the hidden configuration
- Search “security.csp.enable”
- Change True to False
If you use Chrome:
- Install this extension: https://chrome.google.com/webstore/detail/disable-content-security/ieelmcmcagommplceebfedjlakkhpden?hl=en
- Enable it
Da da~~