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<?,?>>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from class hudson.model.listeners.RunListener
LISTENERS, targetType
-
-
Constructor Summary
Constructors Constructor Description RunListenerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onCompleted(Run<?,?> run, TaskListener listener)
See if the new build matches any of the peephole permalink.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.-
Methods inherited from class hudson.model.listeners.RunListener
all, fireCompleted, fireDeleted, fireFinalized, fireInitialize, fireStarted, onFinalized, onInitialize, onStarted, register, setUpEnvironment, unregister
-
-
-
-
Method Detail
-
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 classRunListener<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 classRunListener<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.
-
-