Class Upgrade
java.lang.Object
org.jenkinsci.plugins.workflow.cps.GroovyShellDecorator
org.jenkinsci.plugins.pipeline.modeldefinition.Upgrade
- All Implemented Interfaces:
ExtensionPoint
@Extension
public final class Upgrade
extends org.jenkinsci.plugins.workflow.cps.GroovyShellDecorator
Detects old builds (predating for example
DeclarativeAgentScript2
) and loads old Groovy resources to match.-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class org.jenkinsci.plugins.workflow.cps.GroovyShellDecorator
NULL
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
configureShell
(org.jenkinsci.plugins.workflow.cps.CpsFlowExecution context, groovy.lang.GroovyShell shell) org.jenkinsci.plugins.workflow.cps.GroovyShellDecorator
Methods inherited from class org.jenkinsci.plugins.workflow.cps.GroovyShellDecorator
all, configureCompiler, customizeImports
-
Constructor Details
-
Upgrade
public Upgrade()
-
-
Method Details
-
configureShell
public void configureShell(org.jenkinsci.plugins.workflow.cps.CpsFlowExecution context, groovy.lang.GroovyShell shell) - Overrides:
configureShell
in classorg.jenkinsci.plugins.workflow.cps.GroovyShellDecorator
-
forTrusted
public org.jenkinsci.plugins.workflow.cps.GroovyShellDecorator forTrusted()- Overrides:
forTrusted
in classorg.jenkinsci.plugins.workflow.cps.GroovyShellDecorator
-