Skip to contentSkip to conversation

ci: Do not prefix triggers from stable branches

PATCH New Jan Kiszka 1 participant 1 message Apr 17

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 ci: Do not prefix triggers from stable branches

From: Jan Kiszka <[email protected]>

The branch names already carry the version, plus xenomai-images does not expect a prefix. Will become relevant after creating a stable/v3.4.x branch from this codebase.

---
 .gitlab-ci.yml | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)
.gitlab-ci.yml +8 -4
index b82df7e436..1188222d7c 100644
@@ -268,11 +268,15 @@ i386-userland-y2038-unavailable:
 
 trigger-xenomai-images:
   stage: test
-  variables:
-    ONLY_RUN: xenomai-3/${CI_COMMIT_BRANCH}
-    TRIGGER_SOURCE: xenomai-3/${CI_COMMIT_BRANCH}
   trigger:
     project: xenomai/xenomai-images
     branch: next
   rules:
-    - if: '$CI_COMMIT_BRANCH == "next" || $CI_COMMIT_BRANCH =~ /stable\/.*/'
+    - if: '$CI_COMMIT_BRANCH == "next"'
+      variables:
+        ONLY_RUN: xenomai-3/${CI_COMMIT_BRANCH}
+        TRIGGER_SOURCE: xenomai-3/${CI_COMMIT_BRANCH}
+    - if: '$CI_COMMIT_BRANCH =~ /stable\/.*/'
+      variables:
+        ONLY_RUN: ${CI_COMMIT_BRANCH}
+        TRIGGER_SOURCE: ${CI_COMMIT_BRANCH}
Signature · 1 line
2.47.3