-
Bug
-
Resolution: Duplicate
-
Minor
-
None
-
Jenkins LTS: ver. 2.32.1
Script Security Plugin: 1.25
Scripts not permitted to use staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods count java.lang.String java.lang.String
Similar to JENKINS-35199, I have no option to whitelist this method on the script approvals page.
- duplicates
-
JENKINS-34973 RejectedAccessException thrown but no pending script approval added
-
- Resolved
-
I've found out, sort of, why the method doesn't show on the scriptApproval page.
In my original job, the method call is nested deep within methods within a method adapted to a closure and ran from within parallel. I don't know exactly which part of that causes the problem, but, if I try the method from a vanilla pipeline job, I get a prompt on scriptApproval and the approval works everywhere.