-
Notifications
You must be signed in to change notification settings - Fork 62
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
Allure plugin does not load reports with jenkins 1.641 #47
Comments
@rajatjindal83 hi! Did you read the docs http://wiki.qatools.ru/display/AL/Allure+Jenkins+Plugin ? |
@rajatjindal83 see #45 |
@rajatjindal83 @rajatjindal83 Tried to find the right place to configure both system properties - Thanks, |
@rucindrea please try to add respective -Djenkins.model.DirectoryBrowserSupport.CSP to /etc/default/jenkins (that's under Ubuntu, don't know about Windows). |
@vania-pooh thanks! any ideas on how that goes on mac? |
Can you specify the exact line / row that needs to be added inline ? On Tue, Apr 26, 2016, 22:31 Ivan Krutov notifications@github.com wrote:
|
@rucindrea how about editing the following file:
I don't now the exact file name but it should be in this directory and contain "jenkins" in name. |
@vania-pooh Can you specify the exact line / row that needs to be added inline ? |
@roeera The exact line is : JAVA_ARGS="-Djava.awt.headless=true -Dhudson.model.DirectoryBrowserSupport.CSP="default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline';" -Djenkins.model.DirectoryBrowserSupport.CSP="default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline';"" from etc/default/ , jenkins file :) |
@Melinda94 Thanks ! |
@Melinda94 : 👍 this works like a charm, so I added following to my /etc/default/jenkins file
|
@ALL: let's then close this? |
@vania-pooh any help in where to update in jenkins windows. I was trying to update in jenkins.xml tag. Before the link is i updated to
|
@vania-pooh somehow i got it worked. Update in jenkins.xml with the below lines
But the problem, is i only get Loading screen. It never goes past that when i open the results in jenkins. Please help |
@sudheerkb we are solved this problem in 2.12. Can you test this? |
I've requested our build/release team to update the plugin and will get back with results. Thanks for fixing. Thanks |
I can confirm that this is working now. Thanks a lot guys |
Jenkins 1.641 / Jenkins 1.625.3 introduce the Content-Security-Policy header to static files served by Jenkins (specifically, DirectoryBrowserSupport).
This header is set to a very restrictive default set of permissions to protect Jenkins users from malicious HTML/JS files in workspaces, /userContent, or archived artifacts.
and when we try to load Allure report with this jenkins, we get following error in browser console:
Blocked script execution in 'https://jenkins2/view/viewname/job/jobname/allure/' because the document's frame is sandboxed and the 'allow-scripts' permission is not set.
The text was updated successfully, but these errors were encountered: