title: Jenkins calling groovy script security errors
body: <p>I'm currently working on running bentolor's <a href="https://github.com/bentolor/idea-cli-inspector" rel="nofollow">idea-cli-inspector</a> in my pipeline for static analysis. Unfortunately, I cannot find any documentation on how to allow parameters using the "load" command, and this command works by bringing in source anyway, so I made my own function, but unfortunately, it isn't quite working out (probably due to script security).</p>
  
  <p>Function:</p>
  
  <pre><code>def callIdeaInspector() {
      String[] args = ['-i', '/Applications/Android\\ Studio.app/', '-p', '.idea/inspectionProfiles/CompanyName.xml', '-d',
          'src/main/java/com/CompanyName/', '-l', 'ERROR']
      Binding context = new Binding(args)
      result = new GroovyShell(context).evaluate(new File("../btMobileApp/ideainspect.groovy"))
  }
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: unclassified new groovy.lang.Binding java.util.ArrayList
  </code></pre>