From ee0525383664bb0c24e9bfffda24784302b77d44 Mon Sep 17 00:00:00 2001
From: Zygmunt Krynicki <zygmunt.krynicki@huawei.com>
Date: Thu, 12 May 2022 17:39:54 +0200
Subject: [PATCH] .gitlab-ci.yml: use explicit dependency on pi4 bundle build
 job

This allows the bundle job to be started even if just one of the jobs
in the previous stage, the one for pi4 image build, succeeds. This is
better for testing and allows jobs to start and finish faster, reducing
total build time.

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@huawei.com>
---
 .gitlab-ci.yml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ed49385a..89aec5bd 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -86,6 +86,8 @@ aggregate-docs:
 bundle-raspberrypi4-64:
   extends: .build-rauc-bundle
   stage: update
+  # Depend on the build job to prevent repeating build failures.
+  needs: [linux-raspberrypi4-64]
   variables:
     MACHINE: raspberrypi4-64
     CI_ONIRO_BUILD_FLAVOUR: linux
-- 
GitLab