Skip to contentSkip to conversation

ci: Include cip-based branches

PATCH New Jan Kiszka 1 participant 1 message Jan 21

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 ci: Include cip-based branches

From: Jan Kiszka <[email protected]>

If a dovetail branch is based on the CIP kernel, it carries an additional "-cip". Account for that.

---
 ci/ci-dovetail.yml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
ci/ci-dovetail.yml +3 -3
index 2049e9c..8332aa4 100644
@@ -23,14 +23,14 @@ set-vars:
   image: debian:trixie-slim
   script:
     - |
-      KERNEL_VERSION=$(echo "$CI_COMMIT_BRANCH" | sed -nE 's/^v([0-9]+\.[0-9]+)(\.y)?-dovetail-rebase$/\1/p' || echo "unknown")
+      KERNEL_VERSION=$(echo "$CI_COMMIT_BRANCH" | sed -nE 's/^v([0-9]+\.[0-9]+)(\.y)?(-cip)?-dovetail-rebase$/\1/p' || echo "unknown")
       echo "KERNEL_VERSION: $KERNEL_VERSION"
       { echo "KERNEL_VERSION=$KERNEL_VERSION"; } > vars.env
   artifacts:
     reports:
       dotenv: vars.env
   rules:
-    - if: '$CI_COMMIT_BRANCH =~ /^v(5\.(10|15)|6\.(1|12))(\.y)?-dovetail-rebase$/'
+    - if: '$CI_COMMIT_BRANCH =~ /^v(5\.(10|15)|6\.(1|12))(\.y)?(-cip)?-dovetail-rebase$/'
 
 trigger-xenomai-images:
   stage: trigger_xenomai_images
@@ -46,4 +46,4 @@ trigger-xenomai-images:
     KERNEL_VERSION_WITH_QEMU: $KERNEL_VERSION
     ONLY_RUN: xenomai-3/dovetail
   rules:
-    - if: '$CI_COMMIT_BRANCH =~ /^v(5\.(10|15)|6\.(1|12))(\.y)?-dovetail-rebase$/'
+    - if: '$CI_COMMIT_BRANCH =~ /^v(5\.(10|15)|6\.(1|12))(\.y)?(-cip)?-dovetail-rebase$/'
Signature · 1 line
2.51.0