Cloud Build V1 API - Class Google::Cloud::Build::V1::Dependency::GitSourceDependency (v1.14.0)

Reference documentation and code samples for the Cloud Build V1 API class Google::Cloud::Build::V1::Dependency::GitSourceDependency.

Represents a git repository as a build dependency.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#depth

def depth() -> ::Integer
Returns
  • (::Integer) — Optional. How much history should be fetched for the build (default 1, -1 for all history).

#depth=

def depth=(value) -> ::Integer
Parameter
  • value (::Integer) — Optional. How much history should be fetched for the build (default 1, -1 for all history).
Returns
  • (::Integer) — Optional. How much history should be fetched for the build (default 1, -1 for all history).

#dest_path

def dest_path() -> ::String
Returns
  • (::String) — Required. Where should the files be placed on the worker.

#dest_path=

def dest_path=(value) -> ::String
Parameter
  • value (::String) — Required. Where should the files be placed on the worker.
Returns
  • (::String) — Required. Where should the files be placed on the worker.

#fetch_tags

def fetch_tags() -> ::Boolean
Returns
  • (::Boolean) — Optional. True if remote tags should be fetched too (default false). Note: when depth is 1 (default), git fetch only retrieves tags pointing to commits within the shallow boundary. Set depth to -1 to fetch all historical tags.

#fetch_tags=

def fetch_tags=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Optional. True if remote tags should be fetched too (default false). Note: when depth is 1 (default), git fetch only retrieves tags pointing to commits within the shallow boundary. Set depth to -1 to fetch all historical tags.
Returns
  • (::Boolean) — Optional. True if remote tags should be fetched too (default false). Note: when depth is 1 (default), git fetch only retrieves tags pointing to commits within the shallow boundary. Set depth to -1 to fetch all historical tags.

#recurse_submodules

def recurse_submodules() -> ::Boolean
Returns
  • (::Boolean) — Optional. True if submodules should be fetched too (default false).

#recurse_submodules=

def recurse_submodules=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Optional. True if submodules should be fetched too (default false).
Returns
  • (::Boolean) — Optional. True if submodules should be fetched too (default false).

#repository

def repository() -> ::Google::Cloud::Build::V1::Dependency::GitSourceRepository
Returns

#repository=

def repository=(value) -> ::Google::Cloud::Build::V1::Dependency::GitSourceRepository
Parameter
Returns

#revision

def revision() -> ::String
Returns
  • (::String) — Required. The revision that we will fetch the repo at.

#revision=

def revision=(value) -> ::String
Parameter
  • value (::String) — Required. The revision that we will fetch the repo at.
Returns
  • (::String) — Required. The revision that we will fetch the repo at.