From f12a780c6f57eb745e5e0f5bd30649e8986721fb Mon Sep 17 00:00:00 2001 From: Maurice <zimmnau@ilr.rwth-aachen.de> Date: Tue, 25 Feb 2025 12:21:37 +0100 Subject: [PATCH] Load only the cache from the current CI pipeline id --- .ci-scripts/build-integration-test.yml | 1 + .ci-scripts/run-integration-test.yml | 3 ++- .ci-scripts/setup-integration-test.yml | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.ci-scripts/build-integration-test.yml b/.ci-scripts/build-integration-test.yml index 02d14d87..241440a5 100644 --- a/.ci-scripts/build-integration-test.yml +++ b/.ci-scripts/build-integration-test.yml @@ -8,6 +8,7 @@ build-integration-test: - setup-integration-test cache: when: always + key: ${CI_PIPELINE_ID} paths: - ${CI_PROJECT_DIR} diff --git a/.ci-scripts/run-integration-test.yml b/.ci-scripts/run-integration-test.yml index b11d1aaa..bba19854 100644 --- a/.ci-scripts/run-integration-test.yml +++ b/.ci-scripts/run-integration-test.yml @@ -5,7 +5,8 @@ run-integration-test: needs: - build-integration-test cache: - when: always + when: on_success + key: ${CI_PIPELINE_ID} paths: - ${CI_PROJECT_DIR} diff --git a/.ci-scripts/setup-integration-test.yml b/.ci-scripts/setup-integration-test.yml index e1af3e89..99331394 100644 --- a/.ci-scripts/setup-integration-test.yml +++ b/.ci-scripts/setup-integration-test.yml @@ -5,6 +5,7 @@ setup-integration-test: - INTEGRATION-TEST cache: when: always + key: ${CI_PIPELINE_ID} paths: - ${CI_PROJECT_DIR} -- GitLab