org.jenkinsci.plugins.imagecomparison
Class ImageComparator
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Recorder
org.jenkinsci.plugins.imagecomparison.ImageComparator
- All Implemented Interfaces:
- hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.Publisher>, hudson.tasks.BuildStep, Serializable
public class ImageComparator
- extends hudson.tasks.Recorder
- implements Serializable
- See Also:
- Serialized Form
| Nested classes/interfaces inherited from class hudson.tasks.Publisher |
hudson.tasks.Publisher.DescriptorExtensionListImpl |
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Nested classes/interfaces inherited from interface hudson.tasks.BuildStep |
hudson.tasks.BuildStep.PublisherList |
| Fields inherited from interface hudson.tasks.BuildStep |
BUILDERS, PUBLISHERS |
| Methods inherited from class hudson.tasks.Recorder |
getDescriptor |
| Methods inherited from class hudson.tasks.Publisher |
all, getProjectAction, needsToRunAfterFinalized, prebuild |
| Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer |
getProjectAction, getProjectActions, perform, prebuild |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageComparator
@DataBoundConstructor
public ImageComparator(String image1,
String image2,
float difThreshold)
getImage1
public String getImage1()
setImage1
public void setImage1(String image1)
getImage2
public String getImage2()
setImage2
public void setImage2(String image2)
getDifThreshold
public float getDifThreshold()
setDifThreshold
public void setDifThreshold(int difThreshold)
getRequiredMonitorService
public hudson.tasks.BuildStepMonitor getRequiredMonitorService()
- Specified by:
getRequiredMonitorService in interface hudson.tasks.BuildStep
perform
public boolean perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
throws InterruptedException,
IOException
- Specified by:
perform in interface hudson.tasks.BuildStep- Overrides:
perform in class hudson.tasks.BuildStepCompatibilityLayer
- Throws:
InterruptedException
IOException
compareImages
public static float compareImages(hudson.FilePath f1,
hudson.FilePath f2)
throws IOException,
InterruptedException
- Throws:
IOException
InterruptedException
Copyright © 2004-2015. All Rights Reserved.