st2flow
st2flow copied to clipboard
Comments get stripped in transition blocks
By connecting two task together
...
setup_st2:
action: st2ci.setup_st2
input:
host: <% $.host %>
repo: <% $.st2_repo %>
repo_branch: <% $.st2_repo_branch %>
repo_dir: <% $.st2_repo_dir %>
debug: <% $.debug %>
publish:
st2_clone_path: <% $.setup_st2.clone_path %>
on-error:
# Manually tear down mistral here because by the time setup_st2
# runs, the mistral infrastructure is already setup. Each setup
# task above automatically rollback on error unless debugging.
- teardown_mistral: <% not $.debug %>
...
becomes this
...
setup_st2:
action: st2ci.setup_st2
input:
host: <% $.host %>
repo: <% $.st2_repo %>
repo_branch: <% $.st2_repo_branch %>
repo_dir: <% $.st2_repo_dir %>
debug: <% $.debug %>
publish:
st2_clone_path: <% $.setup_st2.clone_path %>
on-error:
- teardown_mistral
- compose_shas
...
Yeah, at the moment we also strip transition conditions, but that's another question.
Still a problem in 3.0pre with Mistral. Did not test Orquesta.