hudson.plugins.cigame.util
Class ResultSequenceValidator

java.lang.Object
  extended by hudson.plugins.cigame.util.ResultSequenceValidator

public class ResultSequenceValidator
extends java.lang.Object

Class that simplifies checking if a build sequence is above a certain result threshold. Use the class to check for example if there has been five builds in a row that is Unstable or better.


Constructor Summary
ResultSequenceValidator(hudson.model.Result resultThreshold, int sequenceLength)
           
 
Method Summary
 boolean isValid(hudson.model.AbstractBuild<?,?> build)
          Returns true if the build sequence meets the requirements
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultSequenceValidator

public ResultSequenceValidator(hudson.model.Result resultThreshold,
                               int sequenceLength)
Method Detail

isValid

public boolean isValid(hudson.model.AbstractBuild<?,?> build)
Returns true if the build sequence meets the requirements

Parameters:
build - latest build in sequence
Returns:
true, if the build sequence conforms to the requirements set in constructor; false, otherwise.


Copyright © 2009. All Rights Reserved.