com.atlassian.bamboo.plugins.rest.remote
Class BuildsService

java.lang.Object
  extended by com.atlassian.bamboo.plugins.rest.remote.BuildsService

@Singleton
public class BuildsService
extends java.lang.Object

Service used to retrieve build results


Constructor Summary
BuildsService(BambooBuildService bambooBuildService)
           
 
Method Summary
 RestBuild getBuild(java.lang.String projectKey, java.lang.String planKey, java.lang.String buildNumber, javax.ws.rs.core.UriInfo uriInfo, javax.servlet.http.HttpServletRequest servletRequest, com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
          Used to retrieve build result for specified build number (or latest build) Should be invoked as /rest/api/latest/build/PROJECTKEY-PLANKEY-BUILDNUMBER or /rest/api/latest/build/PROJECTKEY-PLANKEY/latest

Possible expand parameters: artifacts - list of url for artifacts produced by build (at least build log url)

 RestBuild getBuildAlias(java.lang.String projectKey, java.lang.String planKey, java.lang.String buildNumber, javax.ws.rs.core.UriInfo uriInfo, javax.servlet.http.HttpServletRequest servletRequest)
           
 RestBuild getBuildAlias2(java.lang.String projectKey, java.lang.String planKey, java.lang.String buildNumber, javax.ws.rs.core.UriInfo uriInfo, javax.servlet.http.HttpServletRequest servletRequest)
           
 RestBuilds getBuildList(java.lang.String projectKey, java.lang.String planKey, javax.ws.rs.core.UriInfo uriInfo, javax.servlet.http.HttpServletRequest servletRequest, com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
          Used to retrieve list of build results Should be invoked as /rest/api/latest/build/PROJECTKEY-PLANKEY

Possible expand parameters: plan - detailed plan information builds - list of build results builds.build - list of build result with build result details builds.build.atrifacts - list of build result with build result details and artifacts list for build result

 RestBuilds getBuildListAlias(java.lang.String projectKey, java.lang.String planKey, javax.ws.rs.core.UriInfo uriInfo, javax.servlet.http.HttpServletRequest servletRequest, com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildsService

public BuildsService(BambooBuildService bambooBuildService)
Method Detail

getBuildList

public RestBuilds getBuildList(java.lang.String projectKey,
                               java.lang.String planKey,
                               @Context
                               javax.ws.rs.core.UriInfo uriInfo,
                               @Context
                               javax.servlet.http.HttpServletRequest servletRequest,
                               @Context
                               com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
Used to retrieve list of build results Should be invoked as /rest/api/latest/build/PROJECTKEY-PLANKEY

Possible expand parameters: plan - detailed plan information builds - list of build results builds.build - list of build result with build result details builds.build.atrifacts - list of build result with build result details and artifacts list for build result

Parameters:
projectKey -
planKey -
Returns:

getBuildListAlias

public RestBuilds getBuildListAlias(java.lang.String projectKey,
                                    java.lang.String planKey,
                                    @Context
                                    javax.ws.rs.core.UriInfo uriInfo,
                                    @Context
                                    javax.servlet.http.HttpServletRequest servletRequest,
                                    @Context
                                    com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)

getBuild

public RestBuild getBuild(java.lang.String projectKey,
                          java.lang.String planKey,
                          java.lang.String buildNumber,
                          @Context
                          javax.ws.rs.core.UriInfo uriInfo,
                          @Context
                          javax.servlet.http.HttpServletRequest servletRequest,
                          @Context
                          com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
Used to retrieve build result for specified build number (or latest build) Should be invoked as /rest/api/latest/build/PROJECTKEY-PLANKEY-BUILDNUMBER or /rest/api/latest/build/PROJECTKEY-PLANKEY/latest

Possible expand parameters: artifacts - list of url for artifacts produced by build (at least build log url)

Parameters:
projectKey -
planKey -
buildNumber -
Returns:

getBuildAlias

public RestBuild getBuildAlias(java.lang.String projectKey,
                               java.lang.String planKey,
                               java.lang.String buildNumber,
                               @Context
                               javax.ws.rs.core.UriInfo uriInfo,
                               @Context
                               javax.servlet.http.HttpServletRequest servletRequest)

getBuildAlias2

public RestBuild getBuildAlias2(java.lang.String projectKey,
                                java.lang.String planKey,
                                java.lang.String buildNumber,
                                @Context
                                javax.ws.rs.core.UriInfo uriInfo,
                                @Context
                                javax.servlet.http.HttpServletRequest servletRequest)


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.