How to display a svg file in Jenkins

Stanley Meng
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:

  1. Open Firefox
  2. Type “about:config” to open the hidden configuration
  3. Search “security.csp.enable”
  4. Change True to False

If you use Chrome:

  1. Install this extension: https://chrome.google.com/webstore/detail/disable-content-security/ieelmcmcagommplceebfedjlakkhpden?hl=en
  2. Enable it

Da da~~

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response