Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I don't think there is a way to link a pre-existing environment. You could, however, have a task in the workflow that fetches the environment. This workflow takes the name of a environment, it then fetches it and outputs the contents of the environment.

wf:
  input:
    - env_name
  tasks:
    get_env:
      action: mistral.environments_get name=<% $.env_name %>
      publish:
        env: task(get_env).result.variables
      on-complete: do_something
    do_something:
      action: std.echo output=<% $env %>

I don't think there is a way to link a pre-existing environment. You could, however, have a task in the workflow that fetches the environment. This workflow takes the name of a environment, it then fetches it and outputs the contents of the environment.

wf:
  input:
    - env_name
  tasks:
    get_env:
      action: mistral.environments_get name=<% $.env_name %>
      publish:
        env: task(get_env).result.variables
      on-complete: do_something
    do_something:
      action: std.echo output=<% $env $.env %>