Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comply with the new Jenkins Security Settings #12

Closed
santostiago opened this issue Feb 23, 2016 · 2 comments
Closed

Comply with the new Jenkins Security Settings #12

santostiago opened this issue Feb 23, 2016 · 2 comments

Comments

@santostiago
Copy link

In the newest versions of Jenkins, the page is shown in plain html, because of Jenkins' new security policy.
Please create a fix for this :)

@BogdanLivadariu
Copy link
Contributor

BogdanLivadariu commented Feb 27, 2016

as a temporary solution you could do this :
image

but after you restart jenkins, you'll have to do it again.

I managed to host the js /css / etc files locally, but jenkins does not allow js execution inside, so this is at the moment the thing you will have to do in allowing jenkins to execute scripts.

another alternative would be to :
tweak your /etc/sysconfig/jenkins file to add an extra property
-Dhudson.model.DirectoryBrowserSupport.CSP=""
so it might look similar to

JENKINS_JAVA_OPTIONS="-Djava.awt.headless=true -Dhudson.model.DirectoryBrowserSupport.CSP=\"\""

@BogdanLivadariu
Copy link
Contributor

from 2.0.1 plugin will comply with the security, no more tweaking should be required :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants