From fe69e6a801e22694accf3005c64985fad69ef732 Mon Sep 17 00:00:00 2001 From: Marcin Stachniuk Date: Thu, 12 Dec 2024 17:10:33 +0100 Subject: [PATCH] Add On failure --- .cirrus.yml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index 1680969..bb8afd8 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -47,6 +47,18 @@ eks_container: &CONTAINER_DEFINITION ## Build tasks +on_failure_template: &ON_FAILURE + on_failure: + junit_artifacts: + path: '**/test-results/**/*.xml' + format: junit + reports_artifacts: + path: '**/build/reports/**/*' + error_log_artifacts: + path: "hs_err_pid*.log" + heap_dump_artifacts: + path: "*.hprof" + setup_gradle_cache_template: &SETUP_GRADLE_CACHE gradle_cache: folder: .gradle/caches @@ -74,11 +86,7 @@ build_task: - gradle --version - source set_gradle_build_version - regular_gradle_build_deploy_analyze - on_failure: - error_log_artifacts: - path: "hs_err_pid*.log" - heap_dump_artifacts: - path: "*.hprof" + <<: *ON_FAILURE <<: *CLEANUP_GRADLE_CACHE_SCRIPT ### QA tasks @@ -114,6 +122,8 @@ qa_plugin_task: - SQ_VERSION: "LATEST_RELEASE" <<: *LINUX_4_CPU_6G_JAVA_17 <<: *GRADLE_ITS_TEMPLATE + <<: *ON_FAILURE + qa_ruling_task: <<: *QA_TASK_FILTER @@ -123,6 +133,7 @@ qa_ruling_task: ITS_PROJECT: "ruling" <<: *LINUX_4_CPU_6G_JAVA_17 <<: *GRADLE_ITS_TEMPLATE + <<: *ON_FAILURE ### Mend tasks