From 8a7e9c94c2f5c012669eaddbf09ccebf83e7f320 Mon Sep 17 00:00:00 2001
From: Andrii Sosiuk <andrii.sosiuk@seco.com>
Date: Fri, 15 Nov 2024 08:54:45 +0100
Subject: [PATCH] YT-291: Remove unnecessary dependencies from deploy stage.

  During the implementation of YT-93, some unrelated dependencies were
  mistakenly added to the deploy stage.
  This caused issues in the release build for certain custom projects.
  This commit removes those unnecessary dependencies.
---
 build-pipeline-yocto.yml.jinja2 | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/build-pipeline-yocto.yml.jinja2 b/build-pipeline-yocto.yml.jinja2
index 126eb6ce..dd49bffe 100644
--- a/build-pipeline-yocto.yml.jinja2
+++ b/build-pipeline-yocto.yml.jinja2
@@ -359,7 +359,6 @@ azure-documentation:
   variables:
     ASSOCIATED_PACKAGE_JOB: package-documentation
   needs:
-    - job: deploy-documentation
     - job: package-documentation
       artifacts: false
     - job: build-version
@@ -374,7 +373,6 @@ azure-{{ machine }}:
   needs:
     - job: package-{{ machine }}
       artifacts: false
-    - job: deploy-{{ machine }}
     - job: build-version
 
 {% endfor %}
@@ -419,13 +417,14 @@ deploy-firmware-package-{{ machine }}:
     ASSOCIATED_PACKAGE_JOB: generate-firmware-package-{{ machine }}
 {% if CI_COMMIT_TAG is defined %}
   rules:
+    - if: $DEPLOY_RELEASE_TARGET !~ /^./
+      when: never
     - when: on_success
       allow_failure: true
 {% endif %}
   needs:
     - job: generate-firmware-package-{{ machine }}
       artifacts: false
-    - deploy-{{ machine }}
     - job: build-version
 
 {% endfor %}
-- 
GitLab