HEX
Server: Apache/2.4.65 (Ubuntu)
System: Linux ielts-store-v2 6.8.0-1036-gcp #38~22.04.1-Ubuntu SMP Thu Aug 14 01:19:18 UTC 2025 x86_64
User: root (0)
PHP: 7.2.34-54+ubuntu20.04.1+deb.sury.org+1
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Upload Files
File: //snap/google-cloud-cli/current/help/man/man1/gcloud_beta_builds_triggers_update_pubsub.1
.TH "GCLOUD_BETA_BUILDS_TRIGGERS_UPDATE_PUBSUB" 1



.SH "NAME"
.HP
gcloud beta builds triggers update pubsub \- update a Pub/Sub trigger used by Cloud Build



.SH "SYNOPSIS"
.HP
\f5gcloud beta builds triggers update pubsub\fR (\fITRIGGER\fR\ :\ \fB\-\-region\fR=\fIREGION\fR) (\fB\-\-trigger\-config\fR=\fIPATH\fR\ |\ \fB\-\-description\fR=\fIDESCRIPTION\fR\ \fB\-\-[no\-]require\-approval\fR\ \fB\-\-service\-account\fR=\fISERVICE_ACCOUNT\fR\ \fB\-\-topic\fR=\fITOPIC\fR\ \fB\-\-clear\-subscription\-filter\fR\ |\ \fB\-\-subscription\-filter\fR=\fISUBSCRIPTION_FILTER\fR\ \fB\-\-clear\-substitutions\fR\ |\ \fB\-\-remove\-substitutions\fR=[\fIKEY\fR,...]\ |\ \fB\-\-update\-substitutions\fR=[\fIKEY\fR=\fIVALUE\fR,...]\ \fB\-\-inline\-config\fR=\fIPATH\fR\ |\ [\fB\-\-dockerfile\fR=\fIDOCKERFILE\fR\ :\ \fB\-\-dockerfile\-dir\fR=\fIDOCKERFILE_DIR\fR\ \fB\-\-dockerfile\-image\fR=\fIDOCKERFILE_IMAGE\fR]\ |\ \fB\-\-git\-file\-source\-branch\fR=\fIGIT_FILE_SOURCE_BRANCH\fR\ |\ \fB\-\-git\-file\-source\-tag\fR=\fIGIT_FILE_SOURCE_TAG\fR\ \fB\-\-git\-file\-source\-github\-enterprise\-config\fR=\fIGIT_FILE_SOURCE_GITHUB_ENTERPRISE_CONFIG\fR\ \fB\-\-git\-file\-source\-path\fR=\fIPATH\fR\ \fB\-\-git\-file\-source\-repo\-type\fR=\fIGIT_FILE_SOURCE_REPO_TYPE\fR\ \fB\-\-git\-file\-source\-uri\fR=\fIURL\fR\ \fB\-\-source\-to\-build\-branch\fR=\fISOURCE_TO_BUILD_BRANCH\fR\ |\ \fB\-\-source\-to\-build\-tag\fR=\fISOURCE_TO_BUILD_TAG\fR\ \fB\-\-source\-to\-build\-github\-enterprise\-config\fR=\fISOURCE_TO_BUILD_GITHUB_ENTERPRISE_CONFIG\fR\ \fB\-\-source\-to\-build\-repo\-type\fR=\fISOURCE_TO_BUILD_REPO_TYPE\fR\ \fB\-\-source\-to\-build\-uri\fR=\fISOURCE_TO_BUILD_URI\fR) [\fIGCLOUD_WIDE_FLAG\ ...\fR]



.SH "DESCRIPTION"

\fB(BETA)\fR Update a Pub/Sub trigger used by Cloud Build.



.SH "EXAMPLES"

To update the branch from which the trigger clones:

.RS 2m
$ gcloud beta builds triggers update pubsub my\-trigger \e
    \-\-source\-to\-build\-branch=my\-branch
.RE

To update the topic:

.RS 2m
$ gcloud beta builds triggers update pubsub my\-trigger \e
    \-\-topic=projects/my\-project/topics/my\-topic
.RE

To update the substitutions of the trigger:.RS 2m
$ gcloud beta builds triggers update pubsub my\-trigger \e
    \-\-update\-substitutions=_REPO_NAME=my\-repo,_BRANCH_NAME=master

.RE



.SH "POSITIONAL ARGUMENTS"

.RS 2m
.TP 2m

Trigger resource \- Build Trigger. The arguments in this group can be used to
specify the attributes of this resource. (NOTE) Some attributes are not given
arguments in this group but can be set in other ways.

To set the \f5project\fR attribute:
.RS 2m
.IP "\(em" 2m
provide the argument \f5TRIGGER\fR on the command line with a fully specified
name;
.IP "\(em" 2m
provide the argument \f5\-\-project\fR on the command line;
.IP "\(em" 2m
set the property \f5core/project\fR.
.RE
.sp

This must be specified.


.RS 2m
.TP 2m
\fITRIGGER\fR

ID of the trigger or fully qualified identifier for the trigger.

To set the \f5trigger\fR attribute:
.RS 2m
.IP "\(bu" 2m
provide the argument \f5TRIGGER\fR on the command line.
.RE
.sp

This positional argument must be specified if any of the other arguments in this
group are specified.

.TP 2m
\fB\-\-region\fR=\fIREGION\fR

The Cloud location for the trigger.

To set the \f5region\fR attribute:
.RS 2m
.IP "\(bu" 2m
provide the argument \f5TRIGGER\fR on the command line with a fully specified
name;
.IP "\(bu" 2m
provide the argument \f5\-\-region\fR on the command line;
.IP "\(bu" 2m
set the property \f5builds/region\fR.
.RE
.sp


.RE
.RE
.sp

.SH "REQUIRED FLAGS"

.RS 2m
.TP 2m

Exactly one of these must be specified:


.RS 2m
.TP 2m
\fB\-\-trigger\-config\fR=\fIPATH\fR

Path to Build Trigger config file (JSON or YAML format). For more details, see
https://cloud.google.com/cloud\-build/docs/api/reference/rest/v1/projects.triggers#BuildTrigger

.TP 2m

Flag based trigger configuration


.RS 2m
.TP 2m
\fB\-\-description\fR=\fIDESCRIPTION\fR

Build trigger description.

.TP 2m
\fB\-\-[no\-]require\-approval\fR

Require manual approval for triggered builds. Use \fB\-\-require\-approval\fR to
enable and \fB\-\-no\-require\-approval\fR to disable.

.TP 2m
\fB\-\-service\-account\fR=\fISERVICE_ACCOUNT\fR

The service account used for all user\-controlled operations including
UpdateBuildTrigger, RunBuildTrigger, CreateBuild, and CancelBuild. If no service
account is set, then the standard Cloud Build service account
([PROJECT_NUM]@system.gserviceaccount.com) is used instead. Format:
\f5projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT_ID_OR_EMAIL}\fR.

.TP 2m
\fB\-\-topic\fR=\fITOPIC\fR

The topic to which this trigger should subscribe.

.TP 2m

At most one of these can be specified:


.RS 2m
.TP 2m
\fB\-\-clear\-subscription\-filter\fR

Clear existing subscription filter.

.TP 2m
\fB\-\-subscription\-filter\fR=\fISUBSCRIPTION_FILTER\fR

CEL filter expression for the trigger. See
https://cloud.google.com/build/docs/filter\-build\-events\-using\-cel for more
details.

.RE
.sp
.TP 2m

At most one of these can be specified:


.RS 2m
.TP 2m
\fB\-\-clear\-substitutions\fR

Clear existing substitutions.

.TP 2m
\fB\-\-remove\-substitutions\fR=[\fIKEY\fR,...]

Remove existing substitutions if present.

.TP 2m
\fB\-\-update\-substitutions\fR=[\fIKEY\fR=\fIVALUE\fR,...]

Update or add to existing substitutions. Substitutions are parameters to be
substituted or add in the build specification.

For example (using some nonsensical substitution keys; all keys must begin with
an underscore):

.RS 2m
$ gcloud builds triggers update ...
    \-\-update\-substitutions _FAVORITE_COLOR=blue,_NUM_CANDIES=10
.RE

This will add the provided substitutions to the existing substitutions and
results in a build where every occurrence of \f5${_FAVORITE_COLOR}\fR in certain
fields is replaced by "blue", and similarly for \f5${_NUM_CANDIES}\fR and "10".

Only the following built\-in variables can be specified with the
\f5\-\-substitutions\fR flag: 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

.RE
.sp
.TP 2m

At most one of these can be specified:


.RS 2m
.TP 2m
\fB\-\-inline\-config\fR=\fIPATH\fR

Local path to a YAML or JSON file containing a build configuration.

.TP 2m

Dockerfile build configuration flags


.RS 2m
.TP 2m
\fB\-\-dockerfile\fR=\fIDOCKERFILE\fR

Path of Dockerfile to use for builds in the repository.

If specified, a build config will be generated to run docker build using the
specified file.

The filename is relative to the Dockerfile directory.

This flag argument must be specified if any of the other arguments in this group
are specified.

.TP 2m
\fB\-\-dockerfile\-dir\fR=\fIDOCKERFILE_DIR\fR

Location of the directory containing the Dockerfile in the repository.

The directory will also be used as the Docker build context.

.TP 2m
\fB\-\-dockerfile\-image\fR=\fIDOCKERFILE_IMAGE\fR

Docker image name to build.

If not specified, gcr.io/PROJECT/github.com/REPO_OWNER/REPO_NAME:$COMMIT_SHA
will be used.

Use a build configuration (cloudbuild.yaml) file for building multiple images in
a single trigger.

.RE
.sp
.TP 2m

Build file source flags


.RS 2m
.TP 2m

At most one of these can be specified:


.RS 2m
.TP 2m
\fB\-\-git\-file\-source\-branch\fR=\fIGIT_FILE_SOURCE_BRANCH\fR

The branch of the repository to clone when trigger is invoked.

.TP 2m
\fB\-\-git\-file\-source\-tag\fR=\fIGIT_FILE_SOURCE_TAG\fR

The tag of the repository to clone when trigger is invoked.

.RE
.sp
.TP 2m

At most one of these can be specified:


.RS 2m
.TP 2m
\fB\-\-git\-file\-source\-github\-enterprise\-config\fR=\fIGIT_FILE_SOURCE_GITHUB_ENTERPRISE_CONFIG\fR

The resource name of the GitHub Enterprise config that should be applied to this
source.

.TP 2m
\fB\-\-git\-file\-source\-path\fR=\fIPATH\fR

The file in the repository to clone when trigger is invoked.

.TP 2m
\fB\-\-git\-file\-source\-repo\-type\fR=\fIGIT_FILE_SOURCE_REPO_TYPE\fR

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 group
are specified.

.TP 2m
\fB\-\-git\-file\-source\-uri\fR=\fIURL\fR

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 group
are specified.

.RE
.RE
.RE
.sp
.TP 2m

At most one of these can be specified:


.RS 2m
.TP 2m
\fB\-\-source\-to\-build\-branch\fR=\fISOURCE_TO_BUILD_BRANCH\fR

Branch to build.

.TP 2m
\fB\-\-source\-to\-build\-tag\fR=\fISOURCE_TO_BUILD_TAG\fR

Tag to build.

.RE
.sp
.TP 2m

At most one of these can be specified:


.RS 2m
.TP 2m
\fB\-\-source\-to\-build\-github\-enterprise\-config\fR=\fISOURCE_TO_BUILD_GITHUB_ENTERPRISE_CONFIG\fR

The resource name of the GitHub Enterprise config that should be applied to this
source (1st gen). Format:
projects/{project}/locations/{location}/githubEnterpriseConfigs/{id} or
projects/{project}/githubEnterpriseConfigs/{id}

.TP 2m
\fB\-\-source\-to\-build\-repo\-type\fR=\fISOURCE_TO_BUILD_REPO_TYPE\fR

Type of the repository (1st gen). Currently only GitHub and Cloud Source
Repository types are supported.

This flag argument must be specified if any of the other arguments in this group
are specified.

.TP 2m
\fB\-\-source\-to\-build\-uri\fR=\fISOURCE_TO_BUILD_URI\fR

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 group
are specified.


.RE
.RE
.RE
.RE
.sp

.SH "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 \fB$ gcloud help\fR for details.



.SH "NOTES"

This command is currently in beta and might change without notice. These
variants are also available:

.RS 2m
$ gcloud builds triggers update pubsub
.RE

.RS 2m
$ gcloud alpha builds triggers update pubsub
.RE