Commit db6ae317 authored by Jose Castro Leon's avatar Jose Castro Leon

Fix ordering for workflows

parent 89448f0c
Pipeline #969398 passed with stages
in 4 minutes and 5 seconds
......@@ -103,8 +103,8 @@ instance_snapshot:
publish:
images: <% task(check_number_of_images).result.where($.visibility='private').where(regex(task(check_server).published.snapshot_regex).matches($.name)).orderBy($.updated_at).id %>
on-success:
- cleanup_images: <% $.max_snapshots > 0 and task(check_number_of_images).result.where($.visibility='private').where(regex(task(check_server).published.snapshot_regex).matches($.name)).count() > $.max_snapshots %>
- success_task: <% $.max_snapshots <= 0 or task(check_number_of_images).result.where($.visibility='private').where(regex(task(check_server).published.snapshot_regex).matches($.name)).count() <= $.max_snapshots %>
- cleanup_images: <% $.max_snapshots > 0 and $.max_snapshots < task(check_number_of_images).result.where($.visibility='private').where(regex(task(check_server).published.snapshot_regex).matches($.name)).count() %>
- success_task: <% $.max_snapshots <= 0 or $.max_snapshots >= task(check_number_of_images).result.where($.visibility='private').where(regex(task(check_server).published.snapshot_regex).matches($.name)).count() %>
on-error:
- error_task
......@@ -188,8 +188,8 @@ instance_snapshot:
publish:
snapshots: <% task(check_number_of_volume_snapshots).result.where($.status='available').where(regex(task(check_server).published.snapshot_regex).matches($.name)).orderBy($.updated_at).id %>
on-success:
- cleanup_volume_snapshots: <% $.max_snapshots > 0 and task(check_number_of_volume_snapshots).result.where($.status='available').where(regex(task(check_server).published.snapshot_regex).matches($.name)).count() > $.max_snapshots %>
- success_task: <% $.max_snapshots <= 0 or task(check_number_of_volume_snapshots).result.where($.status='available').where(regex(task(check_server).published.snapshot_regex).matches($.name)).count() <= $.max_snapshots %>
- cleanup_volume_snapshots: <% $.max_snapshots > 0 and $.max_snapshots < task(check_number_of_volume_snapshots).result.where($.status='available').where(regex(task(check_server).published.snapshot_regex).matches($.name)).count() %>
- success_task: <% $.max_snapshots <= 0 or $.max_snapshots >= task(check_number_of_volume_snapshots).result.where($.status='available').where(regex(task(check_server).published.snapshot_regex).matches($.name)).count() %>
on-error:
- error_task
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment