This commit is contained in:
2024-04-24 14:10:58 +02:00
parent da2a6dc9c7
commit abb16e9cc9
4 changed files with 279 additions and 161 deletions

View File

@@ -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