From 6bfa1bad558b4c226c13689f646a987f64dde8dc Mon Sep 17 00:00:00 2001 From: Tim Jaacks <tim.jaacks@seco.com> Date: Tue, 18 Jul 2023 16:28:08 +0200 Subject: [PATCH] Make distro and image combos dynamic --- manifest-pipeline-yocto.yml | 23 ++++++++++++----------- manifest-pipeline.yml | 3 ++- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/manifest-pipeline-yocto.yml b/manifest-pipeline-yocto.yml index a3fad6c1..5adc56fb 100644 --- a/manifest-pipeline-yocto.yml +++ b/manifest-pipeline-yocto.yml @@ -28,16 +28,17 @@ variables: generate-build-jobs: variables: - # Default image and distro - CI_PARAM_IMAGE: guf-image - CI_PARAM_DISTRO: guf-wayland - - # Flash-N-Go image and distro - # In the past, the buildfng job overwrote the image and distro itself. Due to the - # transition to the new seconorth names, image and distro for the buildfng must be - # settable from outside of the job. - CI_PARAM_IMAGE_FNG: fngsystem-image - CI_PARAM_DISTRO_FNG: guf-fngsystem - # List of machines to build images for CI_PARAM_MACHINES: imx6guf imx6ullguf imx8mguf imx8mpguf + parallel: + matrix: &build_jobs + # Default image and distro + - CI_PARAM_DISTRO: guf-wayland + CI_PARAM_IMAGE: guf-image + # Flash-N-Go image and distro + - CI_PARAM_DISTRO: guf-fngsystem + CI_PARAM_IMAGE: fngsystem-image + +build-jobs: + parallel: + matrix: *build_jobs diff --git a/manifest-pipeline.yml b/manifest-pipeline.yml index 88f79343..f48cff43 100644 --- a/manifest-pipeline.yml +++ b/manifest-pipeline.yml @@ -79,7 +79,8 @@ generate-build-jobs: build-jobs: extends: - .full_build_pipeline - needs: ["generate-build-jobs"] + dependencies: + - "generate-build-jobs: [${CI_PARAM_DISTRO}, ${CI_PARAM_IMAGE}]" trigger: include: - artifact: build-jobs.yml -- GitLab