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

@@ -2,21 +2,28 @@ def main(ctx):
return [
stepPR(ctx, "amd64", "motsognir"),
stepPR(ctx, "arm64", "motsognir"),
stepMergeMaster(ctx, "amd64", "motsognir"),
stepMergeMaster(ctx, "arm64", "motsognir"),
stepBuildWeekly(ctx, "amd64", "motsognir"),
stepBuildWeekly(ctx, "arm64", "motsognir"),
stepMergeMaster("amd64", "motsognir"),
stepMergeMaster("arm64", "motsognir"),
stepBuildWeekly("amd64", "motsognir"),
stepBuildWeekly("arm64", "motsognir"),
stepPR(ctx, "amd64", "webtest"),
stepPR(ctx, "arm64", "webtest"),
stepMergeMaster(ctx, "amd64", "webtest"),
stepMergeMaster(ctx, "arm64", "webtest"),
stepBuildWeekly(ctx, "amd64", "webtest"),
stepBuildWeekly(ctx, "arm64", "webtest"),
stepMergeMaster("amd64", "webtest"),
stepMergeMaster("arm64", "webtest"),
stepBuildWeekly("amd64", "webtest"),
stepBuildWeekly("arm64", "webtest"),
notify(ctx),
]
def getPipelineNames(pipelines = []):
names = []
for pipeline in pipelines:
names.append(pipeline["name"])
return names
def notify(ctx):
return {
"kind": "pipeline",
@@ -81,7 +88,7 @@ def stepPR(ctx, arch, path):
}
},
],
"depends_on": [],
"depends_on": getPipelineNames([notify(ctx)]),
"trigger": {
"ref": [
"refs/pull/**",
@@ -93,7 +100,7 @@ def stepPR(ctx, arch, path):
},
}
def stepMergeMaster(ctx, arch, path):
def stepMergeMaster(arch, path):
return {
"kind": "pipeline",
"type": "docker",
@@ -120,7 +127,7 @@ def stepMergeMaster(ctx, arch, path):
}
},
],
"depends_on": [],
#"depends_on": [ "matrix-notifications" ],
"trigger": {
"ref": [
"refs/heads/master",
@@ -132,7 +139,7 @@ def stepMergeMaster(ctx, arch, path):
}
}
def stepBuildWeekly(ctx, arch, path):
def stepBuildWeekly(arch, path):
return {
"kind": "pipeline",
"type": "docker",
@@ -159,7 +166,7 @@ def stepBuildWeekly(ctx, arch, path):
}
},
],
"depends_on": [],
#"depends_on": [ "matrix-notifications" ],
"trigger": {
"ref": [
"refs/heads/master",