Class ResultResource

java.lang.Object
com.atlassian.bamboo.plugins.rest.resource.ResultResource

@Path("result") @Consumes({"application/xml","application/json"}) @Produces({"application/xml","application/json"}) @Singleton public class ResultResource extends Object
Provide build results information. Available for anonymous and authenticated users, however proper permissions are enforced
  • Constructor Details

  • Method Details

    • getLatestBuildResults

      @GET public RestResults getLatestBuildResults(@QueryParam("expand") String expandParam, @QueryParam("favourite") boolean favouriteParam, @QueryParam("label") String labelParam, @QueryParam("issueKey") String issueKeyParam, @QueryParam("includeAllStates") boolean allStatesParam, @QueryParam("lifeCycleState") String lifecycleStateParam, @QueryParam("continuable") boolean continuableParam, @QueryParam("buildstate") String buildStateParam, @QueryParam("start-index") int startIndexParam, @QueryParam("max-results") int maxResultsParam, @Context javax.ws.rs.core.UriInfo uriInfo)
    • getLatestBuildResultsForProject

      @GET @Path("{projectKey : ([^-/]+)}") public RestResults getLatestBuildResultsForProject(@PathParam("projectKey") String projectKey, @QueryParam("expand") String expandParam, @QueryParam("favourite") boolean favouriteParam, @QueryParam("label") String labelParam, @QueryParam("issueKey") String issueKeyParam, @QueryParam("includeAllStates") boolean allStatesParam, @QueryParam("lifeCycleState") String lifecycleStateParam, @QueryParam("continuable") boolean continuableParam, @QueryParam("buildstate") String buildStateParam, @QueryParam("start-index") int startIndexParam, @QueryParam("max-results") int maxResultsParam, @Context javax.ws.rs.core.UriInfo uriInfo)
    • getBuildResultsForChangeset

      @GET @Path("byChangeset/{csid}") public RestResults getBuildResultsForChangeset(@PathParam("csid") String changesetId, @Context javax.ws.rs.core.UriInfo uriInfo)
    • getBuildResultsForCheckoutChangeset

      @GET @Path("byCheckoutChangeset/{csid}") public RestResults getBuildResultsForCheckoutChangeset(@PathParam("csid") String changesetId, @Context javax.ws.rs.core.UriInfo uriInfo)
    • getBuildHistory

      @GET @Path("{projectKey : ([^-]+)}-{buildKey}") public RestResults getBuildHistory(@PathParam("projectKey") String projectKey, @PathParam("buildKey") String buildKey, @QueryParam("expand") String expandParam, @QueryParam("favourite") boolean favouriteParam, @QueryParam("label") String labelParam, @QueryParam("issueKey") String issueKeyParam, @QueryParam("includeAllStates") boolean allStatesParam, @QueryParam("lifeCycleState") String lifecycleStateParam, @QueryParam("continuable") boolean continuableParam, @QueryParam("buildstate") boolean buildStateParam, @QueryParam("start-index") int startIndexParam, @QueryParam("max-results") int maxResultsParam, @Context javax.ws.rs.core.UriInfo uriInfo)
    • getBranchHistory

      @GET @Path("{projectKey : ([^-/]+)}-{buildKey}/branch/{branchName}") public RestResults getBranchHistory(@PathParam("projectKey") String projectKey, @PathParam("buildKey") String buildKey, @PathParam("branchName") String branchName, @QueryParam("expand") String expandParam, @QueryParam("favourite") boolean favouriteParam, @QueryParam("label") String labelParam, @QueryParam("issueKey") String issueKeyParam, @QueryParam("includeAllStates") boolean allStatesParam, @QueryParam("lifeCycleState") String lifecycleStateParam, @QueryParam("continuable") boolean continuableParam, @QueryParam("buildstate") boolean buildStateParam, @QueryParam("start-index") int startIndexParam, @QueryParam("max-results") int maxResultsParam, @Context javax.ws.rs.core.UriInfo uriInfo)
    • getBuild

      @GET @Path("{projectKey : ([^-/]+)}-{buildKey}-{buildNumber : ([0-9]+)|(latest)}") public Result getBuild(@PathParam("projectKey") String projectKey, @PathParam("buildKey") String buildKey, @PathParam("buildNumber") String buildNumber, @QueryParam("expand") String expandParam, @QueryParam("buildPositions") boolean showBuildPositions, @Context javax.ws.rs.core.UriInfo uriInfo)
    • getBuildAlias

      @GET @Path("{projectKey : ([^-/]+)}-{buildKey}/{buildNumber : ([0-9]+)|(latest)}") public Result getBuildAlias(@PathParam("projectKey") String projectKey, @PathParam("buildKey") String buildKey, @PathParam("buildNumber") String buildNumber, @QueryParam("expand") String expandParam, @Context javax.ws.rs.core.UriInfo uriInfo)
    • getBuildComments

      @GET @Path("{projectKey : ([^-/]+)}-{buildKey}-{buildNumber}/comment") public RestComments getBuildComments(@PathParam("projectKey") String projectKey, @PathParam("buildKey") String buildKey, @PathParam("buildNumber") String buildNumber, @Context javax.ws.rs.core.UriInfo uriInfo)
    • addBuildComment

      @POST @Path("{projectKey : ([^-/]+)}-{buildKey}-{buildNumber}/comment") public void addBuildComment(@PathParam("projectKey") String projectKey, @PathParam("buildKey") String buildKey, @PathParam("buildNumber") String buildNumber, CreateCommentRequest comment, @Context javax.ws.rs.core.UriInfo uriInfo)
    • removeBuildComment

      @DELETE @Path("{projectKey : ([^-/]+)}-{buildKey}-{buildNumber}/comment/{commentId}") public javax.ws.rs.core.Response removeBuildComment(@PathParam("projectKey") String projectKey, @PathParam("buildKey") String buildKey, @PathParam("buildNumber") String buildNumber, @PathParam("commentId") long commentId, @Context javax.ws.rs.core.UriInfo uriInfo)
    • getBuildLabels

      @GET @Path("{projectKey : ([^-/]+)}-{buildKey}-{buildNumber}/label") public RestBuildLabels getBuildLabels(@PathParam("projectKey") String projectKey, @PathParam("buildKey") String buildKey, @PathParam("buildNumber") String buildNumber, @Context javax.ws.rs.core.UriInfo uriInfo)
    • addBuildLabel

      @POST @Path("{projectKey : ([^-/]+)}-{buildKey}-{buildNumber}/label") public javax.ws.rs.core.Response addBuildLabel(@PathParam("projectKey") String projectKey, @PathParam("buildKey") String buildKey, @PathParam("buildNumber") String buildNumber, RestBuildLabel label, @Context javax.ws.rs.core.UriInfo uriInfo)
    • removeBuildLabel

      @DELETE @Path("{projectKey : ([^-/]+)}-{buildKey}-{buildNumber}/label/{labelName}") public javax.ws.rs.core.Response removeBuildLabel(@PathParam("projectKey") String projectKey, @PathParam("buildKey") String buildKey, @PathParam("buildNumber") String buildNumber, @PathParam("labelName") String labelName, @Context javax.ws.rs.core.UriInfo uriInfo) throws Exception
      Throws:
      Exception
    • getResultStatus

      @GET @Path("/status/{projectKey : ([^-/]+)}-{buildKey}-{buildNumber : ([0-9]+)}") public RestResultStatus getResultStatus(@PathParam("projectKey") String projectKey, @PathParam("buildKey") String buildKey, @PathParam("buildNumber") String buildNumber, @Context javax.ws.rs.core.UriInfo uriInfo)