summaryrefslogtreecommitdiff
path: root/buildbot/master.cfg
diff options
context:
space:
mode:
authorDevan Carpenter <devan@taler.net>2023-09-06 15:03:03 -0400
committerDevan Carpenter <devan@taler.net>2023-09-06 15:03:03 -0400
commitc7292ac3cd56f25f8eacf4a1d4751aa7f9a3451c (patch)
tree4b4b488e77c2da15a5db9f9bb75b53249fd8a7bb /buildbot/master.cfg
parent7ee827486b6f53a1fed581e8d0eb2156658fd9fd (diff)
downloaddeployment-c7292ac3cd56f25f8eacf4a1d4751aa7f9a3451c.tar.gz
deployment-c7292ac3cd56f25f8eacf4a1d4751aa7f9a3451c.tar.bz2
deployment-c7292ac3cd56f25f8eacf4a1d4751aa7f9a3451c.zip
buildbot: clean git workspace for container builds
this change attempts to make the git preparation step in the container builders idempotent and thus more predictable
Diffstat (limited to 'buildbot/master.cfg')
-rw-r--r--buildbot/master.cfg8
1 files changed, 5 insertions, 3 deletions
diff --git a/buildbot/master.cfg b/buildbot/master.cfg
index bb00360..9fa75a2 100644
--- a/buildbot/master.cfg
+++ b/buildbot/master.cfg
@@ -1298,8 +1298,8 @@ for repo in container_repos:
# Ensure repo is cloned or clean.
# Git() will clone repo if it doesn't exist.
- # Method fresh runs 'git clean -f -f -d -x', if checkout already exists.
- # Only works with mode='full'
+ # Method clobber removes directory and makes a fresh clone.
+ # Shallow set to "True" defaults to a depth of 1.
# Will checkout value of "branch" property from job properties.
# https://docs.buildbot.net/latest/manual/configuration/steps/source_git.html
container_factory.addStep(Git(
@@ -1307,7 +1307,9 @@ for repo in container_repos:
repourl=REPO_URL,
branch=util.Interpolate('%(src::branch)s'),
mode='full',
- method='fresh',
+ method='clobber',
+ shallow=True,
+ submodules=True,
haltOnFailure=True,
))