Class DatadogSCMListener
- java.lang.Object
-
- hudson.model.listeners.SCMListener
-
- org.datadog.jenkins.plugins.datadog.listeners.DatadogSCMListener
-
- All Implemented Interfaces:
ExtensionPoint
@Extension public class DatadogSCMListener extends SCMListener
This class registers anSCMListener
with Jenkins which allows us to create the "Checkout successful" event.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description DatadogSCMListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onCheckout(Run<?,?> build, SCM scm, FilePath workspace, TaskListener listener, File changelogFile, SCMRevisionState pollingBaseline)
Invoked right after the source code for the build has been checked out.-
Methods inherited from class hudson.model.listeners.SCMListener
all, onChangeLogParsed, onChangeLogParsed, register, unregister
-
-
-
-
Method Detail
-
onCheckout
public void onCheckout(Run<?,?> build, SCM scm, FilePath workspace, TaskListener listener, File changelogFile, SCMRevisionState pollingBaseline) throws Exception
Invoked right after the source code for the build has been checked out. It will NOT be called if a checkout fails.- Overrides:
onCheckout
in classSCMListener
- Parameters:
build
- - Current buildscm
- - Configured SCMworkspace
- - Current workspacelistener
- - Current build listenerchangelogFile
- - ChangelogpollingBaseline
- - Polling- Throws:
Exception
- if an error is encountered
-
-