Class GroovySourceFileAllowlist.DefaultAllowlist
java.lang.Object
org.jenkinsci.plugins.workflow.cps.GroovySourceFileAllowlist
org.jenkinsci.plugins.workflow.cps.GroovySourceFileAllowlist.DefaultAllowlist
- All Implemented Interfaces:
ExtensionPoint
- Enclosing class:
- GroovySourceFileAllowlist
@Extension
public static class GroovySourceFileAllowlist.DefaultAllowlist
extends GroovySourceFileAllowlist
Allows Groovy source files used to implement DSLs in plugins that were created before
GroovySourceFileAllowlist was introduced.-
Nested Class Summary
Nested classes/interfaces inherited from class org.jenkinsci.plugins.workflow.cps.GroovySourceFileAllowlist
GroovySourceFileAllowlist.DefaultAllowlistNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks whether a given Groovy source file is allowed to be loaded byCpsFlowExecution.getTrustedShell().Methods inherited from class org.jenkinsci.plugins.workflow.cps.GroovySourceFileAllowlist
all
-
Constructor Details
-
DefaultAllowlist
- Throws:
IOException
-
-
Method Details
-
isAllowed
Description copied from class:GroovySourceFileAllowlistChecks whether a given Groovy source file is allowed to be loaded byCpsFlowExecution.getTrustedShell().- Specified by:
isAllowedin classGroovySourceFileAllowlist- Parameters:
groovySourceFileUrl- the absolute URL to the Groovy source file as returned byClassLoader.getResource(java.lang.String)- Returns:
trueif the Groovy source file may be loaded,falseotherwise
-