Skip to content

Commit

Permalink
Split build task into build_deploy and test_analyze (#409)
Browse files Browse the repository at this point in the history
  • Loading branch information
leveretka committed Dec 19, 2023
1 parent e625ecf commit 8962b85
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,26 @@ build_task:
DEPLOY_PULL_REQUEST: true
build_script:
- source cirrus-env BUILD-PRIVATE
- regular_gradle_build_deploy_analyze
- regular_gradle_build_deploy_analyze -x test -x sonar
on_failure:
error_log_artifacts:
path: "hs_err_pid*.log"
heap_dump_artifacts:
path: "*.hprof"
<<: *CLEANUP_GRADLE_CACHE_SCRIPT

build_test_analyze_task:
<<: *LINUX_3_5_CPU_7G
<<: *SETUP_GRADLE_CACHE
env:
# analysis on next
SONAR_TOKEN: VAULT[development/kv/data/next data.token]
SONAR_HOST_URL: https://next.sonarqube.com/sonarqube
#allow deployment of pull request artifacts to repox
DEPLOY_PULL_REQUEST: true
build_script:
- source cirrus-env BUILD-PRIVATE
- regular_gradle_build_deploy_analyze -x artifactoryPublish
on_failure:
error_log_artifacts:
path: "hs_err_pid*.log"
Expand All @@ -152,7 +171,7 @@ ws_scan_task:
folder: ${CIRRUS_WORKING_DIR}/.m2/repository
whitesource_script:
- source cirrus-env QA
- ./gradlew clean build -x test
- ./gradlew clean assemble
- source ./export_ws_variables.sh
- source ws_scan.sh
allow_failures: "true"
Expand Down

0 comments on commit 8962b85

Please sign in to comment.