[xenomai-images][PATCH 8/9] ci: Factor out common bridge jobs
Jan Kiszka
jan.kiszka at siemens.com
Wed May 12 10:32:22 CEST 2021
From: Jan Kiszka <jan.kiszka at siemens.com>
Further reduces the duplicate parts in
child_pipelines_[no_]artifacts.yml.
Signed-off-by: Jan Kiszka <jan.kiszka at siemens.com>
---
ci/child_pipelines_artifacts.yml | 14 ++++++--------
ci/child_pipelines_common.yml | 19 +++++++++++++++++++
ci/child_pipelines_no_artifacts.yml | 14 ++++++--------
3 files changed, 31 insertions(+), 16 deletions(-)
create mode 100644 ci/child_pipelines_common.yml
diff --git a/ci/child_pipelines_artifacts.yml b/ci/child_pipelines_artifacts.yml
index eb97f31..1dd856c 100644
--- a/ci/child_pipelines_artifacts.yml
+++ b/ci/child_pipelines_artifacts.yml
@@ -8,29 +8,27 @@
#
# SPDX-License-Identifier: MIT
#
-stages:
- - parent
+
+include:
+ - local: '/ci/child_pipelines_common.yml'
stable/v3.0.x:
- stage: parent
+ extends: .parent
trigger:
include:
- local: '/ci/artifacts.yml'
- local: '/ci/xenomai_3_0_x.yml'
- strategy: depend
stable/v3.1.x:
- stage: parent
+ extends: .parent
trigger:
include:
- local: '/ci/artifacts.yml'
- local: '/ci/xenomai_3_1_x.yml'
- strategy: depend
next:
- stage: parent
+ extends: .parent
trigger:
include:
- local: '/ci/artifacts.yml'
- local: '/ci/xenomai_next.yml'
- strategy: depend
diff --git a/ci/child_pipelines_common.yml b/ci/child_pipelines_common.yml
new file mode 100644
index 0000000..d742041
--- /dev/null
+++ b/ci/child_pipelines_common.yml
@@ -0,0 +1,19 @@
+#
+# Xenomai Real-Time System
+#
+# Copyright (c) Siemens AG, 2019 - 2021
+#
+# Authors:
+# Quirin Gylstorff <quirin.gylstorff at siemens.com>
+# Jan Kiszka <jan.kiszka at siemens.com>
+#
+# SPDX-License-Identifier: MIT
+#
+
+stages:
+ - parent
+
+.parent:
+ stage: parent
+ trigger:
+ strategy: depend
diff --git a/ci/child_pipelines_no_artifacts.yml b/ci/child_pipelines_no_artifacts.yml
index 2ff4d7b..c90204d 100644
--- a/ci/child_pipelines_no_artifacts.yml
+++ b/ci/child_pipelines_no_artifacts.yml
@@ -8,29 +8,27 @@
#
# SPDX-License-Identifier: MIT
#
-stages:
- - parent
+
+include:
+ - local: '/ci/child_pipelines_common.yml'
stable/v3.0.x:
- stage: parent
+ extends: .parent
trigger:
include:
- local: '/ci/no-artifacts.yml'
- local: '/ci/xenomai_3_0_x.yml'
- strategy: depend
stable/v3.1.x:
- stage: parent
+ extends: .parent
trigger:
include:
- local: '/ci/no-artifacts.yml'
- local: '/ci/xenomai_3_1_x.yml'
- strategy: depend
next:
- stage: parent
+ extends: .parent
trigger:
include:
- local: '/ci/no-artifacts.yml'
- local: '/ci/xenomai_next.yml'
- strategy: depend
--
2.26.2
More information about the Xenomai
mailing list