Package jenkins.model
Class PeepholePermalink.RunListenerImpl
- All Implemented Interfaces:
ExtensionPoint
- Enclosing class:
- PeepholePermalink
-
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onCompleted
(Run<?, ?> run, TaskListener listener) See if the new build matches any of the peephole permalink.void
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, allowLoad, fireCompleted, fireDeleted, fireFinalized, fireInitialize, fireStarted, onFinalized, onInitialize, onStarted, register, setUpEnvironment, unregister
-
Constructor Details
-
RunListenerImpl
public RunListenerImpl()
-
-
Method Details
-
onDeleted
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
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.
-