|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.plugins.rest.resource.ResultResource
@Singleton public class ResultResource
Provide build results information. Available for anonymous and authenticated users, however proper permissions are enforced
Constructor Summary | |
---|---|
ResultResource(ResultService resultService)
|
Method Summary | |
---|---|
void |
addBuildComment(java.lang.String projectKey,
java.lang.String buildKey,
java.lang.String buildNumber,
RestComment comment,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext,
javax.ws.rs.core.UriInfo uriInfo)
Adds new comment to build result specified by projectKey-buildKey-buildNumber. |
void |
addBuildLabel(java.lang.String projectKey,
java.lang.String buildKey,
java.lang.String buildNumber,
RestBuildLabel label,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext,
javax.ws.rs.core.UriInfo uriInfo)
Adds new label to build result specified by projectKey-buildKey-buildNumber. |
RestResults |
getBranchHistory(java.lang.String projectKey,
java.lang.String buildKey,
java.lang.String branchName,
java.lang.String expandParam,
boolean favouriteParam,
java.lang.String labelParam,
java.lang.String issueKeyParam,
boolean allStatesParam,
boolean continuableParam,
boolean buildStateParam,
int startIndexParam,
int maxResultsParam,
javax.ws.rs.core.UriInfo uriInfo,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
Provide list of build results for specified plan. |
Result |
getBuild(java.lang.String projectKey,
java.lang.String buildKey,
java.lang.String buildNumber,
java.lang.String expandParam,
boolean favouriteParam,
int startIndexParam,
int maxResultsParam,
javax.ws.rs.core.UriInfo uriInfo,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
Provide build result specified by projectKey-buildKey-buildNumber. |
Result |
getBuildAlias(java.lang.String projectKey,
java.lang.String buildKey,
java.lang.String buildNumber,
java.lang.String expandParam,
boolean favouriteParam,
int startIndexParam,
int maxResultsParam,
javax.ws.rs.core.UriInfo uriInfo,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
Provide build result specified by projectKey-buildKey-buildNumber. |
RestComments |
getBuildComments(java.lang.String projectKey,
java.lang.String buildKey,
java.lang.String buildNumber,
javax.ws.rs.core.UriInfo uriInfo)
Provide list of comments for build result specified by projectKey-buildKey-buildNumber. |
RestResults |
getBuildHistory(java.lang.String projectKey,
java.lang.String buildKey,
java.lang.String expandParam,
boolean favouriteParam,
java.lang.String labelParam,
java.lang.String issueKeyParam,
boolean allStatesParam,
boolean continuableParam,
boolean buildStateParam,
int startIndexParam,
int maxResultsParam,
javax.ws.rs.core.UriInfo uriInfo,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
Provide list of build results for specified plan. |
RestBuildLabels |
getBuildLabels(java.lang.String projectKey,
java.lang.String buildKey,
java.lang.String buildNumber,
javax.ws.rs.core.UriInfo uriInfo)
Provide list of labels for build result specified by projectKey-buildKey-buildNumber. |
RestResults |
getBuildResultsForChangeset(java.lang.String changesetId,
javax.ws.rs.core.UriInfo uriInfo,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
Provide list of build results related to changeset id passed as parameter. |
RestResults |
getLatestBuildResults(java.lang.String expandParam,
boolean favouriteParam,
java.lang.String labelParam,
java.lang.String issueKeyParam,
boolean allStatesParam,
boolean continuableParam,
boolean buildStateParam,
int startIndexParam,
int maxResultsParam,
javax.ws.rs.core.UriInfo uriInfo,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
Provide list of latest build results for top level plans visible for users. |
RestResults |
getLatestBuildResultsForProject(java.lang.String projectKey,
java.lang.String expandParam,
boolean favouriteParam,
java.lang.String labelParam,
java.lang.String issueKeyParam,
boolean allStatesParam,
boolean continuableParam,
boolean buildStateParam,
int startIndexParam,
int maxResultsParam,
javax.ws.rs.core.UriInfo uriInfo,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
Provide list of latest build results for top level plans for specified project. |
RestResultStatus |
getResultStatus(java.lang.String projectKey,
java.lang.String buildKey,
java.lang.String buildNumber,
javax.ws.rs.core.UriInfo uriInfo,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
Provide runtime information for currently executing build result. |
void |
removeBuildLabel(java.lang.String projectKey,
java.lang.String buildKey,
java.lang.String buildNumber,
java.lang.String labelName,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext,
javax.ws.rs.core.UriInfo uriInfo)
Removes label from build result specified by projectKey-buildKey-buildNumber. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResultResource(ResultService resultService)
Method Detail |
---|
public RestResults getLatestBuildResults(java.lang.String expandParam, boolean favouriteParam, java.lang.String labelParam, java.lang.String issueKeyParam, boolean allStatesParam, boolean continuableParam, boolean buildStateParam, int startIndexParam, int maxResultsParam, @Context javax.ws.rs.core.UriInfo uriInfo, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
expandParam
- expands build result details on request. Possible values are: artifacts, comments, labels, jiraIssues, stages. stages expand is available only for top level plans. It allows to drill down to job results using stages.stage.results.result. All expand parameters should contain results.result prefix.favouriteParam
- filters build results list to show only results for favourite plans. Works only for authenticated userlabelParam
- filter by comma separated list of labelsissueKeyParam
- filter by comma separated list of Jira issue key related to resultallStatesParam
- return all build results including Unknown statescontinuableParam
- filter only results that may be continued (stopped on Manual Stage)buildStateParam
- filter results by state, valid values are Unknown, Successful, FailedstartIndexParam
- start index for results list (zero based)maxResultsParam
- maximum size for returned listuriInfo
- authenticationContext
-
public RestResults getLatestBuildResultsForProject(java.lang.String projectKey, java.lang.String expandParam, boolean favouriteParam, java.lang.String labelParam, java.lang.String issueKeyParam, boolean allStatesParam, boolean continuableParam, boolean buildStateParam, int startIndexParam, int maxResultsParam, @Context javax.ws.rs.core.UriInfo uriInfo, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
projectKey
- project key to filter plan result listexpandParam
- expands build result details on request. Possible values are: artifacts, comments, labels, jiraIssues, stages. stages expand is available only for top level plans. It allows to drill down to job results using stages.stage.results.result. All expand parameters should contain results.result prefix.favouriteParam
- filters build results list to show only results for favourite plans. Works only for authenticated userlabelParam
- filter by comma separated list of labelsissueKeyParam
- filter by comma separated list of Jira issue key related to resultallStatesParam
- return all build results including Unknown statescontinuableParam
- filter only results that may be continued (stopped on Manual Stage)buildStateParam
- filter results by state, valid values are Unknown, Successful, FailedstartIndexParam
- start index for results list (zero based)maxResultsParam
- maximum size for returned listuriInfo
- authenticationContext
-
RestResults
public RestResults getBuildResultsForChangeset(java.lang.String changesetId, @Context javax.ws.rs.core.UriInfo uriInfo, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
changesetId
- changeset id related to build resulturiInfo
- authenticationContext
-
RestResults
related to specified changeset idpublic RestResults getBuildHistory(java.lang.String projectKey, java.lang.String buildKey, java.lang.String expandParam, boolean favouriteParam, java.lang.String labelParam, java.lang.String issueKeyParam, boolean allStatesParam, boolean continuableParam, boolean buildStateParam, int startIndexParam, int maxResultsParam, @Context javax.ws.rs.core.UriInfo uriInfo, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
projectKey
- project keybuildKey
- plan key (might be simply planKey or composite planKey-jobKey)expandParam
- expands build result details on request. Possible values are: artifacts, comments, labels, jiraIssues, stages. stages expand is available only for top level plans. It allows to drill down to job results using stages.stage.results.result. All expand parameters should contain results.result prefix.favouriteParam
- filters build results list to show only results for favourite plans. Works only for authenticated userlabelParam
- filter by comma separated list of labelsissueKeyParam
- filter by comma separated list of Jira issue key related to resultallStatesParam
- return all build results including Unknown statescontinuableParam
- filter only results that may be continued (stopped on Manual Stage)buildStateParam
- filter results by state, valid values are Unknown, Successful, FailedstartIndexParam
- start index for results list (zero based)maxResultsParam
- maximum size for returned listuriInfo
- authenticationContext
-
RestResults
public RestResults getBranchHistory(java.lang.String projectKey, java.lang.String buildKey, java.lang.String branchName, java.lang.String expandParam, boolean favouriteParam, java.lang.String labelParam, java.lang.String issueKeyParam, boolean allStatesParam, boolean continuableParam, boolean buildStateParam, int startIndexParam, int maxResultsParam, @Context javax.ws.rs.core.UriInfo uriInfo, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
projectKey
- project keybuildKey
- plan key (might be simply planKey or composite planKey-jobKey)expandParam
- expands build result details on request. Possible values are: artifacts, comments, labels, jiraIssues, stages. stages expand is available only for top level plans. It allows to drill down to job results using stages.stage.results.result. All expand parameters should contain results.result prefix.favouriteParam
- filters build results list to show only results for favourite plans. Works only for authenticated userlabelParam
- filter by comma separated list of labelsissueKeyParam
- filter by comma separated list of Jira issue key related to resultallStatesParam
- return all build results including Unknown statescontinuableParam
- filter only results that may be continued (stopped on Manual Stage)buildStateParam
- filter results by state, valid values are Unknown, Successful, FailedstartIndexParam
- start index for results list (zero based)maxResultsParam
- maximum size for returned listuriInfo
- authenticationContext
-
RestResults
public Result getBuild(java.lang.String projectKey, java.lang.String buildKey, java.lang.String buildNumber, java.lang.String expandParam, boolean favouriteParam, int startIndexParam, int maxResultsParam, @Context javax.ws.rs.core.UriInfo uriInfo, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
projectKey
- project keybuildKey
- plan key (might be simply planKey or composite planKey-jobKey)buildNumber
- buildNumber (numeric value or 'latest')expandParam
- expands build result details on request. Possible values are: changes, metadata, artifacts, comments, labels, jiraIssues, stages, logEntries. stages expand is available only for top level plans. It allows to drill down to job results using stages.stage.results.result. logEntries and testResults are available only for job resultsfavouriteParam
- filters build results list to show only results for favourite plans. Works only for authenticated userstartIndexParam
- start index for results list (zero based)maxResultsParam
- maximum size for returned listuriInfo
- uriInfoauthenticationContext
- authenticationContext
ResultDetails
public Result getBuildAlias(java.lang.String projectKey, java.lang.String buildKey, java.lang.String buildNumber, java.lang.String expandParam, boolean favouriteParam, int startIndexParam, int maxResultsParam, @Context javax.ws.rs.core.UriInfo uriInfo, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
projectKey
- project keybuildKey
- plan key (might be simply planKey or composite planKey-jobKey)buildNumber
- buildNumber (numeric value or 'latest')expandParam
- expands build result details on request. Possible values are: changes, metadata, artifacts, comments, labels, jiraIssues, stages, logEntries. stages expand is available only for top level plans. It allows to drill down to job results using stages.stage.results.result. logEntries and testResults are available only for job resultsfavouriteParam
- filters build results list to show only results for favourite plans. Works only for authenticated userstartIndexParam
- start index for results list (zero based)maxResultsParam
- maximum size for returned listuriInfo
- uriInfoauthenticationContext
- authenticationContext
ResultDetails
public RestComments getBuildComments(java.lang.String projectKey, java.lang.String buildKey, java.lang.String buildNumber, @Context javax.ws.rs.core.UriInfo uriInfo)
projectKey
- projectKeybuildKey
- planKey (might be simply planKey or composite planKey-jobKey)buildNumber
- buildNumber (numeric value or 'latest')uriInfo
-
RestComments
public void addBuildComment(java.lang.String projectKey, java.lang.String buildKey, java.lang.String buildNumber, RestComment comment, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext, @Context javax.ws.rs.core.UriInfo uriInfo)
projectKey
- project keybuildKey
- plan key (might be simply planKey or composite planKey-jobKey)buildNumber
- build numbercomment
- new comment contentauthenticationContext
- uriInfo
- public RestBuildLabels getBuildLabels(java.lang.String projectKey, java.lang.String buildKey, java.lang.String buildNumber, @Context javax.ws.rs.core.UriInfo uriInfo)
projectKey
- project keybuildKey
- plan key (might be simply planKey or composite planKey-jobKey)buildNumber
- buildNumber (numeric value or 'latest')uriInfo
-
RestBuildLabels
public void addBuildLabel(java.lang.String projectKey, java.lang.String buildKey, java.lang.String buildNumber, RestBuildLabel label, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext, @Context javax.ws.rs.core.UriInfo uriInfo)
projectKey
- project keybuildKey
- plan key (might be simply planKey or composite planKey-jobKey)buildNumber
- buildNumber (numeric value or 'latest')label
- label content to add to build resultauthenticationContext
- uriInfo
- public void removeBuildLabel(java.lang.String projectKey, java.lang.String buildKey, java.lang.String buildNumber, java.lang.String labelName, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext, @Context javax.ws.rs.core.UriInfo uriInfo) throws java.lang.Exception
projectKey
- project keybuildKey
- plan key (might be simply planKey or composite planKey-jobKey)buildNumber
- buildNumber (numeric value or 'latest')labelName
- label name to remove from build resultauthenticationContext
- uriInfo
-
java.lang.Exception
public RestResultStatus getResultStatus(java.lang.String projectKey, java.lang.String buildKey, java.lang.String buildNumber, @Context javax.ws.rs.core.UriInfo uriInfo, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
projectKey
- project keybuildKey
- plan key (might be simply planKey or composite planKey-jobKey)buildNumber
- buildNumber (numeric value only, 'latest' keyword is not supported for this method)uriInfo
- authenticationContext
-
RestResultStatus
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |