####### CHANGESOURCES
# find targets
-targets = set()
+targets = dict()
def populateTargets():
cwd=sourcegit,
)
+ targets[branch] = set()
while True:
line = findtargets.stdout.readline()
if not line:
break
ta = line.decode().strip().split(" ")
- targets.add(ta[0])
+ targets[branch].add(ta[0])
subprocess.call(["rm", "-rf", sourcegit])
name="target",
label="Build target",
default="all",
- choices=["all"] + list(targets),
+ choices=["all"] + [t for b in branchNames for t in targets[b]],
),
TagChoiceParameter(name="tag", label="Build tag", default=""),
],
# NB the phase1 build factory assumes workers are single-build only
-for target in targets:
+def prepareFactory(target):
ts = target.split("/")
factory = BuildFactory()
)
)
- for brname in branchNames:
+ return factory
+
+
+for brname in branchNames:
+ for target in targets[brname]:
bldrname = brname + "_" + target
c["builders"].append(
BuilderConfig(
name=bldrname,
workernames=workerNames,
- factory=factory,
+ factory=prepareFactory(target),
tags=[
brname,
],