public class DeploymentsControl extends BackdoorControl<DeploymentsControl>
BackdoorControl.AddXsrfNoCheckTokenFilter, BackdoorControl.JsonMediaTypeFilter
ADMIN_REST_PATH, API_REST_PATH, DEFAULT_REST_PATH, rootPath
Constructor and Description |
---|
DeploymentsControl(BambooEnvironmentData environmentData) |
Modifier and Type | Method and Description |
---|---|
List<Long> |
assignedRepositoryIds(String deploymentProjectId) |
DeploymentsControl |
createDeploymentProject(TestDeploymentProjectDetails deploymentProject)
Save deployment project
|
long |
createOrUpdateDeploymentProject(com.atlassian.bamboo.specs.api.builders.deployment.Deployment deployment) |
long |
createOrUpdateDeploymentProject(com.atlassian.bamboo.specs.api.model.deployment.DeploymentProperties deploymentProperties) |
RestDeploymentVersion |
createVersion(long deploymentProjectId,
PlanResultKey planResultKey,
String name) |
RestDeploymentVersion |
createVersion(long deploymentProjectId,
String planResultKey,
String name) |
DeploymentsControl |
deleteDeploymentProject(String deploymentProjectId) |
EnvironmentsControl |
environments() |
List<RestDeploymentProject> |
getAllProjects() |
RestDeploymentProject |
getDeploymentProject(long deploymentProjectId) |
protected com.sun.jersey.api.client.WebResource |
resourceRoot(String url)
Creates a WebResource with authentication parameters set for the default user.
|
void |
tearDown()
Cleanup resources
|
DeploymentsControl |
waitForCompletedDeployment(String environmentId,
String versionName) |
client, createResource, createResourceForPath, get, getEnvironmentData, getRestModulePath, percentEncode, ping, post
public DeploymentsControl(@NotNull BambooEnvironmentData environmentData)
public void tearDown()
BackdoorControl
tearDown
in class BackdoorControl<DeploymentsControl>
public DeploymentsControl deleteDeploymentProject(String deploymentProjectId)
public DeploymentsControl createDeploymentProject(TestDeploymentProjectDetails deploymentProject)
public DeploymentsControl waitForCompletedDeployment(String environmentId, String versionName)
public EnvironmentsControl environments()
public RestDeploymentVersion createVersion(long deploymentProjectId, @NotNull PlanResultKey planResultKey, @NotNull String name)
public RestDeploymentVersion createVersion(long deploymentProjectId, @NotNull String planResultKey, @NotNull String name)
public long createOrUpdateDeploymentProject(com.atlassian.bamboo.specs.api.model.deployment.DeploymentProperties deploymentProperties) throws Exception
Exception
public long createOrUpdateDeploymentProject(com.atlassian.bamboo.specs.api.builders.deployment.Deployment deployment) throws Exception
Exception
protected com.sun.jersey.api.client.WebResource resourceRoot(String url)
BackdoorControl
resourceRoot
in class BackdoorControl<DeploymentsControl>
public RestDeploymentProject getDeploymentProject(long deploymentProjectId)
public List<RestDeploymentProject> getAllProjects()
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.