Class LibraryDecorator
java.lang.Object
org.jenkinsci.plugins.workflow.cps.GroovyShellDecorator
org.jenkinsci.plugins.workflow.libs.LibraryDecorator
- All Implemented Interfaces:
ExtensionPoint
@Extension
public class LibraryDecorator
extends org.jenkinsci.plugins.workflow.cps.GroovyShellDecorator
Adds an import for
Library
, checks for it being used, and actually loads the library.-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class org.jenkinsci.plugins.workflow.cps.GroovyShellDecorator
NULL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configureCompiler
(org.jenkinsci.plugins.workflow.cps.CpsFlowExecution execution, org.codehaus.groovy.control.CompilerConfiguration cc) void
customizeImports
(org.jenkinsci.plugins.workflow.cps.CpsFlowExecution execution, org.codehaus.groovy.control.customizers.ImportCustomizer ic) Methods inherited from class org.jenkinsci.plugins.workflow.cps.GroovyShellDecorator
all, configureShell, forTrusted
-
Constructor Details
-
LibraryDecorator
public LibraryDecorator()
-
-
Method Details
-
customizeImports
public void customizeImports(org.jenkinsci.plugins.workflow.cps.CpsFlowExecution execution, org.codehaus.groovy.control.customizers.ImportCustomizer ic) - Overrides:
customizeImports
in classorg.jenkinsci.plugins.workflow.cps.GroovyShellDecorator
-
configureCompiler
public void configureCompiler(org.jenkinsci.plugins.workflow.cps.CpsFlowExecution execution, org.codehaus.groovy.control.CompilerConfiguration cc) - Overrides:
configureCompiler
in classorg.jenkinsci.plugins.workflow.cps.GroovyShellDecorator
-