- NAME
-
- gcloud alpha builds triggers import - import a build trigger
- SYNOPSIS
-
-
gcloud alpha builds triggers import
--source
=PATH
[GCLOUD_WIDE_FLAG …
]
-
- DESCRIPTION
-
(ALPHA)
Import a build trigger. - REQUIRED FLAGS
-
--source
=PATH
- File path where trigger should be imported from.
- GCLOUD WIDE FLAGS
-
These flags are available to all commands:
--account
,--billing-project
,--configuration
,--flags-file
,--flatten
,--format
,--help
,--impersonate-service-account
,--log-http
,--project
,--quiet
,--trace-token
,--user-output-enabled
,--verbosity
.Run
$ gcloud help
for details. - EXAMPLES
-
To import a trigger from a file:
cat > trigger.yaml <<EOF
name: my-trigger github: owner: GoogleCloudPlatform name: cloud-builders push: branch: .* EOFgcloud alpha builds triggers import --source=trigger.yaml
- NOTES
-
This command is currently in ALPHA and may change without notice. If this
command fails with API permission errors despite specifying the right project,
you may be trying to access an API with an invitation-only early access
allowlist. This variant is also available:
gcloud beta builds triggers import
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-12-15 UTC.