diff options
author | antoine.vinot <antoine.vinot@sonarsource.com> | 2024-04-05 08:43:23 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2024-04-05 20:02:38 +0000 |
commit | 54ad2b1a3d5746ed4702daa1a10845d7b27a0026 (patch) | |
tree | 0a8a6b9e1a31a187cf96e5cc4066f53f4de10421 /.cirrus | |
parent | 646d47e2e747e8ffdb71d8f12e4719a781183f0d (diff) | |
download | sonarqube-54ad2b1a3d5746ed4702daa1a10845d7b27a0026.tar.gz sonarqube-54ad2b1a3d5746ed4702daa1a10845d7b27a0026.zip |
SONAR-21911 Cache build result and use it in analysis task
Diffstat (limited to '.cirrus')
-rw-r--r-- | .cirrus/.cirrus.yml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.cirrus/.cirrus.yml b/.cirrus/.cirrus.yml index 8e1046492f8..167ac0e713d 100644 --- a/.cirrus/.cirrus.yml +++ b/.cirrus/.cirrus.yml @@ -75,6 +75,12 @@ junit_report_cache_template: &JUNIT_REPORT_CACHE_TEMPLATE - "**/test-results/test" fingerprint_script: echo $CIRRUS_BUILD_ID +build_cache_template: &BUILD_CACHE_TEMPLATE + build_cache: + folders: + - "**/build/**/*" + fingerprint_script: echo $BUILD_NUMBER + cache_dependencies_task: container: dockerfile: .cirrus/Dockerfile @@ -95,6 +101,7 @@ build_task: memory: 8Gb <<: *DEFAULT_TEMPLATE <<: *GRADLE_CACHE_TEMPLATE + <<: *BUILD_CACHE_TEMPLATE <<: *YARN_CACHE_TEMPLATE <<: *JAR_CACHE_TEMPLATE build_script: .cirrus/cirrus-build.sh @@ -162,6 +169,7 @@ junit_task: sq_analysis_task: depends_on: + - build - yarn_lint - yarn_validate - junit @@ -173,6 +181,7 @@ sq_analysis_task: SONAR_HOST_URL: https://next.sonarqube.com/sonarqube SONAR_TOKEN: ENCRYPTED[!b6fd814826c51e64ee61b0b6f3ae621551f6413383f7170f73580e2e141ac78c4b134b506f6288c74faa0dd564c05a29!] <<: *GRADLE_CACHE_TEMPLATE + <<: *BUILD_CACHE_TEMPLATE <<: *YARN_CACHE_TEMPLATE <<: *JEST_REPORT_CACHE_TEMPLATE <<: *ESLINT_REPORT_CACHE_TEMPLATE |