jenkinsci / jenkinsci/script-security-plugin
[JENKINS-48069] Scripts not permitted to use staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods minus java.util.List java.lang.Iterable
- Dominant language
- Java
- Stars
- 76
- Forks
- 181
- Avg merge
- 14h 55m
- Merged PRs (30d)
- 3
Description
I'm trying to find some intersections of lists (and/or sets) and cannot run the commands I found at http://groovyconsole.appspot.com/script/364002 which seem to be "basic" operations. I'm not getting an option to approve them in the script approval page.
I somehow got it to work by making some of the Set instead of List yesterday, but today after a Jenkins restart I cannot.
---
Originally reported by aarondmarasco_vsi, imported from: Scripts not permitted to use staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods minus java.util.List java.lang.Iterable
Raw content of original issue
I'm trying to find some intersections of lists (and/or sets) and cannot run the commands I found at http://groovyconsole.appspot.com/script/364002 which seem to be "basic" operations. I'm not getting an option to approve them in the script approval page.
I somehow got it to work by making some of the Set instead of List yesterday, but today after a Jenkins restart I cannot.
- environment:
pipeline 2.5, Jenkins 2.60.3
Contributor guide
Assessment
This issue has not been assessed yet.