Skip to content

A clear example of additionalVariables object usage #55

Answered by qetza
mikaelsand asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @mikaelsand,
Thanks for the feedback, I'll add a example of passing additional variables using a object (map).

For your need, the task is able to automatically access environment variables (that's how the agent is passing inline variables and variable groups to tasks) and variables specified in the additional variables input. The additional variables are set in your definition so you cannot update them dynamically during runtime.

What you could do in your step where you get the metadata:

  • dump the data in a json file and configure this file in the additional variables of the replace tokens task (and maybe add a step after to delete the file if it contains some sensitive data)
  • or you ca…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mikaelsand
Comment options

Answer selected by mikaelsand
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants