Pass correct message to Zaqar in case of plan export failure
If the first task in the plan export workflow fails, the create_tempurl task will not be run and therefore we cannot use its result as a message to Zaqar. Change-Id: Iaeaaf6a1055a1884d409e2ad862280e902f6a75b
This commit is contained in:
parent
bc66ed96c7
commit
66fd52cedc
@ -388,6 +388,7 @@ workflows:
|
||||
publish:
|
||||
status: SUCCESS
|
||||
message: <% task(create_tempurl).result %>
|
||||
tempurl: <% task(create_tempurl).result %>
|
||||
|
||||
export_plan_set_status_failed:
|
||||
on-success: notify_zaqar
|
||||
@ -412,6 +413,6 @@ workflows:
|
||||
status: <% $.status %>
|
||||
message: <% $.get('message', '') %>
|
||||
execution: <% execution() %>
|
||||
tempurl: <% task(create_tempurl).result %>
|
||||
tempurl: <% $.get('tempurl', '') %>
|
||||
on-success:
|
||||
- fail: <% $.get('status') = "FAILED" %>
|
||||
|
Loading…
Reference in New Issue
Block a user