com.atlassian.bamboo.rest
Class GetLatestBuildResults
java.lang.Object
ActionSupport
com.atlassian.bamboo.ww2.BambooActionSupport
com.atlassian.bamboo.webwork.AbstractAction
com.atlassian.bamboo.build.AbstractBuildAction
com.atlassian.bamboo.rest.AbstractRestAction
com.atlassian.bamboo.rest.GetLatestBuildResults
- All Implemented Interfaces:
- ErrorCollection, BambooSessionAware, BuildAware, ReturnUrlAware
public class GetLatestBuildResults
- extends AbstractRestAction
This class provides the latest build to callers of the rest api
Methods inherited from class com.atlassian.bamboo.ww2.BambooActionSupport |
addError, addError, addErrorCollection, addErrorMessage, addErrorMessages, addErrors, addIllegalArgumentException, doesLabelKeyHaveMatchingDescription, getAsPreformattedText, getBambooSession, getBreadCrumbs, getBuildManager, getConglomerateCookieValue, getCookieCutter, getCookieValue, getCurrentUrl, getDescriptionFromLabelKey, getFlushedErrorMessages, getReturnUrl, getUser, getWebItemsForSection, getWebResourceManager, getWebSectionsForLocation, hasAnyErrors, hasBuilds, hasPerm, isEnableSignup, isSelectFieldAndNull, setAuthenticationContext, setBambooPermissionManager, setBuildManager, setCookieCutter, setErrorMessages, setHtmlUtils, setReturnUrl, setWebInterfaceManager, setWebResourceManager |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GetLatestBuildResults
public GetLatestBuildResults()
doExecute
public String doExecute()
throws Exception
- Execute the rest api call
- Overrides:
doExecute
in class AbstractRestAction
- Returns:
- The webwork status code
- Throws:
Exception
- A generic failure
getLatestBuildSummary
public BuildResultsSummary getLatestBuildSummary()
- Place the latest build results summary in the rest results context (uses velocity to format the output)
- Returns:
- The latest
BuildResultsSummary
, null if the build does not have any build results
Copyright © 2006 Atlassian Software Systems. All Rights Reserved.