Package io.jenkins.blueocean.listeners
Class DownstreamJobListener
- java.lang.Object
-
- hudson.model.listeners.RunListener<Run<?,?>>
-
- io.jenkins.blueocean.listeners.DownstreamJobListener
-
- All Implemented Interfaces:
ExtensionPoint
@Extension public class DownstreamJobListener extends RunListener<Run<?,?>>
Listens to creation of jobs that are triggered by an upstream job, much like BuildTriggerListener from pipeline-build-step. Unlike BuildTriggerListener, here we just add an action to the upstream job for later retrieval rather than injecting information into its build log, in order to be a little more flexible at the cost of a bit more work later to retrieve the details.
-
-
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 DownstreamJobListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onStarted(Run<?,?> run, TaskListener listener)
-
Methods inherited from class hudson.model.listeners.RunListener
all, fireCompleted, fireDeleted, fireFinalized, fireInitialize, fireStarted, onCompleted, onDeleted, onFinalized, onInitialize, register, setUpEnvironment, unregister
-
-
-
-
Method Detail
-
onStarted
public void onStarted(Run<?,?> run, TaskListener listener)
- Overrides:
onStarted
in classRunListener<Run<?,?>>
-
-