How to share data between jobs in Workflow


#1

Hey there, in a workflow configuration, it looks like each of the jobs run in a separated environment, how do I share data between the jobs? The use case is,

  1. I have to checkout code in each of the job, can it only checkout once and use in all jobs?
  2. In one job I compiled the code, in another job the complied code is needed, how do I do it?

Cheers,


#2

For sharing artifacts between jobs, see this doc - https://circleci.com/docs/2.0/workflows/#using-workspaces-to-share-artifacts-among-jobs

Also, looks like CircleCI use workspaces themselves, checkout their config.yml - https://github.com/circleci/frontend/blob/master/.circleci/config.yml


#3

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.