Exploring passing of files over workspaces, before saving all as artifacts in 1 downstream job.
The main workflow will run:
- create-file-foobar.txt job
- create-file-fizzbuzz.txt job
- save-as-artifacts job
(1) and (2) will create files of foobar.txt and fizzbuzz.txt respectively, under the project's working directory.
We then persist the files to the workspace.
(3) will attach the workspace for this workflow, and saves the 2 files as artifacts. It is important to ensure that the 2 files have unique filepaths (i.e., they do not clash or conflict).