Giter Site home page Giter Site logo

Comments (19)

baev avatar baev commented on June 27, 2024

@rajatjindal83 hi!

Did you read the docs http://wiki.qatools.ru/display/AL/Allure+Jenkins+Plugin ?

from allure-plugin.

jalona avatar jalona commented on June 27, 2024

@rajatjindal83 see #45
Solution in http://wiki.qatools.ru/display/AL/Allure+Jenkins+Plugin

from allure-plugin.

roeera avatar roeera commented on June 27, 2024

@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.

rucindrea avatar rucindrea commented on June 27, 2024

@roeera I have the exact same problem. How do I save these settings permanently? @baev any help?

from allure-plugin.

vania-pooh avatar vania-pooh commented on June 27, 2024

@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.

rucindrea avatar rucindrea commented on June 27, 2024

@vania-pooh thanks! any ideas on how that goes on mac?

from allure-plugin.

roeera avatar roeera commented on June 27, 2024

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.

vania-pooh avatar vania-pooh commented on June 27, 2024

@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.

roeera avatar roeera commented on June 27, 2024

@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.

Melinda94 avatar Melinda94 commented on June 27, 2024

@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.

roeera avatar roeera commented on June 27, 2024

@Melinda94 Thanks !

from allure-plugin.

salujaharkirat avatar salujaharkirat commented on June 27, 2024

@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.

vania-pooh avatar vania-pooh commented on June 27, 2024

@ALL: let's then close this?

from allure-plugin.

sudheerkb avatar sudheerkb commented on June 27, 2024

@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.

sudheerkb avatar sudheerkb commented on June 27, 2024

@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.

vania-pooh avatar vania-pooh commented on June 27, 2024

Maybe http://stackoverflow.com/questions/23997449/allure-report-nothing-shown-in-chrome ?

from allure-plugin.

eroshenkoam avatar eroshenkoam commented on June 27, 2024

@sudheerkb we are solved this problem in 2.12. Can you test this?

from allure-plugin.

rajatjindal avatar rajatjindal commented on June 27, 2024

@eroshenkoam

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.

rajatjindal avatar rajatjindal commented on June 27, 2024

I can confirm that this is working now. Thanks a lot guys

from allure-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.