gcloud alpha builds triggers update manual Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud alpha builds triggers update manual - updates a manual trigger used by Cloud Build
- SYNOPSIS
gcloud alpha builds triggers update manual(TRIGGER:--region=REGION)(--trigger-config=PATH|--description=DESCRIPTION--[no-]require-approval--service-account=SERVICE_ACCOUNT--clear-substitutions|--remove-substitutions=[KEY,…] |--update-substitutions=[KEY=VALUE,…]--inline-config=PATH| [--dockerfile=DOCKERFILE:--dockerfile-dir=DOCKERFILE_DIR--dockerfile-image=DOCKERFILE_IMAGE] |--git-file-source-branch=GIT_FILE_SOURCE_BRANCH|--git-file-source-tag=GIT_FILE_SOURCE_TAG--git-file-source-github-enterprise-config=GIT_FILE_SOURCE_GITHUB_ENTERPRISE_CONFIG--git-file-source-path=PATH--git-file-source-repo-type=GIT_FILE_SOURCE_REPO_TYPE--git-file-source-uri=URL--source-to-build-branch=SOURCE_TO_BUILD_BRANCH|--source-to-build-tag=SOURCE_TO_BUILD_TAG--source-to-build-github-enterprise-config=SOURCE_TO_BUILD_GITHUB_ENTERPRISE_CONFIG--source-to-build-repo-type=SOURCE_TO_BUILD_REPO_TYPE--source-to-build-uri=SOURCE_TO_BUILD_URI)[GCLOUD_WIDE_FLAG …]
- DESCRIPTION
(ALPHA)Updates a manual trigger used by Cloud Build.- EXAMPLES
- To update the branch from which the trigger clones:
gcloudalphabuildstriggersupdatemanualmy-trigger--source-to-build-branch=my-branch - POSITIONAL ARGUMENTS
- Trigger resource - Build Trigger. The arguments in this group can be used tospecify the attributes of this resource. (NOTE) Some attributes are not givenarguments in this group but can be set in other ways.
To set the
projectattribute:- provide the argument
TRIGGERon the command line with a fullyspecified name; - provide the argument
--projecton the command line; - set the property
core/project.
This must be specified.
TRIGGER- ID of the trigger or fully qualified identifier for the trigger.
To set the
triggerattribute:- provide the argument
TRIGGERon the command line.
This positional argument must be specified if any of the other arguments in thisgroup are specified.
- provide the argument
--region=REGION- The Cloud location for the trigger.
To set the
regionattribute:- provide the argument
TRIGGERon the command line with a fullyspecified name; - provide the argument
--regionon the command line; - set the property
builds/region.
- provide the argument
- provide the argument
- Trigger resource - Build Trigger. The arguments in this group can be used tospecify the attributes of this resource. (NOTE) Some attributes are not givenarguments in this group but can be set in other ways.
- REQUIRED FLAGS
- Exactly one of these must be specified:
--trigger-config=PATH- Path to Build Trigger config file (JSON or YAML format). For more details, seehttps://cloud.google.com/cloud-build/docs/api/reference/rest/v1/projects.triggers#BuildTrigger
- Or at least one of these can be specified:
- Flag based trigger configuration
--description=DESCRIPTION- Build trigger description.
--[no-]require-approval- Require manual approval for triggered builds. Use
--require-approvalto enable and--no-require-approvalto disable. --service-account=SERVICE_ACCOUNT- The service account used for all user-controlled operations includingUpdateBuildTrigger, RunBuildTrigger, CreateBuild, and CancelBuild. If no serviceaccount is set, then the standard Cloud Build service account([PROJECT_NUM]@system.gserviceaccount.com) is used instead. Format:
projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT_ID_OR_EMAIL}. - At most one of these can be specified:
--clear-substitutions- Clear existing substitutions.
--remove-substitutions=[KEY,…]- Remove existing substitutions if present.
--update-substitutions=[KEY=VALUE,…]- Update or add to existing substitutions. Substitutions are parameters to besubstituted or add in the build specification.
For example (using some nonsensical substitution keys; all keys must begin withan underscore):
gcloudbuildstriggersupdate…--update-substitutions_FAVORITE_COLOR=blue,_NUM_CANDIES=10This will add the provided substitutions to the existing substitutions andresults in a build where every occurrence of
${_FAVORITE_COLOR}incertain fields is replaced by "blue", and similarly for${_NUM_CANDIES}and "10".Only the following built-in variables can be specified with the
--substitutionsflag: REPO_NAME, BRANCH_NAME, TAG_NAME,REVISION_ID, COMMIT_SHA, SHORT_SHA.For more details, see:https://cloud.google.com/build/docs/build-config-file-schema#substitutions
- At most one of these can be specified:
--inline-config=PATH- Local path to a YAML or JSON file containing a build configuration.
- Or at least one of these can be specified:
- Dockerfile build configuration flags
--dockerfile=DOCKERFILE- Path of Dockerfile to use for builds in the repository.
If specified, a build config will be generated to run docker build using thespecified file.
The filename is relative to the Dockerfile directory.
This flag argument must be specified if any of the other arguments in this groupare specified.
--dockerfile-dir=DOCKERFILE_DIR- Location of the directory containing the Dockerfile in the repository.
The directory will also be used as the Docker build context.
--dockerfile-image=DOCKERFILE_IMAGE- Docker image name to build.
If not specified, gcr.io/PROJECT/github.com/REPO_OWNER/REPO_NAME:$COMMIT_SHAwill be used.
Use a build configuration (cloudbuild.yaml) file for building multiple images ina single trigger.
- Or at least one of these can be specified:
- Build file source flags
- At most one of these can be specified:
--git-file-source-branch=GIT_FILE_SOURCE_BRANCH- The branch of the repository to clone when trigger is invoked.
--git-file-source-tag=GIT_FILE_SOURCE_TAG- The tag of the repository to clone when trigger is invoked.
- At most one of these can be specified:
--git-file-source-github-enterprise-config=GIT_FILE_SOURCE_GITHUB_ENTERPRISE_CONFIG- The resource name of the GitHub Enterprise config that should be applied to thissource.
--git-file-source-path=PATH- The file in the repository to clone when trigger is invoked.
--git-file-source-repo-type=GIT_FILE_SOURCE_REPO_TYPE- The type of the repository to clone when trigger is invoked.
This flag argument must be specified if any of the other arguments in this groupare specified.
--git-file-source-uri=URL- The URI of the repository to clone when trigger is invoked.
This flag argument must be specified if any of the other arguments in this groupare specified.
- At most one of these can be specified:
--source-to-build-branch=SOURCE_TO_BUILD_BRANCH- Branch to build.
--source-to-build-tag=SOURCE_TO_BUILD_TAG- Tag to build.
- At most one of these can be specified:
--source-to-build-github-enterprise-config=SOURCE_TO_BUILD_GITHUB_ENTERPRISE_CONFIG- The resource name of the GitHub Enterprise config that should be applied to thissource (1st gen). Format:projects/{project}/locations/{location}/githubEnterpriseConfigs/{id} orprojects/{project}/githubEnterpriseConfigs/{id}
--source-to-build-repo-type=SOURCE_TO_BUILD_REPO_TYPE- Type of the repository (1st gen). Currently only GitHub and Cloud SourceRepository types are supported.
This flag argument must be specified if any of the other arguments in this groupare specified.
--source-to-build-uri=SOURCE_TO_BUILD_URI- The URI of the repository that should be applied to this source (1st gen).
This flag argument must be specified if any of the other arguments in this groupare specified.
- Exactly one of these must be specified:
- GCLOUD WIDE FLAGS
- These flags are available to all commands:
--access-token-file,--account,--billing-project,--configuration,--flags-file,--flatten,--format,--help,--impersonate-service-account,--log-http,--project,--quiet,--trace-token,--user-output-enabled,--verbosity.Run
$gcloud helpfor details. - NOTES
- This command is currently in alpha and might change without notice. If thiscommand fails with API permission errors despite specifying the correct project,you might be trying to access an API with an invitation-only early accessallowlist. These variants are also available:
gcloudbuildstriggersupdatemanualgcloudbetabuildstriggersupdatemanual
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-01-21 UTC.