How should you store the file so that all the builders in the pipeline can access it?

You are using Cloud Build for your CI/CD pipeline to complete several tasks, including copying certain files to Compute Engine virtual machines. Your pipeline requires a flat file that is generated in one builder in the pipeline to be accessible by subsequent builders in the same pipeline.

How should you store the file so that all the builders in the pipeline can access it?
A . Store and retrieve the file contents using Compute Engine instance metadata.
B . Output the file contents to a file in /workspace. Read from the same /workspace file in the subsequent build step.
C . Use gsutil to output the file contents to a Cloud Storage object. Read from the same object in the subsequent build step.
D . Add a build argument that runs an HTTP POST via curl to a separate web server to persist the value in one builder. Use an HTTP GET via curl from the subsequent build step to read the value.

Answer: B

Explanation:

https://cloud.google.com/build/docs/build-config-file-schema

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments