From dd822542a8409de0e4f45371527ea26b3f200abe Mon Sep 17 00:00:00 2001 From: Steve Marion Date: Mon, 14 Nov 2022 16:01:54 +0100 Subject: [PATCH] SONAR-17604 cache all jar from build --- .cirrus.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.cirrus.yml b/.cirrus.yml index 48ffe9dcc73..e92800da66f 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -110,6 +110,11 @@ gradle_cache_template: &GRADLE_CACHE_TEMPLATE folder: "~/.gradle/caches" fingerprint_script: find -type f \( -name "*.gradle*" -or -name "gradle*.properties" \) -exec cat {} + +jar_cache_template: &JAR_CACHE_TEMPLATE + jar_cache: + folder: "**/build/libs/*.jar" + fingerprint_key: jar-cache_$CIRRUS_BUILD_ID + eslint_report_cache_template: &ESLINT_REPORT_CACHE_TEMPLATE eslint_report_cache: folders: @@ -151,6 +156,7 @@ build_task: <<: *DEFAULT_TEMPLATE <<: *GRADLE_CACHE_TEMPLATE <<: *YARN_CACHE_TEMPLATE + <<: *JAR_CACHE_TEMPLATE gke_container: <<: *GKE_CONTAINER_TEMPLATE cpu: 7.5 @@ -254,6 +260,7 @@ qa_task: <<: *DEFAULT_TEMPLATE <<: *BUILD_DEPENDANT_TASK_TEMPLATE <<: *GRADLE_CACHE_TEMPLATE + <<: *JAR_CACHE_TEMPLATE gke_container: <<: *GKE_CONTAINER_TEMPLATE cpu: 2 @@ -296,6 +303,7 @@ task: #bitbucket <<: *DEFAULT_TEMPLATE <<: *BUILD_DEPENDANT_TASK_TEMPLATE <<: *NIGHTLY_TASK_TEMPLATE + <<: *JAR_CACHE_TEMPLATE <<: *GRADLE_CACHE_TEMPLATE gke_container: <<: *GKE_CONTAINER_TEMPLATE @@ -321,6 +329,7 @@ qa_bb_cloud_task: <<: *DEFAULT_TEMPLATE <<: *BUILD_DEPENDANT_TASK_TEMPLATE <<: *NIGHTLY_TASK_TEMPLATE + <<: *JAR_CACHE_TEMPLATE <<: *GRADLE_CACHE_TEMPLATE gke_container: <<: *GKE_CONTAINER_TEMPLATE @@ -340,6 +349,7 @@ qa_ha_task: <<: *DEFAULT_TEMPLATE <<: *BUILD_DEPENDANT_TASK_TEMPLATE <<: *NIGHTLY_TASK_TEMPLATE + <<: *JAR_CACHE_TEMPLATE <<: *GRADLE_CACHE_TEMPLATE gke_container: <<: *GKE_CONTAINER_TEMPLATE @@ -377,6 +387,7 @@ docker_gitlab_container_build_task: qa_gitlab_task: <<: *DEFAULT_TEMPLATE <<: *NIGHTLY_TASK_TEMPLATE + <<: *JAR_CACHE_TEMPLATE <<: *GRADLE_CACHE_TEMPLATE depends_on: - build @@ -406,6 +417,7 @@ qa_gitlab_cloud_task: <<: *DEFAULT_TEMPLATE <<: *BUILD_DEPENDANT_TASK_TEMPLATE <<: *NIGHTLY_TASK_TEMPLATE + <<: *JAR_CACHE_TEMPLATE <<: *GRADLE_CACHE_TEMPLATE gke_container: <<: *GKE_CONTAINER_TEMPLATE @@ -427,6 +439,7 @@ qa_azure_task: <<: *DEFAULT_TEMPLATE <<: *BUILD_DEPENDANT_TASK_TEMPLATE <<: *NIGHTLY_TASK_TEMPLATE + <<: *JAR_CACHE_TEMPLATE <<: *GRADLE_CACHE_TEMPLATE gke_container: <<: *GKE_CONTAINER_TEMPLATE @@ -445,6 +458,7 @@ qa_github_task: <<: *DEFAULT_TEMPLATE <<: *BUILD_DEPENDANT_TASK_TEMPLATE <<: *NIGHTLY_TASK_TEMPLATE + <<: *JAR_CACHE_TEMPLATE <<: *GRADLE_CACHE_TEMPLATE gke_container: <<: *GKE_CONTAINER_TEMPLATE @@ -463,6 +477,7 @@ qa_saml_task: <<: *DEFAULT_TEMPLATE <<: *BUILD_DEPENDANT_TASK_TEMPLATE <<: *SAML_NIGHTLY_TASK_TEMPLATE + <<: *JAR_CACHE_TEMPLATE <<: *GRADLE_CACHE_TEMPLATE gke_container: <<: *GKE_CONTAINER_TEMPLATE @@ -489,6 +504,7 @@ qa_ldap_task: <<: *DEFAULT_TEMPLATE <<: *BUILD_DEPENDANT_TASK_TEMPLATE <<: *NIGHTLY_TASK_TEMPLATE + <<: *JAR_CACHE_TEMPLATE <<: *GRADLE_CACHE_TEMPLATE gke_container: <<: *GKE_CONTAINER_TEMPLATE @@ -607,6 +623,7 @@ upgd_mssql_task: <<: *DEFAULT_TEMPLATE <<: *BUILD_DEPENDANT_TASK_TEMPLATE <<: *DATABASE_RELATED_NIGHTLY_TASK_TEMPLATE + <<: *JAR_CACHE_TEMPLATE <<: *GRADLE_CACHE_TEMPLATE gke_container: <<: *GKE_CONTAINER_TEMPLATE @@ -632,6 +649,7 @@ upgd_oracle12_task: <<: *DEFAULT_TEMPLATE <<: *BUILD_DEPENDANT_TASK_TEMPLATE <<: *DATABASE_RELATED_NIGHTLY_TASK_TEMPLATE + <<: *JAR_CACHE_TEMPLATE <<: *GRADLE_CACHE_TEMPLATE gke_container: <<: *GKE_CONTAINER_TEMPLATE -- 2.39.5