Caution
This page documents the latest, unreleased version of Buildbot. For documentation for released versions, see https://docs.buildbot.net/current/.
2.5.24.3. GitCredentialOptionsο
- class buildbot.util.GitCredentialOptionsο
The following parameters are supported by the GitCredentialOptions
:
credentials
(optional, a list of strings) Each element of the list must be in the git-credential input format and will be passed as input to
git credential approve
.use_http_path
(optional, a boolean) If provided, will set the credential.useHttpPath configuration to itβs value for commands that require credentials.
Examplesο
from buildbot.plugins import util
factory.addStep(steps.Git(
repourl='https://example.com/hello-world.git', mode='incremental',
git_credentials=util.GitCredentialOptions(
credentials=[
(
"url=https://example.com/hello-world.git\n"
"username=username\n"
"password=token\n"
),
],
),
))