Comments (19)
@rajatjindal83 hi!
Did you read the docs http://wiki.qatools.ru/display/AL/Allure+Jenkins+Plugin ?
from allure-plugin.
@rajatjindal83 see #45
Solution in http://wiki.qatools.ru/display/AL/Allure+Jenkins+Plugin
from allure-plugin.
@rajatjindal83 @rajatjindal83
Hi,
Tried to find the right place to configure both system properties -
"-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';"
The only way that works for me is to configure it through jenkins console
like in the following solution
http://stackoverflow.com/questions/35181175/how-to-relax-jenkins-security-rules-for-allure
Unfortunately this is working temporarily, because after some time, i found myself need to rerun the command again.
Is there another permanently option to solve it forever.
Thanks,
Roee.
from allure-plugin.
@roeera I have the exact same problem. How do I save these settings permanently? @baev any help?
from allure-plugin.
@rucindrea please try to add respective -Djenkins.model.DirectoryBrowserSupport.CSP to /etc/default/jenkins (that's under Ubuntu, don't know about Windows).
from allure-plugin.
@vania-pooh thanks! any ideas on how that goes on mac?
from allure-plugin.
Can you specify the exact line / row that needs to be added inline ?
Tried this also and it didn't work
On Tue, Apr 26, 2016, 22:31 Ivan Krutov [email protected] wrote:
@rucindrea https://github.com/rucindrea please try to add respective
-Djenkins.model.DirectoryBrowserSupport.CSP to /etc/default/jenkins
(that's under Ubuntu, don't know about Windows).—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#47 (comment)
from allure-plugin.
@rucindrea how about editing the following file:
~/Library/LaunchAgents/org.jenkins-ci.plist
I don't now the exact file name but it should be in this directory and contain "jenkins" in name.
from allure-plugin.
@vania-pooh Can you specify the exact line / row that needs to be added inline ?
Tried this also and it didn't work (in ubuntu)
from allure-plugin.
@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 :)
from allure-plugin.
@Melinda94 Thanks !
from allure-plugin.
@Melinda94 : 👍 this works like a charm, so I added following to my /etc/default/jenkins file
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 allure-plugin.
@ALL: let's then close this?
from allure-plugin.
@vania-pooh any help in where to update in jenkins windows. I was trying to update in jenkins.xml tag.
But no luck.
Before the link is <arguments>-Xrs -Xmx256m -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar "%BASE%\jenkins.war" --httpPort=8008 --webroot="%BASE%\war"</arguments>
,
i updated to
<arguments>-Xrs -Xmx256m -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -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'; -jar "%BASE%\jenkins.war" --httpPort=8008 --webroot="%BASE%\war"</arguments>
from allure-plugin.
@vania-pooh somehow i got it worked.
Update in jenkins.xml with the below lines
<arguments>-Xrs -Xmx256m -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -Dhudson.model.DirectoryBrowserSupport.CSP="default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline';" -jar "%BASE%\jenkins.war" --httpPort=8008 --webroot="%BASE%\war"</arguments>
But the problem, is i only get Loading screen. It never goes past that when i open the results in jenkins.
Please help
from allure-plugin.
Maybe http://stackoverflow.com/questions/23997449/allure-report-nothing-shown-in-chrome ?
from allure-plugin.
@sudheerkb we are solved this problem in 2.12. Can you test this?
from allure-plugin.
I've requested our build/release team to update the plugin and will get back with results.
Thanks for fixing.
Thanks
Rajat Jindal
from allure-plugin.
I can confirm that this is working now. Thanks a lot guys
from allure-plugin.
Related Issues (20)
- Build Graph - TREND
- Allure report is not showing text execution body
- Occasionally got PermissionError when build starts
- Allure Report Disappearing Jenkins Build
- Uninstallation of Allure plug is not done
- Allure report not displayed in BDD format (with given/when/then steps) when generated on Jenkins HOT 1
- 2.31.x breaks "Restart from Stage" with FileAlreadyExistsException HOT 4
- Ability to set title for allure report when publishing results
- Cannot remove Allure plugin
- Running allure plugin inside a container throws error: AllureCommandlineInstallation/Allure_2.21.0/bin/allure: no such file or directory: unknown
- not able to view graphical reports for allure
- Allure is not visible in Post-build action dropdown on Jenkins job HOT 3
- Not able to disable auto copy of history data in allure-results in a job
- Expose a column to show passed/failed statistics on jenkins view.
- Getting "hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection" exception in jenkins
- I am able to run Cypress tests using a freestyle job on local jenkins setup, but allure-results doesn't generate
- Multiple duplicate Allure reports from parallel Jenkins r
- allure plugin report not archived on artifactory when using artifactory artifact manager plugin.
- Can't find a way to pass JVM parameters to `allure` from Jenkins pipeline HOT 1
- Can't change default report name
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from allure-plugin.