Class DeploymentQueueResource
java.lang.Object
com.atlassian.bamboo.plugins.rest.deployments.execution.DeploymentQueueResource
@Path("queue/deployment")
@Consumes("application/json")
@Produces("application/json")
@Singleton
public class DeploymentQueueResource
extends Object
-
Constructor Summary
ConstructorDescriptionDeploymentQueueResource
(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, RestAuthenticationContext restAuthenticationContext) -
Method Summary
Modifier and TypeMethodDescriptiongetBuildQueue
(String expandParam, javax.ws.rs.core.UriInfo uriInfo) javax.ws.rs.core.Response
removeDeploymentFromQueue
(Long deploymentResultId) startDeployment
(@Nullable Long environmentId, @Nullable Long versionId, @org.jetbrains.annotations.Nullable boolean verboseLogging, javax.ws.rs.core.UriInfo uriInfo)
-
Constructor Details
-
DeploymentQueueResource
@Inject 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, RestAuthenticationContext restAuthenticationContext)
-
-
Method Details
-
getBuildQueue
@GET public RestQueuedDeployments getBuildQueue(@QueryParam("expand") String expandParam, @Context javax.ws.rs.core.UriInfo uriInfo) -
startDeployment
@POST public RestQueuedDeployment startDeployment(@Nullable @QueryParam("environmentId") @Nullable Long environmentId, @Nullable @QueryParam("versionId") @Nullable Long versionId, @Nullable @QueryParam("verboseLogging") @org.jetbrains.annotations.Nullable boolean verboseLogging, @Context javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException, org.acegisecurity.AccessDeniedException - Throws:
WebValidationException
org.acegisecurity.AccessDeniedException
-
removeDeploymentFromQueue
@DELETE @Path("{deploymentResultId}") public javax.ws.rs.core.Response removeDeploymentFromQueue(@PathParam("deploymentResultId") Long deploymentResultId) throws WebValidationException - Throws:
WebValidationException
-