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

    Constructors
    Constructor
    Description
     
  • Method Summary

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

    Methods inherited from class java.lang.Object

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