How to approve pending signatures?

2017-04-20 Thread Maciej Gawinecki
Hi,

I have pipeline that downloads Groovy script from Git, but Groovy script 
fails with

  org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts 
not permitted to use method java.net.URL openStream

I found /var/lib/jenkins/scriptApproval.xml file with the following excerpt:



  
  ...
  

  
  method java.net.URL openStream
  true

  
...



I have editted the script into

  
  method java.net.URL openStream
  
...


but after Jenkins restart and re-running the pipeline it get overwritten.

How do I approve pending signatures?

Regards,
Maciej

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/96cf8845-3fca-4651-a392-28299c357fb8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Acessing build dir from browser

2016-06-23 Thread Maciej Gawinecki
Thank you. Works fine.

2016-06-23 15:26 GMT+02:00 Eric Pyle :

> You could archive the screenshots as build artifacts. This will still be
> removed according to your build retention settings, and they should also be
> accessible via URL.
>
> Eric
>
> On 6/23/2016 7:10 AM, Maciej Gawinecki wrote:
>
> My tests are taking screenshots. However, screenshots are taking a lot of
> space. So we have decided to store them within build directory, e.g.
>
>
> /home/dev/jenkins/jobs/run-authng-sqa-phantomjs-tests-on-sqa/builds/26/screenshots
>
> instead of workspace. This way, older builds are removed together with
> screenshots automatically. Now, when a screenshots is taken it says in the
> logs:
>
> Screenshot taken to 
> file:///var/lib/jenkins/jobs/run-authng-sqa-phantomjs-tests-on-sqa/builds/26/screenshots/2016-06-23T10:52:10.474+.png
>  can be accessed at 
> http://jenkins_server/job/run-authng-sqa-phantomjs-tests-on-sqa/26/screenshots/2016-06-23T10:52:10.474+.png
>
>
> However, screenshots are no longer visible through a Web browser, i.e.
> there's no way to access URL.
>
> Any workaround?
>
> Regards,
> Maciej
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> <https://groups.google.com/d/msgid/jenkinsci-users/dd64c508-a971-4706-9e8a-015221e29588%40googlegroups.com?utm_medium=email&utm_source=footer>
> https://groups.google.com/d/msgid/jenkinsci-users/dd64c508-a971-4706-9e8a-015221e29588%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
>
> * Eric Pyle *
> Release Engineer
> Lebanon
> +1 603-277-3060 (T)
> +1 603-359-8670 (M)
> eric.p...@cd-adapco.com
> <http://www.cd-adapco.com>http://www.cd-adapco.com
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/jenkinsci-users/jlsqYlCF9rQ/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/8109284f-37ab-91fe-830a-b4499fa0e43d%40cd-adapco.com
> <https://groups.google.com/d/msgid/jenkinsci-users/8109284f-37ab-91fe-830a-b4499fa0e43d%40cd-adapco.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAJ_nSZnaT5CVoftaYK7zpXdR59HhfkczABXvFa%2BR2t22Q2aXVA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Acessing build dir from browser

2016-06-23 Thread Maciej Gawinecki
My tests are taking screenshots. However, screenshots are taking a lot of 
space. So we have decided to store them within build directory, e.g.

/home/dev/jenkins/jobs/run-authng-sqa-phantomjs-tests-on-sqa/builds/26/screenshots

instead of workspace. This way, older builds are removed together with 
screenshots automatically. Now, when a screenshots is taken it says in the 
logs:

Screenshot taken to 
file:///var/lib/jenkins/jobs/run-authng-sqa-phantomjs-tests-on-sqa/builds/26/screenshots/2016-06-23T10:52:10.474+.png
 can be accessed at 
http://jenkins_server/job/run-authng-sqa-phantomjs-tests-on-sqa/26/screenshots/2016-06-23T10:52:10.474+.png
 


However, screenshots are no longer visible through a Web browser, i.e. 
there's no way to access URL.

Any workaround?

Regards,
Maciej

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/dd64c508-a971-4706-9e8a-015221e29588%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.