@Singleton public class DeploymentQueueResource extends Object
Constructor and Description |
---|
DeploymentQueueResource(BuildQueueManager buildQueueManager,
BambooUserManager bambooUserManager,
DeploymentExecutionService deploymentExecutionService,
DeploymentProjectService deploymentProjectService,
DeploymentResultService deploymentResultService,
DeploymentVersionService deploymentVersionService,
EnvironmentService environmentService,
EnvironmentTriggeringActionFactory environmentTriggeringActionFactory,
com.atlassian.sal.api.message.I18nResolver i18nResolver,
PlanExecutionManager planExecutionManager) |
Modifier and Type | Method and Description |
---|---|
RestQueuedDeployments |
getBuildQueue(String expandParam,
javax.ws.rs.core.UriInfo uriInfo)
Provide list of deployment results scheduled for execution and waiting in queue.
|
javax.ws.rs.core.Response |
removeDeploymentFromQueue(Long deploymentResultId,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
Remove deployment result from queue.
|
RestQueuedDeployment |
startDeployment(Long environmentId,
Long versionId,
javax.ws.rs.core.UriInfo uriInfo,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
Trigger deployment for deployment environment and version.
|
public DeploymentQueueResource(BuildQueueManager buildQueueManager, BambooUserManager bambooUserManager, DeploymentExecutionService deploymentExecutionService, DeploymentProjectService deploymentProjectService, DeploymentResultService deploymentResultService, DeploymentVersionService deploymentVersionService, EnvironmentService environmentService, EnvironmentTriggeringActionFactory environmentTriggeringActionFactory, com.atlassian.sal.api.message.I18nResolver i18nResolver, PlanExecutionManager planExecutionManager)
public RestQueuedDeployments getBuildQueue(String expandParam, @Context javax.ws.rs.core.UriInfo uriInfo)
expandParam
- expands deployment result queue items on request. Possible value: queuedDeployments.uriInfo
- request detailspublic RestQueuedDeployment startDeployment(@Nullable Long environmentId, @Nullable Long versionId, @Context javax.ws.rs.core.UriInfo uriInfo, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext) throws WebValidationException, org.acegisecurity.AccessDeniedException
environmentId
- Deployment environment id. MandatoryversionId
- Version (release) id. MandatoryuriInfo
- request detailsauthenticationContext
- authentication contextWebValidationException
org.acegisecurity.AccessDeniedException
public javax.ws.rs.core.Response removeDeploymentFromQueue(Long deploymentResultId, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext) throws WebValidationException
deploymentResultId
- id of deployment result in queue.authenticationContext
- authentication contextWebValidationException
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.