Skip to content
Snippets Groups Projects
Commit 66bb5795 authored by Tim Jaacks's avatar Tim Jaacks
Browse files

Yocto build: use common artifact pathspec for image and SDK builds

This is the first step on the way to a common pipeline for all build
configurations.
parent fa2766e6
No related branches found
No related tags found
No related merge requests found
Pipeline #70761 passed with warnings with stages
in 8 minutes and 3 seconds
......@@ -98,29 +98,20 @@ workflow:
expire_in: 1 week
reports:
dotenv: build.env
.build_image:
artifacts:
paths: &build_image_artifacts_paths
paths: &artifacts_paths
# List of all potential artifact paths. Not all of them are present in each build
# configuration, e.g. the SDK path exists in SDK builds only. We still specify all
# of them here in order to have a generic build class for all builds. Pathsspecs
# which do not exist in a specific configuration are simply ignored by GitLab.
- build-*/tmp/deploy/images/**/*
- build-*/tmp/deploy/licenses/**/license.manifest
- build.env
cache:
# Cache the build artifacts for subsequent stages in the same pipeline
- key: ${CI_PIPELINE_ID}-${CI_JOB_NAME}
policy: push
paths: *build_image_artifacts_paths
.build_sdk:
artifacts:
paths: &build_sdk_artifacts_paths
- build-*/tmp/deploy/sdk/*
- build.env
cache:
# Cache the build artifacts for subsequent stages in the same pipeline
- key: ${CI_PIPELINE_ID}-${CI_JOB_NAME}
policy: push
paths: *build_sdk_artifacts_paths
paths: *artifacts_paths
# --------------------------------------------------------------------------------------
# Stage: test
......@@ -218,7 +209,7 @@ workflow:
--release-suffix="${RELEASE_SUFFIX}"
cache:
- <<: *pull_build_cache
paths: *build_image_artifacts_paths
paths: *artifacts_paths
- *push_package_cache
.package_sdk:
......@@ -232,7 +223,7 @@ workflow:
--release-suffix="${RELEASE_SUFFIX}"
cache:
- <<: *pull_build_cache
paths: *build_sdk_artifacts_paths
paths: *artifacts_paths
- *push_package_cache
# --------------------------------------------------------------------------------------
......
......@@ -92,7 +92,6 @@
.build_yocto_image:
extends:
- .build_yocto
- .build_image
variables:
BITBAKE_TASK: "build"
script:
......@@ -104,7 +103,6 @@
.build_yocto_sdk:
extends:
- .build_yocto
- .build_sdk
variables:
BITBAKE_TASK: "populate_sdk"
rules:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment