def jenkinsNamePersister(jenkins, wrapFmt, uuid):
def persist(step, props):
ret = BobState().getJenkinsByNameDirectory(
jenkins, wrapFmt(step, props), step.getVariantId())
if uuid: ret = ret + "-" + uuid
return ret
def fmt(step, mode, props):
if mode == 'workspace':
return persist(step, props)
else:
assert mode == 'exec'
if step.getSandbox() is None:
return os.path.join("$PWD", quote(persist(step, props)))
else:
return os.path.join("/bob", asHexStr(step.getVariantId()), "workspace")
return fmt
评论列表
文章目录