Package hudson.plugins.mercurial
Class ChangeComparator
java.lang.Object
hudson.plugins.mercurial.ChangeComparator
- All Implemented Interfaces:
ExtensionPoint
An extension point that allows plugins to override the built in compare
functionality when deciding whether to trigger a build or not.
- Since:
- 1.50
- Author:
- Ronni Elken Lindsgaard
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ExtensionList<ChangeComparator>
all()
compare
(MercurialSCM scm, Launcher launcher, TaskListener listener, MercurialTagAction baseline, PrintStream output, Node node, FilePath repository, AbstractProject<?, ?> project) Deprecated.compare
(MercurialSCM scm, Launcher launcher, TaskListener listener, MercurialTagAction baseline, PrintStream output, Node node, FilePath repository, Job<?, ?> project) Override to customize the compare functionality.
-
Constructor Details
-
ChangeComparator
public ChangeComparator()
-
-
Method Details
-
all
-
compare
public PollingResult.Change compare(MercurialSCM scm, Launcher launcher, TaskListener listener, MercurialTagAction baseline, PrintStream output, Node node, FilePath repository, Job<?, ?> project) throws IOException, InterruptedExceptionOverride to customize the compare functionality.- Returns:
- either a class of change, or null if the standard comparison is wanted
- Throws:
IOException
InterruptedException
-
compare
@Deprecated public PollingResult.Change compare(MercurialSCM scm, Launcher launcher, TaskListener listener, MercurialTagAction baseline, PrintStream output, Node node, FilePath repository, AbstractProject<?, ?> project) throws IOException, InterruptedExceptionDeprecated.- Throws:
IOException
InterruptedException
-