Class DeploymentHelper


  • public class DeploymentHelper
    extends Object
    • Constructor Detail

      • DeploymentHelper

        public DeploymentHelper​(DeploymentLogger log,
                                com.xebialabs.deployit.booter.remote.DeployitCommunicator communicator)
    • Method Detail

      • isApplicationDeployed

        public boolean isApplicationDeployed​(String source,
                                             String target)
        Checks whether application from given source is deployed to given target
      • attachExplicitDeployeds

        public 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
      • skipAllSteps

        public void skipAllSteps​(String taskId)
      • executeAndArchiveTask

        public com.xebialabs.deployit.engine.api.execution.TaskExecutionState executeAndArchiveTask​(String taskId)
        Starts task, waits until it's done. Returns one of the states: {DONE, EXECUTED, STOPPED, CANCELLED}.
      • logTaskState

        public void logTaskState​(String taskId)
        Logs information about task and all steps
      • logStepState

        public void logStepState​(String taskId,
                                 int stepNumber)
        Logs information about single step
      • readCiOrNull

        public com.xebialabs.deployit.plugin.api.udm.ConfigurationItem readCiOrNull​(String environmentId)
        Returns configuration item from repository, or null if it does not exist
      • logEnvironment

        public void logEnvironment​(com.xebialabs.deployit.plugin.api.udm.ConfigurationItem envCi)
        logs environment and it's members
      • uploadPackage

        public com.xebialabs.deployit.plugin.api.udm.ConfigurationItem uploadPackage​(File darFile)
        Uploads and imports a .dar package to deployit. A replacement for PackageService.upload() Check DEPLOYITPB-3999 and DEPLOYITPB-4012 for more details.