@Singleton public class QueueResource extends Object
Constructor and Description |
---|
QueueResource(PlanRestService planRestService,
BambooPermissionManager bambooPermissionManager,
BambooUserManager bambooUserManager,
BuildQueueManager buildQueueManager,
com.atlassian.sal.api.message.I18nResolver i18nResolver,
PlanExecutionManager planExecutionManager,
ResultsSummaryManager resultsSummaryManager) |
Modifier and Type | Method and Description |
---|---|
RestQueuedBuild |
continueBuild(String projectKey,
String buildKey,
Integer buildNumber,
String stageName,
boolean executeAllStages,
javax.ws.rs.core.UriInfo uriInfo,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
Continue partially done build.
|
RestQueuedBuilds |
getBuildQueue(javax.ws.rs.core.UriInfo uriInfo)
Provide list of build scheduled for execution and waiting in build queue.
|
RestQueuedBuild |
startBuild(String projectKey,
String buildKey,
String stageName,
boolean executeAllStages,
String customRevision,
javax.ws.rs.core.UriInfo uriInfo,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext,
String fakeParam,
javax.ws.rs.core.MultivaluedMap<String,String> formParams)
Fire build execution for specified plan.
|
javax.ws.rs.core.Response |
stopBuild(String projectKey,
String buildKey,
int buildNumber)
Stop build execution.
|
public QueueResource(PlanRestService planRestService, BambooPermissionManager bambooPermissionManager, BambooUserManager bambooUserManager, BuildQueueManager buildQueueManager, com.atlassian.sal.api.message.I18nResolver i18nResolver, PlanExecutionManager planExecutionManager, ResultsSummaryManager resultsSummaryManager)
public RestQueuedBuilds getBuildQueue(@Context javax.ws.rs.core.UriInfo uriInfo)
public RestQueuedBuild startBuild(String projectKey, String buildKey, String stageName, boolean executeAllStages, String customRevision, @Context javax.ws.rs.core.UriInfo uriInfo, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext, String fakeParam, javax.ws.rs.core.MultivaluedMap<String,String> formParams) throws WebValidationException
projectKey
- project keybuildKey
- plan key (only top level plan key, can not be job key)stageName
- name of the stage that should be executed even if defined as manual stage. Execution will follow to the next manual stage after this or end of plan if no subsequent manual stageexecuteAllStages
- enforce executing all stages in a plan, even if defined as manual stages. Execution will follow and include latest stage, unless some stage will fail.customRevision
- execute this plan for a custom revision instead of the latest oneuriInfo
- uri infoauthenticationContext
- authentication contextWebValidationException
public RestQueuedBuild continueBuild(String projectKey, String buildKey, Integer buildNumber, String stageName, boolean executeAllStages, @Context javax.ws.rs.core.UriInfo uriInfo, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
projectKey
- project keybuildKey
- plan key (only top level plan key, can not be job key)buildNumber
- build number to resume/rerunstageName
- name of the stage that should be executed even if manual stage. Execution will follow to the next manual stage after this or end of plan if no subsequent manual stageexecuteAllStages
- enforce executing all stages in a plan, even if defined as manual stages. Execution will follow and include latest stage, unless some stage will fail.uriInfo
- uri infoauthenticationContext
- authentication contextpublic javax.ws.rs.core.Response stopBuild(String projectKey, String buildKey, int buildNumber)
projectKey
- project keybuildKey
- plan key - IMPORTANT: as build queue contains only jobs not top level plans, plan key here MUST be a job key as opposite to other methods in this resource.buildNumber
- build numberCopyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.