Merge "Add workflow for uploading validations to Swift"

This commit is contained in:
Zuul 2018-06-28 06:14:55 +00:00 committed by Gerrit Code Review
commit e8e19d776c
1 changed files with 27 additions and 0 deletions

View File

@ -756,3 +756,30 @@ workflows:
statistics: <% $.statistics %>
errors: <% $.errors %>
warnings: <% $.warnings %>
upload_validations:
tags:
- tripleo-common-managed
input:
- queue_name: tripleo
tasks:
upload_validations:
action: tripleo.validations.upload
on-complete: send_message
publish-on-error:
status: FAILED
message: <% task().result %>
publish:
status: SUCCESS
message: <% task().result %>
send_message:
workflow: tripleo.messaging.v1.send
input:
queue_name: <% $.queue_name %>
type: <% execution().name %>
status: <% $.status %>
execution: <% execution() %>
message: <% $.get('message', '') %>