fix
This commit is contained in:
@@ -256,10 +256,11 @@ def get_results(config, files, root_dir):
|
||||
if "ts" in files or "js" in files:
|
||||
set_js_stages(stages, config, files, root_dir)
|
||||
for stage in ["prepare", "lint", "build", "test", "publish"]:
|
||||
if "on-{stage}.yaml" in config["files"]:
|
||||
stages[stage] = ["custom"]
|
||||
if len(stages[stage])>0:
|
||||
append_stage(stages, "global", "on-{stage}".format(stage = stage), config["files"])
|
||||
if "{stage}-custom.yaml" in config["files"]:
|
||||
stages[stage].append("{stage}-custom")
|
||||
# Unsupported by tekton... yet :P
|
||||
#if len(stages[stage])>0:
|
||||
# append_stage(stages, "global", "on-{stage}".format(stage = stage), config["files"])
|
||||
return stages, args
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user