Skip to content

Commit 8962b85

Browse files
authored
Split build task into build_deploy and test_analyze (#409)
1 parent e625ecf commit 8962b85

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

.cirrus.yml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,26 @@ build_task:
131131
DEPLOY_PULL_REQUEST: true
132132
build_script:
133133
- source cirrus-env BUILD-PRIVATE
134-
- regular_gradle_build_deploy_analyze
134+
- regular_gradle_build_deploy_analyze -x test -x sonar
135+
on_failure:
136+
error_log_artifacts:
137+
path: "hs_err_pid*.log"
138+
heap_dump_artifacts:
139+
path: "*.hprof"
140+
<<: *CLEANUP_GRADLE_CACHE_SCRIPT
141+
142+
build_test_analyze_task:
143+
<<: *LINUX_3_5_CPU_7G
144+
<<: *SETUP_GRADLE_CACHE
145+
env:
146+
# analysis on next
147+
SONAR_TOKEN: VAULT[development/kv/data/next data.token]
148+
SONAR_HOST_URL: https://next.sonarqube.com/sonarqube
149+
#allow deployment of pull request artifacts to repox
150+
DEPLOY_PULL_REQUEST: true
151+
build_script:
152+
- source cirrus-env BUILD-PRIVATE
153+
- regular_gradle_build_deploy_analyze -x artifactoryPublish
135154
on_failure:
136155
error_log_artifacts:
137156
path: "hs_err_pid*.log"
@@ -152,7 +171,7 @@ ws_scan_task:
152171
folder: ${CIRRUS_WORKING_DIR}/.m2/repository
153172
whitesource_script:
154173
- source cirrus-env QA
155-
- ./gradlew clean build -x test
174+
- ./gradlew clean assemble
156175
- source ./export_ws_variables.sh
157176
- source ws_scan.sh
158177
allow_failures: "true"

0 commit comments

Comments
 (0)