You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

.cirrus.yml 17KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446
  1. # content of service-account-credentials.json, used to access to Google Cloud Platform
  2. gcp_credentials: ENCRYPTED[ec86f04ec57d8a7f29ad6b84b41262c9d576abc533485754fdfdb24db103adf0d33ba4ba89a57d29d2549790be5abc72]
  3. env:
  4. GRADLE_OPTS: -Dorg.gradle.daemon=false -Dorg.gradle.jvmargs="-XX:+PrintFlagsFinal -XshowSettings:vm -XX:+HeapDumpOnOutOfMemoryError -XX:+UnlockExperimentalVMOptions -Djava.security.egd=file:/dev/./urandom -Dfile.encoding=UTF8 -Duser.language=en -Duser.country=US"
  5. # to be replaced by other credentials
  6. ARTIFACTORY_PRIVATE_USERNAME: ENCRYPTED[c0baa3376daa1e08d602435081d07653799cf34ab09ca92e575f3dc4176bc6cf2ebf87120e83f3aa6804f072013e8e2b]
  7. ARTIFACTORY_PRIVATE_PASSWORD: ENCRYPTED[f13d32d218c3da8008114d2c8857b2956047fbdab2163bbf186b8b89f789f0efa7504f499749a59ad5988c14e5360353]
  8. ARTIFACTORY_DEPLOY_USERNAME: public-qa-deployer
  9. ARTIFACTORY_DEPLOY_PASSWORD: ENCRYPTED[9362d735843b21b375b6e19d91e0de5216e053e229e39e2ce33a0c866306e6e3f9b08db8a0e126ca5e986fea97e975fd]
  10. ARTIFACTORY_DEPLOY_USERNAME_PRIVATE: private-qa-deployer
  11. ARTIFACTORY_DEPLOY_PASSWORD_PRIVATE: ENCRYPTED[61769719e9b775afe103dbee22141eeaa0116b3332eafb993be2a5919ff7bf017cdc519afed07dc6cac8ebbc0846f191]
  12. ARTIFACTORY_API_KEY: ENCRYPTED[d52910db749f2678f43084b18c849486d68fbc02c2f5489c7ee1085c395de9dc7575313a8b348bb5361a693dd782e07e]
  13. # download licenses for testing commercial editions
  14. GITHUB_TOKEN: ENCRYPTED[!f272985ea5b49b3cf9c414b98de6a8e9096be47bfcee52f33311ba3131a2af637c1b956f49585b7757dd84b7c030233a!]
  15. # use a permanent GitHub access token to perform a clone (by default CirrusCI uses a temporary one)
  16. CIRRUS_REPO_CLONE_TOKEN: ENCRYPTED[f20fee6519296187a473964e60afb08a1bbdc889a624fad0297b41a21d8697f8d2da4d2d245194ade630dcf46b4b581e]
  17. # notifications to burgr
  18. BURGR_URL: ENCRYPTED[06b8fcc9aaa4b495043aa08bc4450b89588902ad9a60cc8525f53d14810aff84558812e4b7eb01131dd64f33916ac941]
  19. BURGR_USERNAME: ENCRYPTED[cf7bfb936025fb763013bbfef0ab5723c0d9b53f135d79af36f9defa933f4b5fc72842bd83a97ce9b614503c1b77e6da]
  20. BURGR_PASSWORD: ENCRYPTED[bc554fc6a06c9f14cc9924cefad0a69e962a905b6d1609fc9357d458b45fc52ac74c960ad9c7382a0691433fa9dcd483]
  21. # analysis on next.sonarqube.com
  22. SONARQUBE_NEXT_TOKEN: ENCRYPTED[e3d98fa0ecceb015e9803d47f78c3040f5a710d678a631107635d69f650d4e53ecaf2e2334cc1fe0c47037ec915dcda0]
  23. # to trigger docs deployment
  24. BUDDY_WORKS_TOKEN: ENCRYPTED[9ba648f3167b6f0c0befbba2f816bfffd53260fef06fb0fe8bba0a19ae4808c8b1567c5dcee2a2ee5299a5969058f495]
  25. auto_cancellation: $CIRRUS_BRANCH != 'master' && $CIRRUS_BRANCH !=~ 'branch.*'
  26. task_only_nightly_depending_on_build_template: &TASK_ONLY_NIGHTLY_DEPENDING_ON_BUILD_TEMPLATE
  27. depends_on: build
  28. # Comment the following line and commit with message "DO NOT MERGE" in order to run
  29. # this task on your branch
  30. only_if: $CIRRUS_BRANCH == "branch-nightly-build"
  31. task_only_default_depending_on_build_template: &TASK_ONLY_DEFAUT_DEPENDING_ON_BUILD_TEMPLATE
  32. depends_on: build
  33. only_if: >-
  34. $CIRRUS_BRANCH !=~ "dogfood/.*" &&
  35. $CIRRUS_BRANCH != "public_master" &&
  36. $CIRRUS_BRANCH != "branch-nightly-build" &&
  37. $CIRRUS_CRON == ""
  38. docker_build_container_template: &GKE_CONTAINER_TEMPLATE
  39. dockerfile: private/docker/Dockerfile-build
  40. builder_image_project: sonarqube-team
  41. builder_image_name: docker-builder-v20200915
  42. cluster_name: cirrus-ci-cluster
  43. zone: us-central1-a
  44. namespace: default
  45. cpu: 1
  46. memory: 1Gb
  47. oracle_additional_container_template: &ORACLE_ADDITIONAL_CONTAINER_TEMPLATE
  48. name: oracle
  49. image: us.gcr.io/sonarqube-team/oracle12:0.0.1 # see https://github.com/SonarSource/vms/blob/master/docker/README.md#oracle-12c to build it
  50. port: 1521
  51. cpu: 2
  52. memory: 5Gb
  53. env:
  54. ORACLE_PWD: sonarqube
  55. postgres_additional_container_template: &POSTGRES_ADDITIONAL_CONTAINER_TEMPLATE
  56. name: postgres
  57. image: postgres:12.1
  58. port: 5432
  59. cpu: 1
  60. memory: 1Gb
  61. env:
  62. POSTGRES_USER: postgres
  63. POSTGRES_PASSWORD: postgres
  64. reports_junit_on_failure_template: &REPORTS_JUNIT_ON_FAILURE_TEMPLATE
  65. reports_artifacts:
  66. path: "**/build/reports/**/*"
  67. junit_artifacts:
  68. path: "**/test-results/**/*.xml"
  69. format: junit
  70. screenshots_on_failure_template: &REPORTS_JUNIT_SCREENSHOTS_ON_FAILURE_TEMPLATE
  71. <<: *REPORTS_JUNIT_ON_FAILURE_TEMPLATE
  72. screenshots_artifacts:
  73. path: "**/build/screenshots/**/*"
  74. build_task:
  75. only_if: >-
  76. $CIRRUS_BRANCH !=~ "dogfood/.*" &&
  77. $CIRRUS_BRANCH != "public_master" &&
  78. $CIRRUS_CRON == ""
  79. timeout_in: 90m
  80. gke_container:
  81. <<: *GKE_CONTAINER_TEMPLATE
  82. cpu: 4
  83. memory: 7Gb
  84. env:
  85. # No need to clone the full history.
  86. # Depth of 1 is not enough because it would fail the build in case of consecutive pushes
  87. # (example of error: "Hard resetting to c968ecaf7a1942dacecd78480b3751ac74d53c33...Failed to force reset to c968ecaf7a1942dacecd78480b3751ac74d53c33: object not found!")
  88. CIRRUS_CLONE_DEPTH: 50
  89. script:
  90. - ./private/cirrus/cirrus-build.sh
  91. on_failure:
  92. reports_artifacts:
  93. path: "**/build/reports/**/*"
  94. deploy_docs_task:
  95. depends_on: build
  96. only_if: $CIRRUS_BRANCH == 'dogfood-on-next'
  97. gke_container:
  98. <<: *GKE_CONTAINER_TEMPLATE
  99. env:
  100. # No need to clone the full history.
  101. # Depth of 1 is not enough because it would fail the build in case of consecutive pushes
  102. # (example of error: "Hard resetting to c968ecaf7a1942dacecd78480b3751ac74d53c33...Failed to force reset to c968ecaf7a1942dacecd78480b3751ac74d53c33: object not found!")
  103. CIRRUS_CLONE_DEPTH: 50
  104. script:
  105. - ./private/cirrus/cirrus-trigger-deploy-docs.sh
  106. validate_task:
  107. <<: *TASK_ONLY_DEFAUT_DEPENDING_ON_BUILD_TEMPLATE
  108. timeout_in: 90m
  109. gke_container:
  110. <<: *GKE_CONTAINER_TEMPLATE
  111. cpu: 2
  112. memory: 9Gb
  113. additional_containers:
  114. - <<: *POSTGRES_ADDITIONAL_CONTAINER_TEMPLATE
  115. script:
  116. - ./private/cirrus/cirrus-validate.sh postgres106
  117. on_failure:
  118. <<: *REPORTS_JUNIT_ON_FAILURE_TEMPLATE
  119. qa_task:
  120. <<: *TASK_ONLY_DEFAUT_DEPENDING_ON_BUILD_TEMPLATE
  121. gke_container:
  122. <<: *GKE_CONTAINER_TEMPLATE
  123. cpu: 3
  124. memory: 7Gb
  125. additional_containers:
  126. - <<: *POSTGRES_ADDITIONAL_CONTAINER_TEMPLATE
  127. env:
  128. # No need to clone the full history.
  129. # Depth of 1 is not enough because it would fail the build in case of consecutive pushes
  130. # (example of error: "Hard resetting to c968ecaf7a1942dacecd78480b3751ac74d53c33...Failed to force reset to c968ecaf7a1942dacecd78480b3751ac74d53c33: object not found!")
  131. CIRRUS_CLONE_DEPTH: 50
  132. matrix:
  133. - QA_CATEGORY: Cat1
  134. - QA_CATEGORY: Cat2
  135. - QA_CATEGORY: Cat3
  136. - QA_CATEGORY: Cat4
  137. - QA_CATEGORY: Cat5
  138. - QA_CATEGORY: Cat6
  139. - QA_CATEGORY: Cat7
  140. - QA_CATEGORY: Authentication
  141. - QA_CATEGORY: Gov
  142. - QA_CATEGORY: License
  143. - QA_CATEGORY: Branch
  144. - QA_CATEGORY: Upgrade
  145. script:
  146. - ./private/cirrus/cirrus-qa.sh postgres106
  147. on_failure:
  148. <<: *REPORTS_JUNIT_ON_FAILURE_TEMPLATE
  149. qa_bitbucket_task:
  150. <<: *TASK_ONLY_NIGHTLY_DEPENDING_ON_BUILD_TEMPLATE
  151. gke_container:
  152. <<: *GKE_CONTAINER_TEMPLATE
  153. cpu: 3
  154. memory: 7Gb
  155. additional_containers:
  156. - <<: *POSTGRES_ADDITIONAL_CONTAINER_TEMPLATE
  157. maven_cache:
  158. folder: ~/.m2
  159. env:
  160. # No need to clone the full history.
  161. # Depth of 1 is not enough because it would fail the build in case of consecutive pushes
  162. # (example of error: "Hard resetting to c968ecaf7a1942dacecd78480b3751ac74d53c33...Failed to force reset to c968ecaf7a1942dacecd78480b3751ac74d53c33: object not found!")
  163. CIRRUS_CLONE_DEPTH: 50
  164. QA_CATEGORY: BITBUCKET
  165. matrix:
  166. - name: qa_bitbucket_5.16.11
  167. bitbucket_background_script: ./private/cirrus/cirrus-start-bitbucket.sh 5.16.11
  168. - name: qa_bitbucket_latest
  169. bitbucket_background_script: ./private/cirrus/cirrus-start-bitbucket.sh LATEST
  170. wait_for_bitbucket_to_boot_script: secs=3600; endTime=$(( $(date +%s) + secs )); while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' localhost:7990/bitbucket/status)" != "200" ]] || [ $(date +%s) -gt $endTime ]; do sleep 5; done
  171. script:
  172. - ./private/cirrus/cirrus-qa.sh postgres106
  173. on_failure:
  174. <<: *REPORTS_JUNIT_ON_FAILURE_TEMPLATE
  175. qa_ha_task:
  176. <<: *TASK_ONLY_NIGHTLY_DEPENDING_ON_BUILD_TEMPLATE
  177. gke_container:
  178. <<: *GKE_CONTAINER_TEMPLATE
  179. cpu: 2.4
  180. memory: 10Gb
  181. additional_containers:
  182. - <<: *POSTGRES_ADDITIONAL_CONTAINER_TEMPLATE
  183. env:
  184. # No need to clone the full history.
  185. # Depth of 1 is not enough because it would fail the build in case of consecutive pushes
  186. # (example of error: "Hard resetting to c968ecaf7a1942dacecd78480b3751ac74d53c33...Failed to force reset to c968ecaf7a1942dacecd78480b3751ac74d53c33: object not found!")
  187. CIRRUS_CLONE_DEPTH: 50
  188. QA_CATEGORY: HA
  189. gradle_cache:
  190. folder: ~/.gradle/caches
  191. script:
  192. - ./private/cirrus/cirrus-qa.sh postgres106
  193. cleanup_before_cache_script:
  194. - ./private/cirrus/cleanup-gradle-cache.sh
  195. on_failure:
  196. <<: *REPORTS_JUNIT_SCREENSHOTS_ON_FAILURE_TEMPLATE
  197. # GitLab QA is executed in a dedicated task in order to not slow down the pipeline, as a GitLab on-prem server docker image is required.
  198. qa_gitlab_task:
  199. <<: *TASK_ONLY_NIGHTLY_DEPENDING_ON_BUILD_TEMPLATE
  200. gke_container:
  201. <<: *GKE_CONTAINER_TEMPLATE
  202. cpu: 2.4
  203. memory: 5Gb
  204. additional_containers:
  205. - name: gitlab
  206. image: gitlab/gitlab-ce:latest
  207. port: 8080:80
  208. cpu: 1
  209. memory: 5Gb
  210. env:
  211. # Creating a personnal access token from rails console for test purpuse (can't do through gitlab REST API)
  212. GITLAB_POST_RECONFIGURE_SCRIPT: "gitlab-rails runner \"token = User.find_by_username('root').personal_access_tokens.create(scopes: [:api], name: 'token'); token.set_token('token-here-456'); token.save!\""
  213. env:
  214. # No need to clone the full history.
  215. # Depth of 1 is not enough because it would fail the build in case of consecutive pushes
  216. # (example of error: "Hard resetting to c968ecaf7a1942dacecd78480b3751ac74d53c33...Failed to force reset to c968ecaf7a1942dacecd78480b3751ac74d53c33: object not found!")
  217. CIRRUS_CLONE_DEPTH: 50
  218. QA_CATEGORY: GITLAB
  219. gradle_cache:
  220. folder: ~/.gradle/caches
  221. script:
  222. - ./private/cirrus/cirrus-qa.sh h2
  223. cleanup_before_cache_script:
  224. - ./private/cirrus/cleanup-gradle-cache.sh
  225. on_failure:
  226. reports_artifacts:
  227. path: "**/build/reports/**/*"
  228. screenshots_artifacts:
  229. path: "**/build/screenshots/**/*"
  230. junit_artifacts:
  231. path: "**/test-results/**/*.xml"
  232. format: junit
  233. # SAML QA is executed in a dedicated task in order to not slow down the pipeline, as a Keycloak server docker image is required.
  234. qa_saml_task:
  235. <<: *TASK_ONLY_NIGHTLY_DEPENDING_ON_BUILD_TEMPLATE
  236. gke_container:
  237. <<: *GKE_CONTAINER_TEMPLATE
  238. cpu: 2.4
  239. memory: 10Gb
  240. additional_containers:
  241. - name: keycloak
  242. image: jboss/keycloak:7.0.0
  243. port: 8080
  244. cpu: 1
  245. memory: 1Gb
  246. env:
  247. KEYCLOAK_USER: admin
  248. KEYCLOAK_PASSWORD: admin
  249. env:
  250. # No need to clone the full history.
  251. # Depth of 1 is not enough because it would fail the build in case of consecutive pushes
  252. # (example of error: "Hard resetting to c968ecaf7a1942dacecd78480b3751ac74d53c33...Failed to force reset to c968ecaf7a1942dacecd78480b3751ac74d53c33: object not found!")
  253. CIRRUS_CLONE_DEPTH: 50
  254. QA_CATEGORY: SAML
  255. gradle_cache:
  256. folder: ~/.gradle/caches
  257. script:
  258. - ./private/cirrus/cirrus-qa.sh h2
  259. cleanup_before_cache_script:
  260. - ./private/cirrus/cleanup-gradle-cache.sh
  261. on_failure:
  262. <<: *REPORTS_JUNIT_SCREENSHOTS_ON_FAILURE_TEMPLATE
  263. # LDAP QA is executed in a dedicated task in order to not slow down the pipeline, as a LDAP server and SonarQube server are re-started on each test.
  264. qa_ldap_task:
  265. <<: *TASK_ONLY_NIGHTLY_DEPENDING_ON_BUILD_TEMPLATE
  266. gke_container:
  267. <<: *GKE_CONTAINER_TEMPLATE
  268. cpu: 2.4
  269. memory: 10Gb
  270. env:
  271. # No need to clone the full history.
  272. # Depth of 1 is not enough because it would fail the build in case of consecutive pushes
  273. # (example of error: "Hard resetting to c968ecaf7a1942dacecd78480b3751ac74d53c33...Failed to force reset to c968ecaf7a1942dacecd78480b3751ac74d53c33: object not found!")
  274. CIRRUS_CLONE_DEPTH: 50
  275. QA_CATEGORY: LDAP
  276. gradle_cache:
  277. folder: ~/.gradle/caches
  278. script:
  279. - ./private/cirrus/cirrus-qa.sh h2
  280. cleanup_before_cache_script:
  281. - ./private/cirrus/cleanup-gradle-cache.sh
  282. on_failure:
  283. <<: *REPORTS_JUNIT_SCREENSHOTS_ON_FAILURE_TEMPLATE
  284. promote_task:
  285. <<: *TASK_ONLY_DEFAUT_DEPENDING_ON_BUILD_TEMPLATE
  286. depends_on:
  287. - build
  288. - validate
  289. - qa
  290. - qa_saml
  291. - qa_ldap
  292. gke_container:
  293. <<: *GKE_CONTAINER_TEMPLATE
  294. stateful: true
  295. env:
  296. # No need to clone the full history.
  297. # Depth of 1 is not enough because it would fail the build in case of consecutive pushes
  298. # (example of error: "Hard resetting to c968ecaf7a1942dacecd78480b3751ac74d53c33...Failed to force reset to c968ecaf7a1942dacecd78480b3751ac74d53c33: object not found!")
  299. CIRRUS_CLONE_DEPTH: 50
  300. script:
  301. - ./private/cirrus/cirrus-promote.sh
  302. sql_mssql2017_task:
  303. <<: *TASK_ONLY_NIGHTLY_DEPENDING_ON_BUILD_TEMPLATE
  304. gke_container:
  305. <<: *GKE_CONTAINER_TEMPLATE
  306. memory: 5Gb
  307. additional_containers:
  308. - name: mssql
  309. image: mcr.microsoft.com/mssql/server:2017-GA-ubuntu
  310. port: 1433
  311. cpu: 2
  312. memory: 5Gb
  313. env:
  314. MSSQL_PID: Developer # this is the default edition
  315. ACCEPT_EULA: Y
  316. SA_PASSWORD: sonarqube!1
  317. script:
  318. - ./private/cirrus/cirrus-db-unit-test.sh mssql2017
  319. on_failure:
  320. <<: *REPORTS_JUNIT_ON_FAILURE_TEMPLATE
  321. # this is the oldest compatible version of PostgreSQL
  322. sql_postgres93_task:
  323. <<: *TASK_ONLY_NIGHTLY_DEPENDING_ON_BUILD_TEMPLATE
  324. gke_container:
  325. <<: *GKE_CONTAINER_TEMPLATE
  326. memory: 5Gb
  327. additional_containers:
  328. - <<: *POSTGRES_ADDITIONAL_CONTAINER_TEMPLATE
  329. image: postgres:9.3
  330. script:
  331. - ./private/cirrus/cirrus-db-unit-test.sh postgres93
  332. on_failure:
  333. <<: *REPORTS_JUNIT_ON_FAILURE_TEMPLATE
  334. sql_oracle12_task:
  335. <<: *TASK_ONLY_NIGHTLY_DEPENDING_ON_BUILD_TEMPLATE
  336. gke_container:
  337. <<: *GKE_CONTAINER_TEMPLATE
  338. memory: 5Gb
  339. additional_containers:
  340. - <<: *ORACLE_ADDITIONAL_CONTAINER_TEMPLATE
  341. script:
  342. - ./private/cirrus/cirrus-db-unit-test.sh oracle12
  343. on_failure:
  344. <<: *REPORTS_JUNIT_ON_FAILURE_TEMPLATE
  345. upgd_mssql2017_task:
  346. <<: *TASK_ONLY_NIGHTLY_DEPENDING_ON_BUILD_TEMPLATE
  347. gke_container:
  348. <<: *GKE_CONTAINER_TEMPLATE
  349. cpu: 1.5
  350. memory: 6Gb
  351. additional_containers:
  352. - name: mssql
  353. image: mcr.microsoft.com/mssql/server:2017-GA-ubuntu
  354. port: 1433
  355. cpu: 2
  356. memory: 5Gb
  357. env:
  358. MSSQL_PID: Developer # this is the default edition
  359. ACCEPT_EULA: Y
  360. SA_PASSWORD: sonarqube!1
  361. env:
  362. # No need to clone the full history.
  363. # Depth of 1 is not enough because it would fail the build in case of consecutive pushes
  364. # (example of error: "Hard resetting to c968ecaf7a1942dacecd78480b3751ac74d53c33...Failed to force reset to c968ecaf7a1942dacecd78480b3751ac74d53c33: object not found!")
  365. CIRRUS_CLONE_DEPTH: 50
  366. matrix:
  367. QA_CATEGORY: Upgrade
  368. script:
  369. - ./private/cirrus/cirrus-qa.sh mssql2017
  370. on_failure:
  371. <<: *REPORTS_JUNIT_ON_FAILURE_TEMPLATE
  372. upgd_oracle12_task:
  373. <<: *TASK_ONLY_NIGHTLY_DEPENDING_ON_BUILD_TEMPLATE
  374. gke_container:
  375. <<: *GKE_CONTAINER_TEMPLATE
  376. cpu: 1.5
  377. memory: 6Gb
  378. additional_containers:
  379. - <<: *ORACLE_ADDITIONAL_CONTAINER_TEMPLATE
  380. env:
  381. # No need to clone the full history.
  382. # Depth of 1 is not enough because it would fail the build in case of consecutive pushes
  383. # (example of error: "Hard resetting to c968ecaf7a1942dacecd78480b3751ac74d53c33...Failed to force reset to c968ecaf7a1942dacecd78480b3751ac74d53c33: object not found!")
  384. CIRRUS_CLONE_DEPTH: 50
  385. matrix:
  386. QA_CATEGORY: Upgrade
  387. script:
  388. - ./private/cirrus/cirrus-qa.sh oracle12
  389. on_failure:
  390. <<: *REPORTS_JUNIT_ON_FAILURE_TEMPLATE
  391. # Software Composition Analysis (SCA): check potential vulnerabilities in dependencies.
  392. # Note that license compliance of dependencies is not checked for now.
  393. owasp_check_task:
  394. only_if: >-
  395. $CIRRUS_CRON == "nightly" ||
  396. $CIRRUS_CRON == "weekly-lts"
  397. timeout_in: 30m
  398. gke_container:
  399. <<: *GKE_CONTAINER_TEMPLATE
  400. cpu: 1.7
  401. memory: 4Gb
  402. environment:
  403. # No need to clone the full history.
  404. # Depth of 1 is not enough because it would fail the build in case of consecutive pushes
  405. # (example of error: "Hard resetting to c968ecaf7a1942dacecd78480b3751ac74d53c33...Failed to force reset to c968ecaf7a1942dacecd78480b3751ac74d53c33: object not found!")
  406. CIRRUS_CLONE_DEPTH: 50
  407. SLACK_WEBHOOK_SQ: ENCRYPTED[dec8e4350cbea3b94d63098558bcb3ae9e79b71c2b6286fcfb9eb80c0953b6448b10f7271b07b5e75e52f362c25d7a8f]
  408. nvd_cache:
  409. # The NVD repository of vulnerabilities is big and should be cached so
  410. # that consecutive runs download only changes, but not the whole repository.
  411. folder: ~/.gradle/dependency-check-data
  412. reupload_on_changes: true
  413. script:
  414. - gradle dependencyCheckAggregate
  415. on_failure:
  416. slack_notification_script:
  417. - ./private/cirrus/cirrus-owasp-notification.sh
  418. always:
  419. reports_artifacts:
  420. path: "build/reports/*"