com.atlassian.bamboo.emailer.strategy
Class EmailErrorsAndFirstSuccessfulBuildStrategy
java.lang.Object
com.atlassian.bamboo.emailer.strategy.AbstractEmailStrategy
com.atlassian.bamboo.emailer.strategy.EmailErrorsAndFirstSuccessfulBuildStrategy
- All Implemented Interfaces:
- EmailStrategy
public class EmailErrorsAndFirstSuccessfulBuildStrategy
- extends AbstractEmailStrategy
This class instructs Bamboo to always send an email for a failed build, and for the
first successful build after the failure. No email will not be sent for each additional
successfull build. Basically does not spam you for successful builds.
EmailErrorsAndFirstSuccessfulBuildStrategy
public EmailErrorsAndFirstSuccessfulBuildStrategy()
getLabel
public String getLabel()
- Obtain a description of the strategy for displaying in the GUI
- Returns:
- the descriptive label for the GUI
shouldEmailBuildResults
public boolean shouldEmailBuildResults(BuildResults buildResults,
BuildState previousBuildState)
- Returns an email if the build has failed, or its the first successful build after a failed
build.
- Parameters:
buildResults
- The current build resultspreviousBuildState
- The status of the previous build
- Returns:
- true if failed, or first successful build.
Copyright © 2006 Atlassian Software Systems. All Rights Reserved.