java.lang.Object
hudson.model.AbstractDescribableImpl<T>
org.jenkinsci.plugins.pipeline.modeldefinition.withscript.WithScriptDescribable<A>
org.jenkinsci.plugins.pipeline.modeldefinition.agent.DeclarativeAgent<A>
org.jenkinsci.plugins.pipeline.modeldefinition.agent.RetryableDeclarativeAgent<Label>
org.jenkinsci.plugins.pipeline.modeldefinition.agent.impl.Label
All Implemented Interfaces:
ExtensionPoint, Describable<Label>, Serializable

public class Label extends org.jenkinsci.plugins.pipeline.modeldefinition.agent.RetryableDeclarativeAgent<Label>
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     

    Nested classes/interfaces inherited from class org.jenkinsci.plugins.pipeline.modeldefinition.agent.DeclarativeAgent

    org.jenkinsci.plugins.pipeline.modeldefinition.agent.DeclarativeAgent.CheckoutScriptAllowlist

    Nested classes/interfaces inherited from interface hudson.ExtensionPoint

    ExtensionPoint.LegacyInstancesAreScopedToHudson
  • Field Summary

    Fields inherited from class org.jenkinsci.plugins.pipeline.modeldefinition.agent.DeclarativeAgent

    doCheckout, inStage, subdirectory
  • Constructor Summary

    Constructors
    Constructor
    Description
    Label(String label)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    void
    setCustomWorkspace(String customWorkspace)
     

    Methods inherited from class org.jenkinsci.plugins.pipeline.modeldefinition.agent.RetryableDeclarativeAgent

    getRetries, setRetries

    Methods inherited from class org.jenkinsci.plugins.pipeline.modeldefinition.agent.DeclarativeAgent

    copyFlags, getDescriptor, getScript, getSubdirectory, hasScmContext, initialize, isDoCheckout, isInStage, reuseRootAgent, setDoCheckout, setInStage, setSubdirectory

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Label

      @DataBoundConstructor public Label(String label)
  • Method Details

    • getLabel

      @Nullable public String getLabel()
    • getCustomWorkspace

      @CheckForNull public String getCustomWorkspace()
    • setCustomWorkspace

      @DataBoundSetter public void setCustomWorkspace(String customWorkspace)