else:
return False
+def IsExpireRequested(step):
+ return not IsCleanupRequested(step)
+
def IsTaggingRequested(step):
val = step.getProperty("tag")
if val and re.match("^[0-9]+\.[0-9]+\.[0-9]+(?:-rc[0-9]+)?$", val):
# expire tree if needed
if tree_expire > 0:
factory.addStep(FileDownload(
+ doStepIf = IsExpireRequested,
mastersrc = "expire.sh",
slavedest = "../expire.sh",
mode = 0755))
command = ["./expire.sh", str(tree_expire)],
workdir = ".",
haltOnFailure = True,
+ doStepIf = IsExpireRequested,
timeout = 2400))
# cleanup.sh if needed