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:



  <approvedSignatures/>
  ...
  <pendingSignatures>
    <pendingSignature>
      <context/>
      <signature>method java.net.URL openStream</signature>
      <dangerous>true</dangerous>
    </pendingSignature>
  </pendingSignatures>
...
</scriptApproval>


I have editted the script into

  <approvedSignatures>
      <signature>method java.net.URL openStream</signature>
  </approvedSignatures>
...
</scriptApproval>

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.

Reply via email to