Skip to content

Commit

Permalink
Add On failure
Browse files Browse the repository at this point in the history
  • Loading branch information
mstachniuk committed Dec 13, 2024
1 parent 74bd4db commit fe69e6a
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -123,6 +133,7 @@ qa_ruling_task:
ITS_PROJECT: "ruling"
<<: *LINUX_4_CPU_6G_JAVA_17
<<: *GRADLE_ITS_TEMPLATE
<<: *ON_FAILURE

### Mend tasks

Expand Down

0 comments on commit fe69e6a

Please sign in to comment.