Skip to content

Missing whitelist for replaceFirst on DefaultGroovyMethods #906

@ugrave

Description

@ugrave

What feature do you want to see added?

In my pipeline i want to use the replaceFirst method but Jenkins requires a script approval for
staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods replaceFirst java.lang.String java.util.regex.Pattern java.lang.String

I had a look into the script whitelist file and found some entries for StringGroovyMethods but also for this signature no entry exist. Only for the closure versions.

Upstream changes

No response

Are you interested in contributing this feature?

yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions