1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-20 13:10:18 +00:00

gcloud: Wed Dec 20 10:06:06 UTC 2023

This commit is contained in:
Automated 2023-12-20 10:06:06 +00:00
parent a990278fb3
commit 94c3362cff
127 changed files with 1438 additions and 194 deletions

View file

@ -27,6 +27,8 @@ FLAGS
supported region name (e.g. us-central1). If unset, builds/region,
which is the default region to use when working with Cloud Build
resources, is used. If builds/region is unset, region is set to global.
Note: Region must be specified in 2nd gen repo; global is not
supported.
GCLOUD WIDE FLAGS
These flags are available to all commands: --access-token-file, --account,

View file

@ -23,6 +23,8 @@ FLAGS
supported region name (e.g. us-central1). If unset, builds/region,
which is the default region to use when working with Cloud Build
resources, is used. If builds/region is unset, region is set to global.
Note: Region must be specified in 2nd gen repo; global is not
supported.
GCLOUD WIDE FLAGS
These flags are available to all commands: --access-token-file, --account,

View file

@ -27,6 +27,8 @@ FLAGS
supported region name (e.g. us-central1). If unset, builds/region,
which is the default region to use when working with Cloud Build
resources, is used. If builds/region is unset, region is set to global.
Note: Region must be specified in 2nd gen repo; global is not
supported.
LIST COMMAND FLAGS
--filter=EXPRESSION

View file

@ -28,6 +28,8 @@ FLAGS
supported region name (e.g. us-central1). If unset, builds/region,
which is the default region to use when working with Cloud Build
resources, is used. If builds/region is unset, region is set to global.
Note: Region must be specified in 2nd gen repo; global is not
supported.
--stream
If a build is ongoing, stream the logs to stdout until the build

View file

@ -146,6 +146,8 @@ FLAGS
supported region name (e.g. us-central1). If unset, builds/region,
which is the default region to use when working with Cloud Build
resources, is used. If builds/region is unset, region is set to global.
Note: Region must be specified in 2nd gen repo; global is not
supported.
--revision=REVISION
Revision to fetch from the Git repository such as a branch, a tag, a

View file

@ -5,12 +5,8 @@ NAME
SYNOPSIS
gcloud builds triggers create bitbucketserver
(--trigger-config=PATH
| [--bitbucket-server-config-resource=BITBUCKET_SERVER_CONFIG_RESOURCE --project-key=PROJECT_KEY --repo-slug=REPO_SLUG (--branch-pattern=REGEX | --tag-pattern=REGEX | [--pull-request-pattern=REGEX : --comment-control=COMMENT_CONTROL; default=CommentControlValueValuesEnum(COMMENTS_ENABLED,
1)]) (--build-config=PATH | --inline-config=PATH
| [--dockerfile=DOCKERFILE : --dockerfile-dir=DOCKERFILE_DIR;
default="/" --dockerfile-image=DOCKERFILE_IMAGE])
: --description=DESCRIPTION --ignored-files=[GLOB,...]
--included-files=[GLOB,...] --name=NAME --region=REGION
| [--bitbucket-server-config-resource=BITBUCKET_SERVER_CONFIG_RESOURCE --project-key=PROJECT_KEY --repo-slug=REPO_SLUG (--branch-pattern=REGEX | --tag-pattern=REGEX | [--pull-request-pattern=REGEX : --comment-control=COMMENT_CONTROL; default="COMMENTS_ENABLED"]) (--build-config=PATH | --inline-config=PATH | [--dockerfile=DOCKERFILE : --dockerfile-dir=DOCKERFILE_DIR; default="/" --dockerfile-image=DOCKERFILE_IMAGE]) : --description=DESCRIPTION --ignored-files=[GLOB,
...] --included-files=[GLOB,...] --name=NAME --region=REGION
--[no-]require-approval
--service-account=SERVICE_ACCOUNT --substitutions=[KEY=VALUE,...]])
[GCLOUD_WIDE_FLAG ...]
@ -90,7 +86,8 @@ REQUIRED FLAGS
supported region name (e.g. us-central1). If unset, builds/region,
which is the default region to use when working with Cloud Build
resources, is used. If builds/region is unset, region is set to
global.
global. Note: Region must be specified in 2nd gen repo; global is
not supported.
--[no-]require-approval
Require manual approval for triggered builds. Use
@ -167,7 +164,7 @@ REQUIRED FLAGS
This flag argument must be specified if any of the other
arguments in this group are specified.
--comment-control=COMMENT_CONTROL; default=CommentControlValueValuesEnum(COMMENTS_ENABLED, 1)
--comment-control=COMMENT_CONTROL; default="COMMENTS_ENABLED"
Require a repository collaborator or owner to comment '/gcbrun'
on a pull request before running the build. COMMENT_CONTROL
must be one of:

View file

@ -72,7 +72,8 @@ REQUIRED FLAGS
supported region name (e.g. us-central1). If unset, builds/region,
which is the default region to use when working with Cloud Build
resources, is used. If builds/region is unset, region is set to
global.
global. Note: Region must be specified in 2nd gen repo; global is
not supported.
--[no-]require-approval
Require manual approval for triggered builds. Use

View file

@ -6,10 +6,9 @@ SYNOPSIS
gcloud builds triggers create github
(--trigger-config=PATH | [(--branch-pattern=REGEX | --tag-pattern=REGEX
| [--pull-request-pattern=REGEX : --comment-control=COMMENT_CONTROL;
default=CommentControlValueValuesEnum(COMMENTS_ENABLED,
1)]) (--build-config=PATH | --inline-config=PATH
| [--dockerfile=DOCKERFILE : --dockerfile-dir=DOCKERFILE_DIR;
default="/"
default="COMMENTS_ENABLED"]) (--build-config=PATH
| --inline-config=PATH | [--dockerfile=DOCKERFILE
: --dockerfile-dir=DOCKERFILE_DIR; default="/"
--dockerfile-image=DOCKERFILE_IMAGE]) (--repository=REPOSITORY
| [--repo-name=REPO_NAME --repo-owner=REPO_OWNER
: --enterprise-config=ENTERPRISE_CONFIG]) : --description=DESCRIPTION
@ -47,7 +46,7 @@ EXAMPLES
--repository=projects/my-project/locations/us-central1/\
connections/my-conn/repositories/my-repo \
--pull-request-pattern="^master$" \
--build-config="cloudbuild.yaml"
--build-config="cloudbuild.yaml" --region=us-central1
REQUIRED FLAGS
Exactly one of these must be specified:
@ -82,7 +81,8 @@ REQUIRED FLAGS
supported region name (e.g. us-central1). If unset, builds/region,
which is the default region to use when working with Cloud Build
resources, is used. If builds/region is unset, region is set to
global.
global. Note: Region must be specified in 2nd gen repo; global is
not supported.
--[no-]require-approval
Require manual approval for triggered builds. Use
@ -159,7 +159,7 @@ REQUIRED FLAGS
This flag argument must be specified if any of the other
arguments in this group are specified.
--comment-control=COMMENT_CONTROL; default=CommentControlValueValuesEnum(COMMENTS_ENABLED, 1)
--comment-control=COMMENT_CONTROL; default="COMMENTS_ENABLED"
Require a repository collaborator or owner to comment '/gcbrun'
on a pull request before running the build. COMMENT_CONTROL
must be one of:

View file

@ -6,8 +6,8 @@ SYNOPSIS
gcloud builds triggers create gitlab
(--trigger-config=PATH | [(--branch-pattern=REGEX | --tag-pattern=REGEX
| [--pull-request-pattern=REGEX : --comment-control=COMMENT_CONTROL;
default=CommentControlValueValuesEnum(COMMENTS_ENABLED,
1)]) (--build-config=PATH | --inline-config=PATH
default="COMMENTS_ENABLED"]) (--build-config=PATH
| --inline-config=PATH
| [--dockerfile=DOCKERFILE --dockerfile-image=DOCKERFILE_IMAGE
: --dockerfile-dir=DOCKERFILE_DIR; default="/"])
: --description=DESCRIPTION --ignored-files=[GLOB,...]
@ -25,17 +25,18 @@ EXAMPLES
$ gcloud builds triggers create gitlab --name="my-trigger" \
--service-account="projects/my-project/serviceAccounts/my-byosa@\
my-project.iam.gserviceaccount.com" \
--repository="projects/1234/locations/global/connections/myconn/\
repositories/myrepo" --branch-pattern=".*" \
--build-config="cloudbuild.yaml"
--repository="projects/1234/locations/us-central1/connections/my\
conn/repositories/myrepo" --branch-pattern=".*" \
--build-config="cloudbuild.yaml" --region=us-central1
To create a pull request trigger with a 1st-gen repository for main:
To create a pull request trigger with a 2nd-gen repository for main:
$ gcloud builds triggers create gitlab --name="my-trigger" \
--service-account="projects/my-project/serviceAccounts/my-byosa@\
my-project.iam.gserviceaccount.com" \
--repository="projects/1234/locations/global/connections/myconn/\
repositories/myrepo" --build-config="cloudbuild.yaml"
--repository="projects/1234/locations/us-central1/connections/my\
conn/repositories/myrepo" --build-config="cloudbuild.yaml" \
--pull-request-pattern="^main$" --region=us-central1
REQUIRED FLAGS
Exactly one of these must be specified:
@ -66,7 +67,8 @@ REQUIRED FLAGS
supported region name (e.g. us-central1). If unset, builds/region,
which is the default region to use when working with Cloud Build
resources, is used. If builds/region is unset, region is set to
global.
global. Note: Region must be specified in 2nd gen repo; global is
not supported.
--repository=REPOSITORY
Repository resource (2nd gen) to use, in the format
@ -147,7 +149,7 @@ REQUIRED FLAGS
This flag argument must be specified if any of the other
arguments in this group are specified.
--comment-control=COMMENT_CONTROL; default=CommentControlValueValuesEnum(COMMENTS_ENABLED, 1)
--comment-control=COMMENT_CONTROL; default="COMMENTS_ENABLED"
Require a repository collaborator or owner to comment '/gcbrun'
on a pull request before running the build. COMMENT_CONTROL
must be one of:

View file

@ -56,7 +56,8 @@ REQUIRED FLAGS
supported region name (e.g. us-central1). If unset, builds/region,
which is the default region to use when working with Cloud Build
resources, is used. If builds/region is unset, region is set to
global.
global. Note: Region must be specified in 2nd gen repo; global is
not supported.
--[no-]require-approval
Require manual approval for triggered builds. Use

View file

@ -67,7 +67,8 @@ REQUIRED FLAGS
supported region name (e.g. us-central1). If unset, builds/region,
which is the default region to use when working with Cloud Build
resources, is used. If builds/region is unset, region is set to
global.
global. Note: Region must be specified in 2nd gen repo; global is
not supported.
--[no-]require-approval
Require manual approval for triggered builds. Use

View file

@ -73,7 +73,8 @@ REQUIRED FLAGS
supported region name (e.g. us-central1). If unset, builds/region,
which is the default region to use when working with Cloud Build
resources, is used. If builds/region is unset, region is set to
global.
global. Note: Region must be specified in 2nd gen repo; global is
not supported.
--[no-]require-approval
Require manual approval for triggered builds. Use

View file

@ -25,6 +25,8 @@ OPTIONAL FLAGS
supported region name (e.g. us-central1). If unset, builds/region,
which is the default region to use when working with Cloud Build
resources, is used. If builds/region is unset, region is set to global.
Note: Region must be specified in 2nd gen repo; global is not
supported.
GCLOUD WIDE FLAGS
These flags are available to all commands: --access-token-file, --account,

View file

@ -20,6 +20,8 @@ FLAGS
supported region name (e.g. us-central1). If unset, builds/region,
which is the default region to use when working with Cloud Build
resources, is used. If builds/region is unset, region is set to global.
Note: Region must be specified in 2nd gen repo; global is not
supported.
LIST COMMAND FLAGS
--filter=EXPRESSION