st2flow icon indicating copy to clipboard operation
st2flow copied to clipboard

Comments get stripped in transition blocks

Open enykeev opened this issue 10 years ago • 1 comments

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.

enykeev avatar Sep 03 '15 10:09 enykeev

Still a problem in 3.0pre with Mistral. Did not test Orquesta.

bmomberger-bitovi avatar Mar 08 '19 17:03 bmomberger-bitovi