Class SCMTrigger.SCMTriggerCause

  • Enclosing class:
    SCMTrigger

    public static class SCMTrigger.SCMTriggerCause
    extends Cause
    • Method Detail

      • onLoad

        public void onLoad​(Run run)
        Description copied from class: Cause
        Called when a build is loaded from disk. Useful in case the cause needs to keep a build reference; this ought to be transient.
        Overrides:
        onLoad in class Cause
      • onAddedTo

        public void onAddedTo​(Run build)
        Description copied from class: Cause
        Called when the cause is registered.
        Overrides:
        onAddedTo in class Cause
      • getShortDescription

        public String getShortDescription()
        Description copied from class: Cause
        One-line human-readable text of the cause. Historically, this method's return value was used to render HTML on the UI as well. Since Jenkins 2.315 and 2.303.2, the return value is interpreted as text. To have rich HTML output on the UI, provide a custom description.jelly view for your subclass. See the documentation.
        Specified by:
        getShortDescription in class Cause
      • getRun

        @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class)
        public Run getRun()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object