Class CheckRunCacheInvalidator
java.lang.Object
hudson.model.listeners.RunListener<Run<?,?>>
io.jenkins.plugins.gerritchecksapi.CheckRunCacheInvalidator
- All Implemented Interfaces:
ExtensionPoint
Drops what was collected for the patchset of a build when the build starts and when it finishes.
A rerun is triggered at Jenkins and not through this plugin, so nothing else tells the plugin that the runs of a patchset have changed: what was collected before it would be reported until it expires, without the build that was just triggered and, the stages being reported as results of their build, without its stages. The build that finished changed the stages it reports as well.
Which patchset a build reports for is what gerrit-trigger passes to the builds it triggers, the change and the patchset number. A build that has none of them is reported as a downstream build of one that has, so the build that triggered it is asked; a build that is not from Gerrit at all changes nothing.
-
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidonCompleted(Run<?, ?> run, TaskListener listener) voidonStarted(Run<?, ?> run, TaskListener listener) Methods inherited from class hudson.model.listeners.RunListener
all, allowLoad, createLoadAllower, fireCompleted, fireDeleted, fireFinalized, fireInitialize, fireStarted, onDeleted, onFinalized, onInitialize, register, setUpEnvironment, unregister
-
Constructor Details
-
CheckRunCacheInvalidator
public CheckRunCacheInvalidator()
-
-
Method Details
-
onStarted
- Overrides:
onStartedin classRunListener<Run<?,?>>
-
onCompleted
- Overrides:
onCompletedin classRunListener<Run<?,?>>
-