Package jenkins.model

Class PeepholePermalink.RunListenerImpl

java.lang.Object
hudson.model.listeners.RunListener<Run<?,?>>
jenkins.model.PeepholePermalink.RunListenerImpl
All Implemented Interfaces:
ExtensionPoint
Enclosing class:
PeepholePermalink

@Extension public static class PeepholePermalink.RunListenerImpl extends RunListener<Run<?,?>>
  • Constructor Details

    • RunListenerImpl

      public RunListenerImpl()
  • Method Details

    • onDeleted

      public void onDeleted(Run run)
      If any of the peephole permalink points to the build to be deleted, update it to point to the new location.
      Overrides:
      onDeleted in class RunListener<Run<?,?>>
      Parameters:
      run - The build.
    • onCompleted

      public void onCompleted(Run<?,?> run, @NonNull TaskListener listener)
      See if the new build matches any of the peephole permalink.
      Overrides:
      onCompleted in class RunListener<Run<?,?>>
      Parameters:
      run - The completed build.
      listener - The listener for this build. This can be used to produce log messages, for example, which becomes a part of the "console output" of this build. But when this method runs, the build is considered completed, so its status cannot be changed anymore.