List build triggers

Stay organized with collections Save and categorize content based on your preferences.

List build triggers with the client libraries. To learn more about triggers:

Code sample


async function listBuildTriggers(
  projectId = 'YOUR_PROJECT_ID' // Your Google Cloud Platform project ID
) {
  // Imports the Google Cloud client library
  const {CloudBuildClient} = require('@google-cloud/cloudbuild');

  // Creates a client
  const cb = new CloudBuildClient();

  // What project should we list triggers for?
  const request = {

  const [result] = await cb.listBuildTriggers(request);, null, 2));

What's next

To search and filter code samples for other Google Cloud products, see the Google Cloud sample browser.