Class BranchEventCause

java.lang.Object
hudson.model.Cause
jenkins.branch.BranchEventCause

public final class BranchEventCause extends Cause
Declares that a build was due to a branch event.
  • Method Details

    • onAddedTo

      public void onAddedTo(Run build)
      Overrides:
      onAddedTo in class Cause
    • getTimestamp

      public Date getTimestamp()
    • getOrigin

      @NonNull public String getOrigin()
    • onLoad

      public void onLoad(@NonNull Run<?,?> build)
      Overrides:
      onLoad in class Cause
    • getMultiBranchProject

      @CheckForNull public MultiBranchProject<?,?> getMultiBranchProject()
      Gets the associated multibranch project.
      Returns:
      the multibranch project (nonnull unless deleted before restart)
    • getIndexingUrl

      @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) @CheckForNull public String getIndexingUrl()
    • getShortDescription

      public String getShortDescription()
      Specified by:
      getShortDescription in class Cause