The Git
build step clones or updates a Git repository and checks out the specified branch or revision. Note
that the buildbot supports Git version 1.2.0 and later: earlier
versions (such as the one shipped in Ubuntu 'Dapper') do not support
the git init command that the buildbot uses.
The Git step takes the following arguments:
repourl
branch
ignore_ignores
submodules
reference
shallow
--depth 1
). If the
user/scheduler asks for a specific revision, this parameter is ignored.
progress
--progress
) flag to (git fetch
). This
solves issues of long fetches being killed due to lack of output, but requires
Git 1.7.2 or later.
This Source step integrates with GerritChangeSource, and will automatically use
Gerrit's "virtual branch" (refs/changes/*
) to download the additionnal changes
introduced by a pending changeset.
Gerrit integration can be also triggered using forced build with gerrit_change
property with value in format: change_number/patchset_number
.