問題文
A container template writes a report to /tmp/report.csv and a later step must consume that file. Which option correctly describes how the producing template exposes the file?
選択肢
- Add the file path to the artifactRepositoryRef field of the template, and the repository entry then resolves it for later steps.
- Declare it under outputs.parameters with a valueFrom.path entry, because any file produced by a step is exposed to later steps as a parameter regardless of its size or format.
- Nothing is needed, because the container filesystem is shared with all later steps.
- Declare it under outputs.artifacts with a name and the path of the file inside the container.