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

Open
#781 0 comments 0 reactions 0 assignees View on GitHub
component:script-security-plugin imported-jira-issue priority:minor resolution:unresolved
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


  • status: Open
  • priority: Minor
  • component(s): script-security-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 2
  • imported: 2025-12-09

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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.