diff options
author | Devan Carpenter <devan@taler.net> | 2023-09-06 15:03:03 -0400 |
---|---|---|
committer | Devan Carpenter <devan@taler.net> | 2023-09-06 15:03:03 -0400 |
commit | c7292ac3cd56f25f8eacf4a1d4751aa7f9a3451c (patch) | |
tree | 4b4b488e77c2da15a5db9f9bb75b53249fd8a7bb | |
parent | 7ee827486b6f53a1fed581e8d0eb2156658fd9fd (diff) | |
download | deployment-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
-rw-r--r-- | buildbot/master.cfg | 8 |
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, )) |