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

Variables are not getting passed to a Workflow step's error handler #4141

Closed
sebastianbello opened this Issue Oct 19, 2018 · 0 comments

Comments

Projects
None yet
3 participants
@sebastianbello

sebastianbello commented Oct 19, 2018

Describe the bug
Variables generated within a workflow ( Key Value Data ) step do not get passed to the error handler

My Rundeck detail

  • Rundeck version: ALL ( tested in 2.11.4 and 3.0.7 )
  • install type: deb, war

To Reproduce
Steps to reproduce the behavior:

  1. Create a Job with Workflow step 1 consisting of a script that captures a Key Value Data ( data.var ), logs output and then fails ( exit 1 )

  2. Add an Error Handler in Step 1 that prints ${data.var}

  3. Add Workflow step 2 that prints ${data.var}

Expected behavior
data.var captured within workflow step 1 should be passed to the error handler

Screenshots
Job Definition:
image

Execution Output:
image

Additional context
Same behavior if KVD is set as a Global Log Filter

@gschueler gschueler added the bug label Oct 23, 2018

@ahonor ahonor added this to the 3.0.9 milestone Nov 13, 2018

@gschueler gschueler closed this in 4f49f4c Nov 20, 2018

gschueler added a commit that referenced this issue Nov 20, 2018

Merge pull request #4233 from rundeck/issue/4141
Fixes #4141. Use combined shared context from the last step when executing the error handler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment