Class LabelAddedTrigger

  • All Implemented Interfaces:
    ExtensionPoint, Describable<Trigger<?>>

    public class LabelAddedTrigger
    extends Trigger<org.jenkinsci.plugins.workflow.job.WorkflowJob>
    An LabelAddedTrigger, to be used from pipeline scripts only. This trigger will not show up on a jobs configuration page.
    Author:
    Joaquín Fernández Campo
    See Also:
    PipelineTriggersJobProperty
    • Constructor Detail

      • LabelAddedTrigger

        @DataBoundConstructor
        public LabelAddedTrigger​(@Nonnull
                                 String labelTriggerPattern)
    • Method Detail

      • start

        public void start​(org.jenkinsci.plugins.workflow.job.WorkflowJob project,
                          boolean newInstance)
        Overrides:
        start in class Trigger<org.jenkinsci.plugins.workflow.job.WorkflowJob>
      • stop

        public void stop()
        Overrides:
        stop in class Trigger<org.jenkinsci.plugins.workflow.job.WorkflowJob>
      • getLabelTrigger

        public String getLabelTrigger()