Class ResultResource


  • @Singleton
    public class ResultResource
    extends Object
    Provide build results information. Available for anonymous and authenticated users, however proper permissions are enforced
    • Method Detail

      • getLatestBuildResults

        public RestResults getLatestBuildResults​(String expandParam,
                                                 boolean favouriteParam,
                                                 String labelParam,
                                                 String issueKeyParam,
                                                 boolean allStatesParam,
                                                 String lifecycleStateParam,
                                                 boolean continuableParam,
                                                 String buildStateParam,
                                                 int startIndexParam,
                                                 int maxResultsParam,
                                                 @Context
                                                 javax.ws.rs.core.UriInfo uriInfo,
                                                 @Context
                                                 com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
      • getLatestBuildResultsForProject

        public RestResults getLatestBuildResultsForProject​(String projectKey,
                                                           String expandParam,
                                                           boolean favouriteParam,
                                                           String labelParam,
                                                           String issueKeyParam,
                                                           boolean allStatesParam,
                                                           String lifecycleStateParam,
                                                           boolean continuableParam,
                                                           String buildStateParam,
                                                           int startIndexParam,
                                                           int maxResultsParam,
                                                           @Context
                                                           javax.ws.rs.core.UriInfo uriInfo,
                                                           @Context
                                                           com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
      • getBuildResultsForChangeset

        public RestResults getBuildResultsForChangeset​(String changesetId,
                                                       @Context
                                                       javax.ws.rs.core.UriInfo uriInfo,
                                                       @Context
                                                       com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
      • getBuildResultsForCheckoutChangeset

        public RestResults getBuildResultsForCheckoutChangeset​(String changesetId,
                                                               @Context
                                                               javax.ws.rs.core.UriInfo uriInfo,
                                                               @Context
                                                               com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
      • getBuildHistory

        public RestResults getBuildHistory​(String projectKey,
                                           String buildKey,
                                           String expandParam,
                                           boolean favouriteParam,
                                           String labelParam,
                                           String issueKeyParam,
                                           boolean allStatesParam,
                                           String lifecycleStateParam,
                                           boolean continuableParam,
                                           boolean buildStateParam,
                                           int startIndexParam,
                                           int maxResultsParam,
                                           @Context
                                           javax.ws.rs.core.UriInfo uriInfo,
                                           @Context
                                           com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
      • getBranchHistory

        public RestResults getBranchHistory​(String projectKey,
                                            String buildKey,
                                            String branchName,
                                            String expandParam,
                                            boolean favouriteParam,
                                            String labelParam,
                                            String issueKeyParam,
                                            boolean allStatesParam,
                                            String lifecycleStateParam,
                                            boolean continuableParam,
                                            boolean buildStateParam,
                                            int startIndexParam,
                                            int maxResultsParam,
                                            @Context
                                            javax.ws.rs.core.UriInfo uriInfo,
                                            @Context
                                            com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
      • getBuild

        public Result getBuild​(String projectKey,
                               String buildKey,
                               String buildNumber,
                               String expandParam,
                               boolean showBuildPositions,
                               @Context
                               javax.ws.rs.core.UriInfo uriInfo,
                               @Context
                               com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
      • getBuildAlias

        public Result getBuildAlias​(String projectKey,
                                    String buildKey,
                                    String buildNumber,
                                    String expandParam,
                                    @Context
                                    javax.ws.rs.core.UriInfo uriInfo,
                                    @Context
                                    com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
      • getBuildComments

        public RestComments getBuildComments​(String projectKey,
                                             String buildKey,
                                             String buildNumber,
                                             @Context
                                             javax.ws.rs.core.UriInfo uriInfo)
      • addBuildComment

        public void addBuildComment​(String projectKey,
                                    String buildKey,
                                    String buildNumber,
                                    CreateCommentRequest comment,
                                    @Context
                                    com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext,
                                    @Context
                                    javax.ws.rs.core.UriInfo uriInfo)
      • removeBuildComment

        public javax.ws.rs.core.Response removeBuildComment​(String projectKey,
                                                            String buildKey,
                                                            String buildNumber,
                                                            long commentId,
                                                            @Context
                                                            com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext,
                                                            @Context
                                                            javax.ws.rs.core.UriInfo uriInfo)
      • addBuildLabel

        public javax.ws.rs.core.Response addBuildLabel​(String projectKey,
                                                       String buildKey,
                                                       String buildNumber,
                                                       RestBuildLabel label,
                                                       @Context
                                                       com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext,
                                                       @Context
                                                       javax.ws.rs.core.UriInfo uriInfo)
      • removeBuildLabel

        public javax.ws.rs.core.Response removeBuildLabel​(String projectKey,
                                                          String buildKey,
                                                          String buildNumber,
                                                          String labelName,
                                                          @Context
                                                          com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext,
                                                          @Context
                                                          javax.ws.rs.core.UriInfo uriInfo)
                                                   throws Exception
        Throws:
        Exception
      • getResultStatus

        public RestResultStatus getResultStatus​(String projectKey,
                                                String buildKey,
                                                String buildNumber,
                                                @Context
                                                javax.ws.rs.core.UriInfo uriInfo,
                                                @Context
                                                com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)