Reference documentation and code samples for the Cloud Build V1 API class Google::Cloud::Build::V1::GitSource.
Location of the source in any accessible Git repository.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#dir
def dir() -> ::String
-
(::String) — 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.
#dir=
def dir=(value) -> ::String
-
value (::String) — 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) — 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.
#revision
def revision() -> ::String
-
(::String) — 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 forrevision
is parsable by the command. For information on string values accepted bygit fetch
, see https://git-scm.com/docs/gitrevisions#_specifying_revisions. For information ongit fetch
, see https://git-scm.com/docs/git-fetch.
#revision=
def revision=(value) -> ::String
-
value (::String) — 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 forrevision
is parsable by the command. For information on string values accepted bygit fetch
, see https://git-scm.com/docs/gitrevisions#_specifying_revisions. For information ongit fetch
, see https://git-scm.com/docs/git-fetch.
-
(::String) — 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 forrevision
is parsable by the command. For information on string values accepted bygit fetch
, see https://git-scm.com/docs/gitrevisions#_specifying_revisions. For information ongit fetch
, see https://git-scm.com/docs/git-fetch.
#url
def url() -> ::String
-
(::String) — Location of the Git repo to build.
This will be used as a
git remote
, see https://git-scm.com/docs/git-remote.
#url=
def url=(value) -> ::String
-
value (::String) — Location of the Git repo to build.
This will be used as a
git remote
, see https://git-scm.com/docs/git-remote.
-
(::String) — Location of the Git repo to build.
This will be used as a
git remote
, see https://git-scm.com/docs/git-remote.