Class RunWrapperBinder

java.lang.Object
org.jenkinsci.plugins.workflow.cps.GlobalVariable
org.jenkinsci.plugins.workflow.cps.RunWrapperBinder
All Implemented Interfaces:
ExtensionPoint

@Extension public class RunWrapperBinder extends GlobalVariable
  • Constructor Details

    • RunWrapperBinder

      public RunWrapperBinder()
  • Method Details

    • getName

      public String getName()
      Description copied from class: GlobalVariable
      Defines the name of the variable.
      Specified by:
      getName in class GlobalVariable
      Returns:
      a Java identifier
    • getValue

      public Object getValue(CpsScript script) throws Exception
      Description copied from class: GlobalVariable
      Gets or creates the singleton value of the variable. If the object is stateful, and the state should not be managed externally (such as with a RunAction2), then the implementation is responsible for saving it in the Script.getBinding().
      Specified by:
      getValue in class GlobalVariable
      Parameters:
      script - the script we are running
      Returns:
      a POJO or GroovyObject
      Throws:
      Exception - if there was any problem creating it (will be thrown up to the script)
      See Also: