Skip to content

Instantly share code, notes, and snippets.

@LindsayHill
Last active February 27, 2017 19:05
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save LindsayHill/cf72d9e386c9519c2cddfc62eecd3b09 to your computer and use it in GitHub Desktop.
Mistral Jinja example
version: '2.0'
examples.mistral-jinja-env-var:
description: A basic workflow that illustrates how to get the workflow's env vars.
type: direct
output:
env: "{{ env() }}"
url: "{{ _.url }}"
tasks:
task1:
action: core.local
input:
cmd: "echo http://127.0.0.1:9101/executions/{{ env().st2_execution_id }}"
publish:
url: "{{ task('task1').result.stdout }}"
ctx: "{{ env()['__actions']['st2.action']['st2_context'] }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment