git_repo plugin
git_repo - plugin for git repo handling
Usage:
# Specify the git_repo source kind
kind: git_repo
# Specify the repository url, using an alias defined
# in your project configuration is recommended.
url: upstream:repo.git
# Optionally specify a tracking branch or tag, this
# will be used to update the 'ref' when refreshing the pipeline.
# Tracking supports Unix shell-style globs, as implemented by Python's
# fnmatch module, that can be used to filter wanted tag from repository.
track: release-*
# Specify the commit checksum, this must be specified in order
# to checkout sources and build, but can be automatically
# updated if the 'track' attribute was specified.
ref: release-3.0-0-gcad743283c43c776d03ae05578f353f728be62e3
# Specify tracks to exclude in case there's eg bad tags by upstream
exclude:
- release-3.0.1
# Declare the format of ref after tracking. When tracking branches,
# fetching will be required if sha1 is not used. If git-describe is
# given, ref follows output of `git describe`. Regardless of format,
# `git describe` and `git log -1` are expected to work in the sandbox.
ref-format: git-describe