Add environment for workflow
under review
G
Gusdecool
Can we please have environment for workflows?
the current jobs configs already have environment https://circleci.com/docs/2.0/configuration-reference/#environment which it great.
But for workflow, we need to use context variables, were setup lots variable in circleci v2 is painful to create & manage as we need to setup one by one.
So i think it will be greate if workflow have environment config similar like in https://circleci.com/docs/2.0/configuration-reference/#environment
CCI-I-355
L
Liya Ai
under review
Liya Ai
Hey @James! Thanks for calling that out - I've shared it with the product team and confirmed its something they'll be looking at. Will let you know here if they decide to re-open the idea, make a new one etc. Thanks
J
James Sumners
Given the links in the original suggestion, I interpret the request to add support for adding an environment: block as a direct child of a workflow: block.
Liya Ai
Hey @James! Passing along a note from the team: We were unsure if the idea had intended to be 1) Programmatically managing context variables or 2) Specifying the same context for all N jobs in a workflow. The Contexts API solves 1 but not 2, which is why we added the comment of letting us know if the use case was addressed. Does that help?
J
James Sumners
@Liya, I'm confused. What does that contexts API have to do with being able to provide environment variables at the workflow level?
Liya Ai
Hi Everyone! In case you missed it, we've shipped a preview of our contexts API - you can read more about it here: https://circleci.com/docs/api/v2/#circleci-api-context-preview- Feel free to let us know if you have any feedback, if this resolves the issue or you intended to request another use case. Thanks!
N
Nathan Dintenfass
We are planning easier ways to propagate env vars across jobs at the config level. It will be a while, though, as we work on some new configuration processing capabilities.