public interface GitSourceOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getDir()
public abstract String getDir()Optional. 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.
string dir = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The dir. |
getDirBytes()
public abstract ByteString getDirBytes()Optional. 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.
string dir = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for dir. |
getRevision()
public abstract String getRevision()Optional. The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref.
Cloud Build uses git fetch to fetch the revision from the Git
repository; therefore make sure that the string you provide for revision
is parsable by the command. For information on string values accepted by
git fetch, see
https://git-scm.com/docs/gitrevisions#_specifying_revisions. For
information on git fetch, see https://git-scm.com/docs/git-fetch.
string revision = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The revision. |
getRevisionBytes()
public abstract ByteString getRevisionBytes()Optional. The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref.
Cloud Build uses git fetch to fetch the revision from the Git
repository; therefore make sure that the string you provide for revision
is parsable by the command. For information on string values accepted by
git fetch, see
https://git-scm.com/docs/gitrevisions#_specifying_revisions. For
information on git fetch, see https://git-scm.com/docs/git-fetch.
string revision = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for revision. |
getUrl()
public abstract String getUrl()Required. Location of the Git repo to build.
This will be used as a git remote, see
https://git-scm.com/docs/git-remote.
string url = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The url. |
getUrlBytes()
public abstract ByteString getUrlBytes()Required. Location of the Git repo to build.
This will be used as a git remote, see
https://git-scm.com/docs/git-remote.
string url = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for url. |