com.atlassian.bamboo.legacy
Class LegacyEmailErrorsAndFirstSuccessfulBuildStrategy
java.lang.Object
com.atlassian.bamboo.legacy.LegacyAbstractEmailStrategy
com.atlassian.bamboo.legacy.LegacyEmailErrorsAndFirstSuccessfulBuildStrategy
- All Implemented Interfaces:
- EmailStrategy
public class LegacyEmailErrorsAndFirstSuccessfulBuildStrategy
- extends LegacyAbstractEmailStrategy
LegacyEmailErrorsAndFirstSuccessfulBuildStrategy
public LegacyEmailErrorsAndFirstSuccessfulBuildStrategy()
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.