Caution
This page documents the latest, unreleased version of Buildbot. For documentation for released versions, see https://docs.buildbot.net/current/.
2.5.12.15. GitCommit
- class buildbot.steps.source.git.GitCommit
The GitCommit
build step adds files and commits modifications in your local Git repository.
The GitCommit step takes the following arguments:
workdir
(required) The path to the local repository to push commits from.
messages
(required) List of message that will be created with the commit. Correspond to the
-m
flag of thegit commit
command.paths
(required) List of path that will be added to the commit.
logEnviron
(optional) If this option is true (the default), then the step’s logfile will describe the environment variables on the worker. In situations where the environment is not relevant and is long, it may be easier to set
logEnviron=False
.env
(optional) A dictionary of environment strings which will be added to the child command’s environment. The usual property interpolations can be used in environment variable names and values - see Properties.
timeout
(optional) Specifies the timeout for worker-side operations, in seconds. If your repositories are particularly large, then you may need to increase this value from its default of 1200 (20 minutes).
config
(optional) A dict of git configuration settings to pass to the remote git commands.
no_verify
(optional) Specifies whether
--no-verify
option should be supplied to git. The default isFalse
.emptyCommits
(optional) One of the values
disallow
(default),create-empty-commit
, andignore
. Decides the behavior when there is nothing to be committed. The valuedisallow
will make the buildstep fail. The valuecreate-empty-commit
will create an empty commit. The valueignore
will create no commit.