From 8ca2487d06d3310ccd8af5a4fe7ee07587d64cb0 Mon Sep 17 00:00:00 2001
From: Tim Jaacks <tim.jaacks@seco.com>
Date: Tue, 12 Sep 2023 15:37:18 +0200
Subject: [PATCH] Move .simulate_build below .build_yocto

---
 build-pipeline.yml | 46 +++++++++++++++++++++++-----------------------
 1 file changed, 23 insertions(+), 23 deletions(-)

diff --git a/build-pipeline.yml b/build-pipeline.yml
index f695bea0..89df3345 100644
--- a/build-pipeline.yml
+++ b/build-pipeline.yml
@@ -218,29 +218,6 @@ workflow:
       policy: push
       paths: *artifacts_paths
 
-.simulate_build:
-  extends:
-    - .build_yocto
-  tags:
-    - misc
-  needs: []
-  timeout: 60m
-  variables:
-    BUILD_ARTIFACTS:
-  before_script: []
-  script:
-    - if compgen -G build-*; then echo "Using build from cache"; exit 0; fi
-    - echo "Getting Yocto build artifacts"
-    - wget -O artifacts.zip ${BUILD_ARTIFACTS}
-    - unzip artifacts.zip
-  after_script:
-    - *save_build_env
-  cache:
-    - *cache
-    # Additionally cache the build artifacts for re-runs of this job in other pipelines
-    - key: ${CI_JOB_NAME}-${BUILD_ARTIFACTS}
-      paths: *artifacts_paths
-
 .build_yocto:
   extends:
     - .buildbase
@@ -265,6 +242,29 @@ workflow:
     - *save_build_env
     - *dump_install_command
 
+.simulate_build:
+  extends:
+    - .build_yocto
+  tags:
+    - misc
+  needs: []
+  timeout: 60m
+  variables:
+    BUILD_ARTIFACTS:
+  before_script: []
+  script:
+    - if compgen -G build-*; then echo "Using build from cache"; exit 0; fi
+    - echo "Getting Yocto build artifacts"
+    - wget -O artifacts.zip ${BUILD_ARTIFACTS}
+    - unzip artifacts.zip
+  after_script:
+    - *save_build_env
+  cache:
+    - *cache
+    # Additionally cache the build artifacts for re-runs of this job in other pipelines
+    - key: ${CI_JOB_NAME}-${BUILD_ARTIFACTS}
+      paths: *artifacts_paths
+
 # --------------------------------------------------------------------------------------
 # Stage: test
 # --------------------------------------------------------------------------------------
-- 
GitLab