Compare commits

..

1 Commits

Author SHA1 Message Date
Christian Richter
4458ec8513 test seperate notify pipeline
Signed-off-by: Christian Richter <crichter@owncloud.com>
2022-05-19 13:49:28 +02:00

View File

@@ -1,14 +1,14 @@
def main(ctx): def main(ctx):
return [ return [
stepPR("amd64", "motsognir"), stepPR(ctx, "amd64", "motsognir"),
stepPR("arm64", "motsognir"), stepPR(ctx, "arm64", "motsognir"),
stepMergeMaster("amd64", "motsognir"), stepMergeMaster("amd64", "motsognir"),
stepMergeMaster("arm64", "motsognir"), stepMergeMaster("arm64", "motsognir"),
stepBuildWeekly("amd64", "motsognir"), stepBuildWeekly("amd64", "motsognir"),
stepBuildWeekly("arm64", "motsognir"), stepBuildWeekly("arm64", "motsognir"),
stepPR("amd64", "webtest"), stepPR(ctx, "amd64", "webtest"),
stepPR("arm64", "webtest"), stepPR(ctx, "arm64", "webtest"),
stepMergeMaster("amd64", "webtest"), stepMergeMaster("amd64", "webtest"),
stepMergeMaster("arm64", "webtest"), stepMergeMaster("arm64", "webtest"),
stepBuildWeekly("amd64", "webtest"), stepBuildWeekly("amd64", "webtest"),
@@ -17,6 +17,13 @@ def main(ctx):
notify(ctx), notify(ctx),
] ]
def getPipelineNames(pipelines = []):
names = []
for pipeline in pipelines:
names.append(pipeline["name"])
return names
def notify(ctx): def notify(ctx):
return { return {
"kind": "pipeline", "kind": "pipeline",
@@ -60,7 +67,7 @@ def notify(ctx):
}, },
} }
def stepPR(arch, path): def stepPR(ctx, arch, path):
return { return {
"kind": "pipeline", "kind": "pipeline",
"type": "docker", "type": "docker",
@@ -81,7 +88,7 @@ def stepPR(arch, path):
} }
}, },
], ],
#"depends_on": [ "matrix-notifications" ], "depends_on": getPipelineNames([notify(ctx)]),
"trigger": { "trigger": {
"ref": [ "ref": [
"refs/pull/**", "refs/pull/**",