This site is in read only mode. Please continue to browse, but replying, likes, and other actions are disabled for now.

⚠️ We've moved!

Hi there!

To reduce project dependency on 3rd party paid services the StackStorm TSC has decided to move the Q/A from this forum to Github Discussions. This will make user experience better integrated with the native Github flow, as well as the questions closer to the community where they can provide answers.

Use 🔗 Github Discussions to ask your questions.

Error dereferencing key from workflow

I have a key that was created by had by logging into the st2client instance and doing the following:

st2 key set jenkins_role_id “xxx”

In my workflow.yaml file, I reference it like this:


  • credentials:
    role_id: “{{ st2kv.system.jenkins_role_id }}”

When I test the associated webhook I get this error:

“output”: null,
“errors”: [
“type”: “error”,
“message”: “JinjaEvaluationException: Unable to evaluate expression ‘{{ st2kv.system.jenkins_role_id }}’. UndefinedError: ‘functools.partial object’ has no attribute ‘system’”

I can’t see what I’ve done wrong.

Take a look at StackStorm Runtime — StackStorm 3.3.0 documentation, I think you need to use the st2kv function e.g.
<% st2kv('system.jenkins_role_id) %>