[JIRA] (JENKINS-42913) RejectedAccessException for docker.image.inside within the library class

2017-03-20 Thread jgl...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jesse Glick resolved as Not A Defect  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 You did not attach the call site, but I suspect you passed steps when you meant to pass this. See the documentation for libraries.  
 

  
 
 
 
 

 
 Jenkins /  JENKINS-42913  
 
 
  RejectedAccessException for docker.image.inside within the library class   
 

  
 
 
 
 

 
Change By: 
 Jesse Glick  
 
 
Status: 
 Open Resolved  
 
 
Resolution: 
 Not A Defect  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an 

[JIRA] (JENKINS-42913) RejectedAccessException for docker.image.inside within the library class

2017-03-19 Thread o.v.nenas...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Oleg Nenashev created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-42913  
 
 
  RejectedAccessException for docker.image.inside within the library class   
 

  
 
 
 
 

 
Issue Type: 
  Improvement  
 
 
Assignee: 
 Unassigned  
 
 
Components: 
 docker-workflow-plugin, pipeline  
 
 
Created: 
 2017/Mar/19 10:25 PM  
 
 
Environment: 
 Jenkins 2.32.3  Docker Pipeline 1.10  Latest Pipeline plugin (Mar 20)  
 
 
Priority: 
  Minor  
 
 
Reporter: 
 Oleg Nenashev  
 

  
 
 
 
 

 
 When I call a library class from Pipeline, I get "org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use method groovy.lang.GroovyObject getProperty" for docker.image().inside. It is reproducible on several latest versions. I would expect the sample to be whitelisted since docker is a global variable. The similar code works fine outside the library class Script: 

 
package org.librecores.fusesoc;

public class Builder {
  
  def script
  
...
  
  public Builder(script) {this.script = script}
  
  /**
  * Default builder.
  * It picks core definitions from DEFAULT_CORES_REPO and pathes it before the build
  */
  public void build(String coreName, String githubUsername, String version) {
script.docker.image(DEFAULT_IMAGE).inside {
  script.stage ("Patch the orpsoc-cores registry") {
script.sh "cd /fusesoc && rm -rf orpsoc-cores"
script.dir('orpsoc-cores') {
script.git DEFAULT_CORES_REPO;
}
 

 Exception: 

 

[JIRA] (JENKINS-42913) RejectedAccessException for docker.image.inside within the library class

2017-03-19 Thread o.v.nenas...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Oleg Nenashev updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-42913  
 
 
  RejectedAccessException for docker.image.inside within the library class   
 

  
 
 
 
 

 
Change By: 
 Oleg Nenashev  
 
 
Issue Type: 
 Improvement Bug  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.