QuestionQ14

Building and testing applications

A company stores its source code in a Cloud Source Repositories repository. The company wants to build and test its code on every source-code commit to the repository and requires a managed solution with minimal operational overhead.

Which method should it use?

  • A Use Cloud Build with a trigger configured for each source code commit.
  • B Use Jenkins deployed via the Google Cloud Platform Marketplace, configured to watch for source code commits.
  • C Use a Compute Engine virtual machine instance with an open source continuous integration tool, configured to watch for source code commits.
  • D Use a source code commit trigger to push a message to a Cloud Pub/Sub topic that triggers an App Engine service to build the source code.
Explanation

Cloud Build provides managed CI and can use a build trigger to automatically run a build when code is pushed to Cloud Source Repositories. This avoids operating Jenkins, virtual machines, or custom event-processing services.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!