From 7f31e9e49716151bd917f367efc55a0d59f2ca57 Mon Sep 17 00:00:00 2001 From: Sebastian Zumbrunn Date: Fri, 13 Dec 2024 17:41:27 +0100 Subject: [PATCH] SONARPY-2461: Fix build_win task cache (#2239) --- .cirrus.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index df666178f5..737adca3c9 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -125,8 +125,9 @@ build_win_task: depends_on: - build maven_cache: - #windows cache is buggy if using ${CIRRUS_WORKING_DIR} - folder: ~/.m2/repository + # windows cache is buggy if using ${CIRRUS_WORKING_DIR} + # Additionally "~" seems to resolve differently in the context of the cache and the context of the build_script below + folder: C:/.m2/repository build_script: - git config --global core.autocrlf input - git submodule update --init @@ -136,7 +137,7 @@ build_win_task: - cd - - source cirrus-env CI - unset SONARSOURCE_QA - - mvn.cmd package -DskipTypeshed=true -DfailStubGenerationFast=true + - mvn.cmd package -Dmaven.repo.local=C:/.m2/repository -DskipTypeshed=true -DfailStubGenerationFast=true ws_scan_task: depends_on: