Gatling reports not displaying properly via Jenkins

590 views
Skip to first unread message

Krishna Kumar C

unread,
Sep 12, 2016, 4:43:43 AM9/12/16
to Gatling User Group
Hi,

I followed the instructions mentioned in https://github.com/bbc/notes-on-perf-testing/blob/master/ch/jenkins.md by adding the following:


# /usr/local/bin/jenkins -Djava.awt.headless=true -Dhudson.model.DirectoryBrowserSupport.CSP=\"sandbox allow-scripts; style-src 'unsafe-inline' *;script-src 'unsafe-inline' *;\"

but the reports are not showing the charts when i click the report from Jenkins directly. If i download the reports as zip file and open it locally it is showing properly though.
Thanks!

regards
Krishna

adrian...@hushmail.com

unread,
Sep 12, 2016, 5:25:13 AM9/12/16
to Gatling User Group
Hi Krishna, 

Thanks for reading my documentation. 

I am currently working on transitioning anything useful to the official Gatling documentation. 

I will try it out myself using the latest versions of Gatling, Jenkins and the Gatling Jenkins plugin, and get back to you, 

Aidy

Krishna Kumar C

unread,
Sep 12, 2016, 8:14:25 AM9/12/16
to Gatling User Group
Thanks Aidy!

regards
Krishna

adrian...@hushmail.com

unread,
Sep 12, 2016, 11:24:28 AM9/12/16
to gat...@googlegroups.com
The easiest (but most unsafe) thing would be to unset the headers

manage jenkins > script console
System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "")

Note: You do this at your own risk.

Aidy
>--
>You received this message because you are subscribed to a topic in
>the Google Groups "Gatling User Group" group.
>To unsubscribe from this topic, visit
>https://groups.google.com/d/topic/gatling/E0fuwucl7tA/unsubscribe.
>To unsubscribe from this group and all its topics, send an email
>to gatling+u...@googlegroups.com.
>For more options, visit https://groups.google.com/d/optout.

Stéphane LANDELLE

unread,
Sep 12, 2016, 11:29:09 AM9/12/16
to gat...@googlegroups.com
At your own risk = make sure you don't have plugins that use this feature where people might inject Javascript code, and protect your Jenkins master and slave filesystems so that some don't edit the Gatling reports in there.
The latter is pretty common sense...


Stéphane Landelle
GatlingCorp CEO



>For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages