Class: Google::Cloud::Build::V1::GitSource
- Inherits:
-
Object
- Object
- Google::Cloud::Build::V1::GitSource
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb
Overview
Location of the source in any accessible Git repository.
Instance Attribute Summary collapse
-
#dir ⇒ ::String
Directory, relative to the source root, in which to run the build.
-
#revision ⇒ ::String
The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref.
-
#url ⇒ ::String
Location of the Git repo to build.
Instance Attribute Details
#dir ⇒ ::String
Returns 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.
120 121 122 123 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 120 class GitSource include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#revision ⇒ ::String
Returns 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.
120 121 122 123 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 120 class GitSource include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#url ⇒ ::String
Returns Location of the Git repo to build.
This will be used as a git remote
, see
https://git-scm.com/docs/git-remote.
120 121 122 123 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 120 class GitSource include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |