Skip to content

Commit

Permalink
Added error handling on prepare deployeds
Browse files Browse the repository at this point in the history
  • Loading branch information
jdewinne committed Mar 15, 2016
1 parent cfa6bf1 commit 7b2b872
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ deploy:
provider: releases
api_key:
secure: aoVXZyLOBmB4Q2lLKLaqEN8zcqN3K3/3agRBA1znM1PLeqXSE3CwQe6sHkX6BrfMoDDtjqeepDMgJ9TsqJFq+lPY+HuVFzOqGlrWlIZHBUKI3hmfjgM/61CkdK2eBO42Ym4tqCQ4L1Tp42fcrB6M/a/0TGI5ENW2bJk8+ofRT8M=
file: build/libs/xlr-xldeploy-plugin-2.1.1.jar
file: build/libs/xlr-xldeploy-plugin-2.1.2.jar
skip_cleanup: true
on:
all_branches: true
Expand Down
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ plugins {
id "com.github.hierynomus.license" version "0.12.1"
}

version="2.1.1"
version="2.1.2"

apply plugin: "com.github.hierynomus.license"
apply plugin: 'java'
Expand All @@ -12,3 +12,4 @@ license {
header rootProject.file('src/main/license/xebialabs_community.license')
strictCheck false
}
1
3 changes: 2 additions & 1 deletion src/main/resources/xldeploy/XLDeployClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,8 @@ def deployment_prepare_deployeds(self, deployment, orchestrators = None, deploye
deployment_prepare_deployeds = "/deployit/deployment/prepare/deployeds"
# print 'DEBUG: Prepare deployeds for deployment object %s \n' % deployment
deployment_prepare_deployeds_response = self.http_request.post(deployment_prepare_deployeds, deployment, contentType='application/xml')
# print 'DEBUG: Deployment object including mapping is now %s \n' % deployment
if not deployment_prepare_deployeds_response.isSuccessful():
raise Exception("Failed to prepare deployeds. Server return [%s], with content [%s]" % (deployment_prepare_deployeds_response.status, deployment_prepare_deployeds_response.response))
deployment_xml = deployment_prepare_deployeds_response.getResponse()
# print 'DEBUG: deployment_xml is ' + deployment_xml
deployment_xml = self.add_orchestrators(deployment_xml, orchestrators)
Expand Down

0 comments on commit 7b2b872

Please sign in to comment.