From d4af34070c463f74b1b951b292baffd34aa4be99 Mon Sep 17 00:00:00 2001
From: Rainer Kartmann <rainer.kartmann@kit.edu>
Date: Fri, 17 Nov 2023 13:26:06 +0100
Subject: [PATCH] Trigger RobotAPI downstream pipeline

---
 .gitlab-ci.yml | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d8e53904..798eecad 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -2,6 +2,7 @@ stages:
   - build-and-test
   - deploy
   - post-deploy-test
+  - downstream
 
 
 .build-and-test:
@@ -164,3 +165,18 @@ test-docker-image-jammy:
 
   rules:
     - if: $CI_COMMIT_BRANCH == "master"
+
+
+robot-api:
+  stage: downstream
+
+  variables:
+    TODO_ENV_VARIABLE: "This variable will be available to the CI pipeline of RobotAPI."
+
+  trigger:
+    project: sw/armarx/robota-api
+    # This is optional, but we could tell RobotAPI which ArmarxGui branch to use.
+    branch: master
+
+  rules:
+    - if: $CI_COMMIT_BRANCH == "master"
-- 
GitLab