log.info("Deploying " + deploymentQualifier + " to CloudControl PaaS.");
CloudControlClient client = CloudControlSupport.createCloudControlClient();
UpdateDeploymentRequest request = CloudControlSupport.createUpdateDeploymentRequest(application, deployment, commitId);
UpdateDeploymentResponse response = null;
try {
response = client.send(request);
if (response.isError()) {
throw new MojoFailureException(response.getContent());
}
} catch (CloudControlClientException ccce) {
throw new MojoExecutionException("CloudControlClientException", ccce);
}
log.info("Successfully deployed " + deploymentQualifier);
log.info("Please, visit to following domain: http://" + response.getDeployment().getDefaultSubdomain());
}