org.jenkinsci.plugins.imagecomparison
Class ImageComparator

java.lang.Object
  extended by hudson.tasks.BuildStepCompatibilityLayer
      extended by hudson.tasks.Publisher
          extended by hudson.tasks.Recorder
              extended by 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 Class Summary
static class ImageComparator.DescriptorImpl
           
 
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
 
Field Summary
 
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
 
Constructor Summary
ImageComparator(String image1, String image2, float difThreshold)
           
 
Method Summary
static float compareImages(hudson.FilePath f1, hudson.FilePath f2)
           
 float getDifThreshold()
           
 String getImage1()
           
 String getImage2()
           
 hudson.tasks.BuildStepMonitor getRequiredMonitorService()
           
 boolean perform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener)
           
 void setDifThreshold(int difThreshold)
           
 void setImage1(String image1)
           
 void setImage2(String image2)
           
 
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
 

Constructor Detail

ImageComparator

@DataBoundConstructor
public ImageComparator(String image1,
                                            String image2,
                                            float difThreshold)
Method Detail

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.