Reference documentation and code samples for the Google Cloud Build V1 Client class RepoSource.
Location of the source in a Google Cloud Source Repository.
Generated from protobuf message google.devtools.cloudbuild.v1.RepoSource
Namespace
Google \ Cloud \ Build \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ project_id |
string
ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed. |
↳ repo_name |
string
Name of the Cloud Source Repository. |
↳ branch_name |
string
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 |
string
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 |
string
Explicit commit SHA to build. |
↳ dir |
string
Directory, relative to the source root, in which to run the build. This must be a relative path. If a step's |
↳ invert_regex |
bool
Only trigger a build if the revision regex does NOT match the revision regex. |
↳ substitutions |
array|Google\Protobuf\Internal\MapField
Substitutions to use in a triggered build. Should only be used with RunBuildTrigger |
getProjectId
ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
Returns | |
---|---|
Type | Description |
string |
setProjectId
ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getRepoName
Name of the Cloud Source Repository.
Returns | |
---|---|
Type | Description |
string |
setRepoName
Name of the Cloud Source Repository.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getBranchName
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
Returns | |
---|---|
Type | Description |
string |
hasBranchName
setBranchName
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
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getTagName
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
Returns | |
---|---|
Type | Description |
string |
hasTagName
setTagName
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
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getCommitSha
Explicit commit SHA to build.
Returns | |
---|---|
Type | Description |
string |
hasCommitSha
setCommitSha
Explicit commit SHA to build.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getDir
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.
Returns | |
---|---|
Type | Description |
string |
setDir
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.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getInvertRegex
Only trigger a build if the revision regex does NOT match the revision regex.
Returns | |
---|---|
Type | Description |
bool |
setInvertRegex
Only trigger a build if the revision regex does NOT match the revision regex.
Parameter | |
---|---|
Name | Description |
var |
bool
|
Returns | |
---|---|
Type | Description |
$this |
getSubstitutions
Substitutions to use in a triggered build.
Should only be used with RunBuildTrigger
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\MapField |
setSubstitutions
Substitutions to use in a triggered build.
Should only be used with RunBuildTrigger
Parameter | |
---|---|
Name | Description |
var |
array|Google\Protobuf\Internal\MapField
|
Returns | |
---|---|
Type | Description |
$this |
getRevision
Returns | |
---|---|
Type | Description |
string |