* [PATCH v2] ci: Switch to native trigger
@ 2023-01-10 14:06 Jan Kiszka
0 siblings, 0 replies; only message in thread
From: Jan Kiszka @ 2023-01-10 14:06 UTC (permalink / raw)
To: Xenomai
From: Jan Kiszka <jan.kiszka@siemens.com>
Now that we are running both pipelines on the same server, we can also
make use of native gitlab-ci trigger mechanism. This both obsoletes the
need to configure a token and avoids starting a real job on a real
runner, just for calling curl.
This also improves the visualization of the two related pipelines in the
gitlab UI.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
Changes in v2:
- keep triggering "next" pipeline of xenomai-image
.gitlab-ci.yml | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4d207dbd61..a80b4dc277 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -257,11 +257,10 @@ i386-userland:
trigger-xenomai-images:
stage: test
- image: curlimages/curl
- script:
- - curl -X POST -F "token=${XENOMAI_IMAGES_TOKEN}"
- -F "ref=${XENOMAI_IMAGES_BRANCH}"
- -F "variables[ONLY_RUN]=${CI_COMMIT_BRANCH}"
- https://source.denx.de/api/v4/projects/479/trigger/pipeline
+ variables:
+ ONLY_RUN: ${CI_COMMIT_BRANCH}
+ trigger:
+ project: xenomai/xenomai-images
+ branch: next
rules:
- - if: '$XENOMAI_IMAGES_TOKEN != "" && ($CI_COMMIT_BRANCH == "next" || $CI_COMMIT_BRANCH =~ /stable\/.*/)'
+ - if: '$CI_COMMIT_BRANCH == "next" || $CI_COMMIT_BRANCH =~ /stable\/.*/'
--
2.35.3
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2023-01-10 14:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-10 14:06 [PATCH v2] ci: Switch to native trigger Jan Kiszka
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).