public class DeploymentHelper extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DeploymentHelper.DeploymentValidationError |
static class |
DeploymentHelper.EnvironmentAlreadyExistsError |
Modifier and Type | Field and Description |
---|---|
static int |
TASK_WAIT_TIMEOUT_MS |
Constructor and Description |
---|
DeploymentHelper(DeploymentLogger log,
com.xebialabs.deployit.booter.remote.DeployitCommunicator communicator) |
Modifier and Type | Method and Description |
---|---|
com.xebialabs.deployit.engine.api.dto.Deployment |
attachExplicitDeployeds(com.xebialabs.deployit.engine.api.dto.Deployment deployment,
List<MavenDeployed> explicits)
Attaches explicitly specified deployeds to the deployment
|
com.xebialabs.deployit.plugin.api.udm.ConfigurationItem |
createEnvironment(String id,
List<? extends com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> members)
Creates an environment with members
|
com.xebialabs.deployit.engine.api.execution.TaskExecutionState |
executeAndArchiveTask(String taskId)
Starts task, waits until it's done.
|
boolean |
isApplicationDeployed(String source,
String target)
Checks whether application from given source is deployed to given target
|
void |
logEnvironment(com.xebialabs.deployit.plugin.api.udm.ConfigurationItem envCi)
logs environment and it's members
|
void |
logStepState(String taskId,
int stepNumber)
Logs information about single step
|
void |
logTaskState(String taskId)
Logs information about task and all steps
|
com.xebialabs.deployit.plugin.api.udm.ConfigurationItem |
readCiOrNull(String environmentId)
Returns configuration item from repository, or null if it does not exist
|
void |
skipAllSteps(String taskId) |
com.xebialabs.deployit.plugin.api.udm.ConfigurationItem |
uploadPackage(File darFile)
Uploads and imports a .dar package to deployit.
|
com.xebialabs.deployit.engine.api.dto.Deployment |
validateDeployment(com.xebialabs.deployit.engine.api.dto.Deployment deployment)
Checks if deployment valid (does not contain validation messages)
|
public static final int TASK_WAIT_TIMEOUT_MS
public DeploymentHelper(DeploymentLogger log, com.xebialabs.deployit.booter.remote.DeployitCommunicator communicator)
public boolean isApplicationDeployed(String source, String target)
public com.xebialabs.deployit.engine.api.dto.Deployment attachExplicitDeployeds(com.xebialabs.deployit.engine.api.dto.Deployment deployment, List<MavenDeployed> explicits)
public void skipAllSteps(String taskId)
public com.xebialabs.deployit.engine.api.execution.TaskExecutionState executeAndArchiveTask(String taskId)
public void logTaskState(String taskId)
public void logStepState(String taskId, int stepNumber)
public com.xebialabs.deployit.engine.api.dto.Deployment validateDeployment(com.xebialabs.deployit.engine.api.dto.Deployment deployment) throws DeploymentHelper.DeploymentValidationError
public com.xebialabs.deployit.plugin.api.udm.ConfigurationItem readCiOrNull(String environmentId)
public void logEnvironment(com.xebialabs.deployit.plugin.api.udm.ConfigurationItem envCi)
public com.xebialabs.deployit.plugin.api.udm.ConfigurationItem createEnvironment(String id, List<? extends com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> members) throws DeploymentHelper.EnvironmentAlreadyExistsError
public com.xebialabs.deployit.plugin.api.udm.ConfigurationItem uploadPackage(File darFile)
Copyright © 2016. All rights reserved.