Copyright 2017 XEBIALABS Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
| Modifiers | Name | Description |
|---|---|---|
static class |
DeploymentHelper.DeploymentValidationError |
|
static class |
DeploymentHelper.EnvironmentAlreadyExistsError |
| Modifiers | Name | Description |
|---|---|---|
static int |
TASK_WAIT_TIMEOUT_MS |
| Constructor and description |
|---|
DeploymentHelper
(org.gradle.api.logging.Logger logger, com.xebialabs.deployit.booter.remote.DeployitCommunicator communicator) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
com.xebialabs.deployit.plugin.api.udm.ConfigurationItem |
createEnvironment(java.lang.String id, java.util.List<? extends com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> members)Creates an environment with members |
|
com.xebialabs.deployit.engine.api.execution.TaskExecutionState |
executeAndArchiveTask(java.lang.String taskId)Starts task, waits until it's done. |
|
boolean |
isApplicationDeployed(java.lang.String source, java.lang.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(java.lang.String taskId, int stepNumber)Logs information about single step |
|
void |
logTaskState(java.lang.String taskId)Logs information about task and all steps |
|
com.xebialabs.deployit.plugin.api.udm.ConfigurationItem |
readCiOrNull(java.lang.String environmentId)Returns configuration item from repository, or null if it does not exist |
|
void |
skipAllSteps(java.lang.String taskId)Skips all steps of the given task |
|
com.xebialabs.deployit.plugin.api.udm.ConfigurationItem |
uploadPackage(java.io.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) |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Creates an environment with members
Starts task, waits until it's done. Returns one of the states: {DONE, EXECUTED, STOPPED, CANCELLED}.
Checks whether application from given source is deployed to given target
logs environment and it's members
Logs information about single step
Logs information about task and all steps
Returns configuration item from repository, or null if it does not exist
Skips all steps of the given task
Uploads and imports a .dar package to deployit.
Checks if deployment valid (does not contain validation messages)