Class GitSourceDependency (3.39.0)

GitSourceDependency(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Represents a git repository as a build dependency.

Attributes

Name Description
repository google.cloud.devtools.cloudbuild_v1.types.Dependency.GitSourceRepository
Required. The kind of repo (url or dev connect).
revision str
Required. The revision that we will fetch the repo at.
recurse_submodules bool
Optional. True if submodules should be fetched too (default false).
depth int
Optional. How much history should be fetched for the build (default 1, -1 for all history).
dest_path str
Required. Where should the files be placed on the worker.
fetch_tags bool
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.