From 86e098e28dd33c2d23fe348f5a8e5fc2984d34d8 Mon Sep 17 00:00:00 2001 From: gitbot <gitbot.north@seco.com> Date: Fri, 26 Apr 2024 08:53:14 +0000 Subject: [PATCH] Integrate gitlab-ci/keep_artifacts -- Commit: https://git.seco.com/seco-ne/yocto/infrastructure/gitlab-ci/-/commit/de9851beff4cbb43172bc3e2ad4709f8d9e00790 ci: add a job to handle artifacts after merge In the latest commit in the manifest it often happens, that the pipeline does not contain the artifacts itself, but just a link to the pipeline of the MR. Added a python script with corresponding GitLab CI job to launch this script. The script searches for the latest pipelines for default branch in manifest repo, and then decides either to keep or delete artifacts for particular build. The build artifacts are kept for: - the latest commit - the last successful build - the tagged commits (e.g. "fngsystem/47.0", "kirkstone/20.0") --- .gitlab-ci | 2 +- .gitlab-ci.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci b/.gitlab-ci index 1299a9d..de9851b 160000 --- a/.gitlab-ci +++ b/.gitlab-ci @@ -1 +1 @@ -Subproject commit 1299a9d671826104a620e4b2fd8ce278dd306987 +Subproject commit de9851beff4cbb43172bc3e2ad4709f8d9e00790 diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index db5e640..cadbbc2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,9 +4,9 @@ # --------------------------------------------------------------------------------------- include: - project: '${CI_PROJECT_ROOT_NAMESPACE}/yocto/infrastructure/gitlab-ci' - ref: 1299a9d671826104a620e4b2fd8ce278dd306987 + ref: de9851beff4cbb43172bc3e2ad4709f8d9e00790 file: 'manifest-integration.yml' variables: - GITLAB_CI_REVISION: 1299a9d671826104a620e4b2fd8ce278dd306987 + GITLAB_CI_REVISION: de9851beff4cbb43172bc3e2ad4709f8d9e00790 BB_RECIPE_NAME: gfxml2dto -- GitLab