fix
This commit is contained in:
@@ -233,7 +233,7 @@ def get_results(config, files, root_dir):
|
||||
),
|
||||
}
|
||||
if "on-$(params.pipeline-type).yaml" in config["files"]:
|
||||
append_stage(stages, "global", "$(params.pipeline-type)", config["files"])
|
||||
append_key(stages, "global", "$(params.pipeline-type)")
|
||||
return stages, args
|
||||
|
||||
if "Dockerfile" in files:
|
||||
@@ -258,6 +258,8 @@ def get_results(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"])
|
||||
return stages, args
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user