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 Classes
    Modifier and Type
    Class
    Description
    static final class 
     

    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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 class org.jenkinsci.plugins.workflow.cps.GroovyShellDecorator
    • forTrusted

      public org.jenkinsci.plugins.workflow.cps.GroovyShellDecorator forTrusted()
      Overrides:
      forTrusted in class org.jenkinsci.plugins.workflow.cps.GroovyShellDecorator