Skip to content

Pass variables between jobs

Problem to solve

CI/CD often needs to pass information from one job to another and artifacts can be used for this, although it's a heavy solution with unintended side effects. Workspaces is another proposal for passing files between jobs. But sometimes you don't want to pass files at all, just a small bit of data.

Further details

e.g. you create a semantic version during build and want to pass it the deploy job. Or you build a docker image and want to pass the ref to another job. Or you have an error message that you want to pass to your Slack integration.

Proposal

Allow a job to dynamically determine environment variable content to pass to subsequent jobs.

What does success look like, and how can we measure that?

(If no way to measure success, link to an issue that will implement a way to measure this)

Links / references