hudson.plugins.jabber.tools
Class BuildHelper

java.lang.Object
  extended by hudson.plugins.jabber.tools.BuildHelper

public class BuildHelper
extends java.lang.Object

Helper class to work with Hudson builds.

Author:
kutzi

Method Summary
static hudson.model.AbstractBuild<?,?> getPreviousCompletedBuild(hudson.model.AbstractBuild<?,?> build)
          Returns the previous 'completed' (i.e.
static java.lang.String getResultDescription(hudson.model.AbstractBuild<?,?> build)
          Returns a textual description of the result taking the previous build into account.
static boolean isFix(hudson.model.AbstractBuild<?,?> build)
          Returns true if this build represents a 'fix'.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isFix

public static boolean isFix(hudson.model.AbstractBuild<?,?> build)
Returns true if this build represents a 'fix'. I.e. it is the first successful build after previous 'failed' and/or 'unstable' builds. Ignores 'aborted' and 'not built' builds.


getPreviousCompletedBuild

public static hudson.model.AbstractBuild<?,?> getPreviousCompletedBuild(hudson.model.AbstractBuild<?,?> build)
Returns the previous 'completed' (i.e. ignores ABORTED and NOT_BUILT builds) or null.


getResultDescription

public static java.lang.String getResultDescription(hudson.model.AbstractBuild<?,?> build)
Returns a textual description of the result taking the previous build into account. E.g. reports 'fixes' and 'still failing/unstable' builds.



Copyright © 2009. All Rights Reserved.