QuestionQ285
Building and testing applicationsYour company’s corporate policy requires a copyright comment at the very start of every source file. You want to create a custom Cloud Build step that runs for each source commit. The trigger must verify that the source includes a copyright comment and add one for subsequent steps when it is absent. What should you do?
- A Build a new Docker container that examines the files in /workspace and then checks and adds a copyright for each source file. Changed files are explicitly committed back to the source repository.
- B Build a new Docker container that examines the files in /workspace and then checks and adds a copyright for each source file. Changed files do not need to be committed back to the source repository.
- C Build a new Docker container that examines the files in a Cloud Storage bucket and then checks and adds a copyright for each source file. Changed files are written back to the Cloud Storage bucket.
- D Build a new Docker container that examines the files in a Cloud Storage bucket and then checks and adds a copyright for each source file. Changed files are explicitly committed back to the source repository.
Community Discussion