|
25 | 25 | # Mapping deployables to the target environment |
26 | 26 | # deploymentProperties + configure orchestrators |
27 | 27 | print "Mapping all deployables \n" |
28 | | -deployment = xld_client.deployment_prepare_deployeds(deployment, orchestrators, deployedApplicationProperties, overrideDeployedProps, deployedProperties) |
| 28 | +deployment = xld_client.deployment_prepare_deployeds(deployment, orchestrators, deployedApplicationProperties, |
| 29 | + overrideDeployedProps, deployedProperties) |
29 | 30 |
|
30 | 31 | print "Validating the deployment\n" |
31 | 32 | validation_messages = xld_client.validate(deployment) |
|
41 | 42 | taskId = xld_client.get_deployment_task_id(deployment) |
42 | 43 |
|
43 | 44 | print "Execute task with id: %s" % taskId |
44 | | -taskState = xld_client.invoke_task_and_wait_for_result(taskId, pollingInterval, numberOfPollingTrials, continueIfStepFails, numberOfContinueRetrials, failOnPause) |
45 | | - |
46 | | -if displayStepLogs: |
47 | | - print "Display the step logs" |
48 | | - xld_client.display_step_logs(taskId) |
| 45 | +taskState = xld_client.invoke_task_and_wait_for_result(taskId, pollingInterval, numberOfPollingTrials, |
| 46 | + continueIfStepFails, numberOfContinueRetrials, failOnPause, |
| 47 | + display_step_logs=displayStepLogs) |
49 | 48 |
|
50 | 49 | if taskState in ('DONE', 'EXECUTED'): |
51 | 50 | print "Deployment ended in %s \n" % taskState |
|
58 | 57 | print "Going to rollback \n" |
59 | 58 | xld_client.stop_task(taskId) |
60 | 59 | rollBackTaskId = xld_client.deployment_rollback(taskId) |
61 | | - taskState = xld_client.invoke_task_and_wait_for_result(rollBackTaskId, pollingInterval, numberOfPollingTrials, continueIfStepFails, numberOfContinueRetrials) |
| 60 | + taskState = xld_client.invoke_task_and_wait_for_result(rollBackTaskId, pollingInterval, numberOfPollingTrials, |
| 61 | + continueIfStepFails, numberOfContinueRetrials, |
| 62 | + display_step_logs=displayStepLogs) |
62 | 63 | xld_client.archive_task(rollBackTaskId) |
63 | 64 | elif cancelOnError: |
64 | 65 | print "Task failed; cancelling task. \n" |
|
0 commit comments