Support building arbitrary branches

This commit is contained in:
2019-08-30 18:11:29 +02:00
parent 42b23d1c93
commit 21d8fa089a
2 changed files with 11 additions and 7 deletions

View File

@@ -6,9 +6,6 @@
# List of the branches being built automatically overnight
NIGHT_SCHEDULE_BRANCHES = ["master"]
# List of the branches available for force build
FORCE_SCHEDULE_BRANCHES = ["master", "experimental-build"]
# Dictionary that the buildmaster pays attention to.
c = BuildmasterConfig = {}
@@ -75,11 +72,17 @@ def schedule_force_build(name):
builderNames=[name],
codebases=[forcesched.CodebaseParameter(
codebase="blender",
branch=forcesched.ChoiceStringParameter(
branch=forcesched.StringParameter(
name="branch",
choices=FORCE_SCHEDULE_BRANCHES,
label="Branch:",
default="master"),
# Do not hide revision, can be handy!
# Hide revision. We don't want to allow anyone to overwrite the
# master build with an older version. Could be added back once we
# have authentication.
revision=forcesched.FixedParameter(
name="revision",
default="",
hide=True),
repository=forcesched.FixedParameter(
name="repository",
default="",

View File

@@ -122,7 +122,8 @@ if not branch or branch == 'master':
elif branch == 'experimental-build':
directory = os.path.join(download_prefix, "experimental")
else:
directory = download_prefix
directory = os.path.join(download_prefix, branch)
os.makedirs(directory, exist_ok=True)
try:
filename = os.path.join(directory, packagename)