From 7a4255b705c6463beb51c0c1e9500aade84fe9c0 Mon Sep 17 00:00:00 2001 From: Tim Jaacks <tim.jaacks@seco.com> Date: Mon, 21 Nov 2022 16:50:34 +0100 Subject: [PATCH] CI-test: add simulated SDK build --- build-jobs-ci-test.yml.jinja2 | 32 +++++++++++++++++++++++++------- 1 file changed, 25 insertions(+), 7 deletions(-) diff --git a/build-jobs-ci-test.yml.jinja2 b/build-jobs-ci-test.yml.jinja2 index 16c5a59e..749f3d1f 100644 --- a/build-jobs-ci-test.yml.jinja2 +++ b/build-jobs-ci-test.yml.jinja2 @@ -82,32 +82,50 @@ build:check-foo-branch: exit 1 fi -simulate-build-seco-mx6: +.simulate-build: stage: build extends: - .buildbase tags: - infrastructure - timeout: 20m + timeout: 60m rules: - when: manual allow_failure: true + variables: + BUILD_ARTIFACTS: script: - echo "Getting Yocto build artifacts" - # We have to specify a tag here instead of getting the artifacts from a master - # branch, because we don't always execute the full pipeline on the master branches. - # In those cases the actual build job does not exist, which results in a 404 error. - - wget -O artifacts.zip - https://git.seco.com/seco-ne/yocto/manifest/-/jobs/artifacts/kirkstone/3.0/download?job=build-seco-mx6 + - wget -O artifacts.zip ${BUILD_ARTIFACTS} - unzip artifacts.zip artifacts: reports: dotenv: build.env + +simulate-build-seco-mx6: + extends: + - .simulate-build + variables: + # We have to specify a tag here instead of getting the artifacts from a master + # branch, because we don't always execute the full pipeline on the master branches. + # In those cases the actual build job does not exist, which results in a 404 error. + BUILD_ARTIFACTS: https://git.seco.com/seco-ne/yocto/manifest/-/jobs/artifacts/kirkstone/3.0/download?job=build-seco-mx6 + artifacts: paths: - build-*/tmp/deploy/images/**/* - build-*/tmp/deploy/licenses/**/license.manifest - build.env +simulate-buildsdk-seco-mx6: + extends: + - .simulate-build + variables: + BUILD_ARTIFACTS: https://git.seco.com/seco-ne/yocto/manifest/-/jobs/artifacts/kirkstone/3.0/download?job=buildsdk-seco-mx6 + artifacts: + paths: + - build-*/tmp/deploy/sdk/* + - build.env + # -------------------------------------------------------------------------------------- # Stage: test # -------------------------------------------------------------------------------------- -- GitLab