Skip to content

Commit 7f31e9e

Browse files
authored
SONARPY-2461: Fix build_win task cache (#2239)
1 parent 65d16f6 commit 7f31e9e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.cirrus.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,9 @@ build_win_task:
125125
depends_on:
126126
- build
127127
maven_cache:
128-
#windows cache is buggy if using ${CIRRUS_WORKING_DIR}
129-
folder: ~/.m2/repository
128+
# windows cache is buggy if using ${CIRRUS_WORKING_DIR}
129+
# Additionally "~" seems to resolve differently in the context of the cache and the context of the build_script below
130+
folder: C:/.m2/repository
130131
build_script:
131132
- git config --global core.autocrlf input
132133
- git submodule update --init
@@ -136,7 +137,7 @@ build_win_task:
136137
- cd -
137138
- source cirrus-env CI
138139
- unset SONARSOURCE_QA
139-
- mvn.cmd package -DskipTypeshed=true -DfailStubGenerationFast=true
140+
- mvn.cmd package -Dmaven.repo.local=C:/.m2/repository -DskipTypeshed=true -DfailStubGenerationFast=true
140141

141142
ws_scan_task:
142143
depends_on:

0 commit comments

Comments
 (0)