Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish output for the pipeline workflow #20

Open
mjtice opened this issue May 15, 2020 · 3 comments
Open

Publish output for the pipeline workflow #20

mjtice opened this issue May 15, 2020 · 3 comments

Comments

@mjtice
Copy link
Contributor

mjtice commented May 15, 2020

Hey guys, before I go too far with a PR are you okay if I publish the output of each task (on failure, to a dict) in the pipeline workflow?

e.g.

output:
  - errors: <% ctx().terraform_errors %>

vars:
  - terraform_errors:
      init: null
      select_workspace: null
      create_workspace: null
      plan: null
      apply: null
      destroy: null

... snip ...
next:
      - when: <% failed() %>
        publish:
          - terraform_errors:
              apply: <% task('apply') %>
        do: fail

Or is there something else you'd rather see?

@nmaludy
Copy link
Contributor

nmaludy commented May 15, 2020

I think this makes sense.

@kingsleyadam
Copy link
Contributor

kingsleyadam commented Aug 4, 2020

With the recent changes, we should be able to publish stderr upon failure. That should expose a more relevant message.

@lorddaren
Copy link
Contributor

I have created pr #34 to help start down this path. Is this something we can get reviewed? I can add in errors next.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants