Skip to content

Commit

Permalink
SONARPY-2461 fix maven cache for build_win
Browse files Browse the repository at this point in the history
  • Loading branch information
Seppli11 committed Dec 12, 2024
1 parent c0217e0 commit c3f9a4b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit c3f9a4b

Please sign in to comment.