RepoSource(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Location of the source in a Google Cloud Source Repository.
Attributes
Name | Description |
project_id |
str
ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed. |
repo_name |
str
Required. Name of the Cloud Source Repository. |
branch_name |
str
Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax |
tag_name |
str
Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax |
commit_sha |
str
Explicit commit SHA to build. |
dir |
str
Directory, relative to the source root, in which to run the build. This must be a relative path. If a step's ``dir`` is specified and is an absolute path, this value is ignored for that step's execution. |
invert_regex |
bool
Only trigger a build if the revision regex does NOT match the revision regex. |
substitutions |
Sequence[`.cloudbuild.RepoSource.SubstitutionsEntry`]
Substitutions to use in a triggered build. Should only be used with RunBuildTrigger |
Inheritance
builtins.object > proto.message.Message > RepoSourceClasses
SubstitutionsEntry
SubstitutionsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)
The abstract base class for a message.
Name | Description |
kwargs |
dict
Keys and values corresponding to the fields of the message. |
mapping |
Union[dict, `.Message`]
A dictionary or message to be used to determine the values for this message. |
ignore_unknown_fields |
Optional(bool)
If True, do not raise errors for unknown fields. Only applied if |