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 20KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513
  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[24fba83587c1e9ed372b6cfdf12e4739ebe3b6e5b5082f1a2a742e840dd2e4b61fd5e281bf2632b22b3ad346c650c05c]
  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. $CIRRUS_CHANGE_MESSAGE !=~ '.*\[update headers\].*'
  39. docker_build_container_template: &GKE_CONTAINER_TEMPLATE
  40. dockerfile: private/docker/Dockerfile-build
  41. builder_image_project: sonarqube-team
  42. builder_image_name: docker-builder-v20200915
  43. cluster_name: cirrus-ci-cluster
  44. zone: us-central1-a
  45. namespace: default
  46. cpu: 1
  47. memory: 1Gb
  48. oracle_additional_container_template: &ORACLE_ADDITIONAL_CONTAINER_TEMPLATE
  49. name: oracle
  50. 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
  51. port: 1521
  52. cpu: 2
  53. memory: 5Gb
  54. env:
  55. ORACLE_PWD: sonarqube
  56. postgres_additional_container_template: &POSTGRES_ADDITIONAL_CONTAINER_TEMPLATE
  57. name: postgres
  58. image: postgres:12.1
  59. port: 5432
  60. cpu: 1
  61. memory: 1Gb
  62. env:
  63. POSTGRES_USER: postgres
  64. POSTGRES_PASSWORD: postgres
  65. reports_junit_on_failure_template: &REPORTS_JUNIT_ON_FAILURE_TEMPLATE
  66. reports_artifacts:
  67. path: "**/build/reports/**/*"
  68. junit_artifacts:
  69. path: "**/test-results/**/*.xml"
  70. format: junit
  71. screenshots_on_failure_template: &REPORTS_JUNIT_SCREENSHOTS_ON_FAILURE_TEMPLATE
  72. <<: *REPORTS_JUNIT_ON_FAILURE_TEMPLATE
  73. screenshots_artifacts:
  74. path: "**/build/screenshots/**/*"
  75. build_task:
  76. only_if: >-
  77. $CIRRUS_BRANCH !=~ "dogfood/.*" &&
  78. $CIRRUS_BRANCH != "public_master" &&
  79. $CIRRUS_CRON == ""
  80. timeout_in: 90m
  81. gke_container:
  82. <<: *GKE_CONTAINER_TEMPLATE
  83. cpu: 4
  84. memory: 7Gb
  85. env:
  86. # No need to clone the full history.
  87. # Depth of 1 is not enough because it would fail the build in case of consecutive pushes
  88. # (example of error: "Hard resetting to c968ecaf7a1942dacecd78480b3751ac74d53c33...Failed to force reset to c968ecaf7a1942dacecd78480b3751ac74d53c33: object not found!")
  89. CIRRUS_CLONE_DEPTH: 50
  90. script:
  91. - ./private/cirrus/cirrus-build.sh
  92. on_failure:
  93. reports_artifacts:
  94. path: "**/build/reports/**/*"
  95. validate_task: &VALIDATE_TASK
  96. <<: *TASK_ONLY_DEFAUT_DEPENDING_ON_BUILD_TEMPLATE
  97. timeout_in: 90m
  98. gke_container:
  99. <<: *GKE_CONTAINER_TEMPLATE
  100. cpu: 6.5
  101. memory: 16Gb
  102. additional_containers:
  103. - <<: *POSTGRES_ADDITIONAL_CONTAINER_TEMPLATE
  104. script:
  105. - ./private/cirrus/cirrus-validate.sh postgres106
  106. on_failure:
  107. <<: *REPORTS_JUNIT_ON_FAILURE_TEMPLATE
  108. validate_license_change_task:
  109. <<: *VALIDATE_TASK
  110. name: validate # Give it the same name as its counterpart, so we can reference it on GitHub.
  111. only_if: >- # Only execute if the commit message has the "[update headers]" tag.
  112. $CIRRUS_BRANCH !=~ "dogfood/.*" &&
  113. $CIRRUS_BRANCH != "public_master" &&
  114. $CIRRUS_BRANCH != "branch-nightly-build" &&
  115. $CIRRUS_CRON == "" &&
  116. $CIRRUS_CHANGE_MESSAGE =~ '.*\[update headers\].*'
  117. timeout_in: 180m # Increase timeout, as license changes impact all files, which slows down the analysis considerably.
  118. yarn_check-ci_task:
  119. <<: *TASK_ONLY_DEFAUT_DEPENDING_ON_BUILD_TEMPLATE
  120. timeout_in: 90m
  121. gke_container:
  122. <<: *GKE_CONTAINER_TEMPLATE
  123. cpu: 4
  124. memory: 8Gb
  125. script: |
  126. ./private/cirrus/cirrus-env.sh YARN
  127. gradle yarn_check-ci
  128. on_failure:
  129. <<: *REPORTS_JUNIT_ON_FAILURE_TEMPLATE
  130. qa_task:
  131. <<: *TASK_ONLY_DEFAUT_DEPENDING_ON_BUILD_TEMPLATE
  132. gke_container:
  133. <<: *GKE_CONTAINER_TEMPLATE
  134. cpu: 3
  135. memory: 7Gb
  136. additional_containers:
  137. - <<: *POSTGRES_ADDITIONAL_CONTAINER_TEMPLATE
  138. env:
  139. # No need to clone the full history.
  140. # Depth of 1 is not enough because it would fail the build in case of consecutive pushes
  141. # (example of error: "Hard resetting to c968ecaf7a1942dacecd78480b3751ac74d53c33...Failed to force reset to c968ecaf7a1942dacecd78480b3751ac74d53c33: object not found!")
  142. CIRRUS_CLONE_DEPTH: 50
  143. matrix:
  144. - QA_CATEGORY: Cat1
  145. - QA_CATEGORY: Cat2
  146. - QA_CATEGORY: Cat3
  147. - QA_CATEGORY: Cat4
  148. - QA_CATEGORY: Cat5
  149. - QA_CATEGORY: Cat6
  150. - QA_CATEGORY: Cat7
  151. - QA_CATEGORY: Authentication
  152. - QA_CATEGORY: Gov
  153. - QA_CATEGORY: Dev
  154. - QA_CATEGORY: License
  155. - QA_CATEGORY: Branch
  156. - QA_CATEGORY: Upgrade
  157. script:
  158. - ./private/cirrus/cirrus-qa.sh postgres106
  159. on_failure:
  160. <<: *REPORTS_JUNIT_SCREENSHOTS_ON_FAILURE_TEMPLATE
  161. qa_bitbucket_task:
  162. <<: *TASK_ONLY_NIGHTLY_DEPENDING_ON_BUILD_TEMPLATE
  163. gke_container:
  164. <<: *GKE_CONTAINER_TEMPLATE
  165. cpu: 3
  166. memory: 7Gb
  167. additional_containers:
  168. - <<: *POSTGRES_ADDITIONAL_CONTAINER_TEMPLATE
  169. maven_cache:
  170. folder: ~/.m2
  171. env:
  172. # No need to clone the full history.
  173. # Depth of 1 is not enough because it would fail the build in case of consecutive pushes
  174. # (example of error: "Hard resetting to c968ecaf7a1942dacecd78480b3751ac74d53c33...Failed to force reset to c968ecaf7a1942dacecd78480b3751ac74d53c33: object not found!")
  175. CIRRUS_CLONE_DEPTH: 50
  176. QA_CATEGORY: BITBUCKET
  177. matrix:
  178. - name: qa_bitbucket_5.16.11
  179. bitbucket_background_script: ./private/cirrus/cirrus-start-bitbucket.sh 5.16.11
  180. - name: qa_bitbucket_latest
  181. bitbucket_background_script: ./private/cirrus/cirrus-start-bitbucket.sh LATEST
  182. 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
  183. script:
  184. - ./private/cirrus/cirrus-qa.sh postgres106
  185. on_failure:
  186. <<: *REPORTS_JUNIT_SCREENSHOTS_ON_FAILURE_TEMPLATE
  187. qa_ha_task:
  188. <<: *TASK_ONLY_NIGHTLY_DEPENDING_ON_BUILD_TEMPLATE
  189. gke_container:
  190. <<: *GKE_CONTAINER_TEMPLATE
  191. cpu: 2.4
  192. memory: 10Gb
  193. additional_containers:
  194. - <<: *POSTGRES_ADDITIONAL_CONTAINER_TEMPLATE
  195. env:
  196. # No need to clone the full history.
  197. # Depth of 1 is not enough because it would fail the build in case of consecutive pushes
  198. # (example of error: "Hard resetting to c968ecaf7a1942dacecd78480b3751ac74d53c33...Failed to force reset to c968ecaf7a1942dacecd78480b3751ac74d53c33: object not found!")
  199. CIRRUS_CLONE_DEPTH: 50
  200. QA_CATEGORY: HA
  201. gradle_cache:
  202. folder: ~/.gradle/caches
  203. script:
  204. - ./private/cirrus/cirrus-qa.sh postgres106
  205. cleanup_before_cache_script:
  206. - ./private/cirrus/cleanup-gradle-cache.sh
  207. on_failure:
  208. <<: *REPORTS_JUNIT_SCREENSHOTS_ON_FAILURE_TEMPLATE
  209. # 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.
  210. qa_gitlab_task:
  211. <<: *TASK_ONLY_NIGHTLY_DEPENDING_ON_BUILD_TEMPLATE
  212. gke_container:
  213. <<: *GKE_CONTAINER_TEMPLATE
  214. cpu: 2.4
  215. memory: 5Gb
  216. use_in_memory_disk: true
  217. additional_containers:
  218. - name: gitlab
  219. image: gitlab/gitlab-ce:latest
  220. port: 8080:80
  221. cpu: 1
  222. memory: 5Gb
  223. env:
  224. # Creating a personnal access token from rails console for test purpuse (can't do through gitlab REST API)
  225. GITLAB_POST_RECONFIGURE_SCRIPT: "gitlab-rails runner \"
  226. token = User.find_by_username('root').personal_access_tokens.create(scopes: [:api], name: 'token');
  227. token.set_token('token-here-456');
  228. token.save!;
  229. token_read = User.find_by_username('root').personal_access_tokens.create(scopes: [:read_api], name: 'token_read');
  230. token_read.set_token('token-read-123');
  231. token_read.save!;
  232. user = User.find_by_username('root');
  233. user.password = 'adminadmin';
  234. user.password_confirmation = 'adminadmin';
  235. user.save!;
  236. \""
  237. env:
  238. # No need to clone the full history.
  239. # Depth of 1 is not enough because it would fail the build in case of consecutive pushes
  240. # (example of error: "Hard resetting to c968ecaf7a1942dacecd78480b3751ac74d53c33...Failed to force reset to c968ecaf7a1942dacecd78480b3751ac74d53c33: object not found!")
  241. CIRRUS_CLONE_DEPTH: 50
  242. QA_CATEGORY: GITLAB
  243. gradle_cache:
  244. folder: ~/.gradle/caches
  245. script:
  246. - ./private/cirrus/cirrus-qa.sh h2
  247. cleanup_before_cache_script:
  248. - ./private/cirrus/cleanup-gradle-cache.sh
  249. on_failure:
  250. <<: *REPORTS_JUNIT_SCREENSHOTS_ON_FAILURE_TEMPLATE
  251. # Azure QA is executed in a dedicated task in order to not slow down the pipeline.
  252. qa_azure_task:
  253. <<: *TASK_ONLY_NIGHTLY_DEPENDING_ON_BUILD_TEMPLATE
  254. gke_container:
  255. <<: *GKE_CONTAINER_TEMPLATE
  256. cpu: 2.4
  257. memory: 5Gb
  258. env:
  259. # No need to clone the full history.
  260. # Depth of 1 is not enough because it would fail the build in case of consecutive pushes
  261. # (example of error: "Hard resetting to c968ecaf7a1942dacecd78480b3751ac74d53c33...Failed to force reset to c968ecaf7a1942dacecd78480b3751ac74d53c33: object not found!")
  262. CIRRUS_CLONE_DEPTH: 50
  263. QA_CATEGORY: AZURE
  264. AZURE_USERNAME_LOGIN: ENCRYPTED[dcdf19769c1501408ebc22670c76d5e375cd739de2df5dfa3f215aa795296dfb257dbbcbe9bdfd33135feb04421fea1f]
  265. AZURE_CODE_READ_AND_WRITE_TOKEN: ENCRYPTED[eddc3448b40e72310f24f21241bdc1243860139d1a5aad593b016baedf03e4bba3f9e3d8d9f6329fe3b587966a8112d2]
  266. AZURE_FULL_ACCESS_TOKEN: ENCRYPTED[58779d6588e2e10d1b6f98fcc58a46957f8ef3a18e29d79abc6aa8d69ea55c23d8708e1f1af626464d309b1c7c087985]
  267. gradle_cache:
  268. folder: ~/.gradle/caches
  269. script:
  270. - ./private/cirrus/cirrus-qa.sh h2
  271. cleanup_before_cache_script:
  272. - ./private/cirrus/cleanup-gradle-cache.sh
  273. on_failure:
  274. <<: *REPORTS_JUNIT_SCREENSHOTS_ON_FAILURE_TEMPLATE
  275. # SAML QA is executed in a dedicated task in order to not slow down the pipeline, as a Keycloak server docker image is required.
  276. qa_saml_task:
  277. <<: *TASK_ONLY_NIGHTLY_DEPENDING_ON_BUILD_TEMPLATE
  278. gke_container:
  279. <<: *GKE_CONTAINER_TEMPLATE
  280. cpu: 2.4
  281. memory: 10Gb
  282. additional_containers:
  283. - name: keycloak
  284. image: jboss/keycloak:7.0.0
  285. port: 8080
  286. cpu: 1
  287. memory: 1Gb
  288. env:
  289. KEYCLOAK_USER: admin
  290. KEYCLOAK_PASSWORD: admin
  291. env:
  292. # No need to clone the full history.
  293. # Depth of 1 is not enough because it would fail the build in case of consecutive pushes
  294. # (example of error: "Hard resetting to c968ecaf7a1942dacecd78480b3751ac74d53c33...Failed to force reset to c968ecaf7a1942dacecd78480b3751ac74d53c33: object not found!")
  295. CIRRUS_CLONE_DEPTH: 50
  296. QA_CATEGORY: SAML
  297. gradle_cache:
  298. folder: ~/.gradle/caches
  299. script:
  300. - ./private/cirrus/cirrus-qa.sh h2
  301. cleanup_before_cache_script:
  302. - ./private/cirrus/cleanup-gradle-cache.sh
  303. on_failure:
  304. <<: *REPORTS_JUNIT_SCREENSHOTS_ON_FAILURE_TEMPLATE
  305. # 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.
  306. qa_ldap_task:
  307. <<: *TASK_ONLY_NIGHTLY_DEPENDING_ON_BUILD_TEMPLATE
  308. gke_container:
  309. <<: *GKE_CONTAINER_TEMPLATE
  310. cpu: 2.4
  311. memory: 10Gb
  312. env:
  313. # No need to clone the full history.
  314. # Depth of 1 is not enough because it would fail the build in case of consecutive pushes
  315. # (example of error: "Hard resetting to c968ecaf7a1942dacecd78480b3751ac74d53c33...Failed to force reset to c968ecaf7a1942dacecd78480b3751ac74d53c33: object not found!")
  316. CIRRUS_CLONE_DEPTH: 50
  317. QA_CATEGORY: LDAP
  318. gradle_cache:
  319. folder: ~/.gradle/caches
  320. script:
  321. - ./private/cirrus/cirrus-qa.sh h2
  322. cleanup_before_cache_script:
  323. - ./private/cirrus/cleanup-gradle-cache.sh
  324. on_failure:
  325. <<: *REPORTS_JUNIT_SCREENSHOTS_ON_FAILURE_TEMPLATE
  326. promote_task: &PROMOTE_TASK
  327. <<: *TASK_ONLY_DEFAUT_DEPENDING_ON_BUILD_TEMPLATE
  328. depends_on:
  329. - build
  330. - validate
  331. - qa
  332. - qa_saml
  333. - qa_ldap
  334. gke_container:
  335. <<: *GKE_CONTAINER_TEMPLATE
  336. stateful: true
  337. env:
  338. # No need to clone the full history.
  339. # Depth of 1 is not enough because it would fail the build in case of consecutive pushes
  340. # (example of error: "Hard resetting to c968ecaf7a1942dacecd78480b3751ac74d53c33...Failed to force reset to c968ecaf7a1942dacecd78480b3751ac74d53c33: object not found!")
  341. CIRRUS_CLONE_DEPTH: 50
  342. script:
  343. - ./private/cirrus/cirrus-promote.sh
  344. promote_license_change_task:
  345. <<: *PROMOTE_TASK
  346. name: promote # Give it the same name as its counterpart, so we can reference it on GitHub.
  347. only_if: >- # Only execute if the commit message has the "[update headers]" tag.
  348. $CIRRUS_BRANCH !=~ "dogfood/.*" &&
  349. $CIRRUS_BRANCH != "public_master" &&
  350. $CIRRUS_BRANCH != "branch-nightly-build" &&
  351. $CIRRUS_CRON == "" &&
  352. $CIRRUS_CHANGE_MESSAGE =~ '.*\[update headers\].*'
  353. depends_on:
  354. - build
  355. - validate
  356. deploy_docs_task:
  357. depends_on: promote
  358. only_if: $CIRRUS_BRANCH == 'dogfood-on-next'
  359. gke_container:
  360. <<: *GKE_CONTAINER_TEMPLATE
  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. script:
  367. - ./private/cirrus/cirrus-trigger-deploy-docs.sh
  368. sql_mssql2019_task:
  369. <<: *TASK_ONLY_NIGHTLY_DEPENDING_ON_BUILD_TEMPLATE
  370. gke_container:
  371. <<: *GKE_CONTAINER_TEMPLATE
  372. memory: 5Gb
  373. additional_containers:
  374. - name: mssql
  375. image: mcr.microsoft.com/mssql/server:2019-GA-ubuntu-16.04
  376. port: 1433
  377. cpu: 2
  378. memory: 5Gb
  379. env:
  380. MSSQL_PID: Developer # this is the default edition
  381. ACCEPT_EULA: Y
  382. SA_PASSWORD: sonarqube!1
  383. script:
  384. - ./private/cirrus/cirrus-db-unit-test.sh mssql2017
  385. on_failure:
  386. <<: *REPORTS_JUNIT_ON_FAILURE_TEMPLATE
  387. # this is the oldest compatible version of PostgreSQL
  388. sql_postgres93_task:
  389. <<: *TASK_ONLY_NIGHTLY_DEPENDING_ON_BUILD_TEMPLATE
  390. gke_container:
  391. <<: *GKE_CONTAINER_TEMPLATE
  392. memory: 5Gb
  393. additional_containers:
  394. - <<: *POSTGRES_ADDITIONAL_CONTAINER_TEMPLATE
  395. image: postgres:9.3
  396. script:
  397. - ./private/cirrus/cirrus-db-unit-test.sh postgres93
  398. on_failure:
  399. <<: *REPORTS_JUNIT_ON_FAILURE_TEMPLATE
  400. sql_oracle12_task:
  401. <<: *TASK_ONLY_NIGHTLY_DEPENDING_ON_BUILD_TEMPLATE
  402. gke_container:
  403. <<: *GKE_CONTAINER_TEMPLATE
  404. memory: 5Gb
  405. additional_containers:
  406. - <<: *ORACLE_ADDITIONAL_CONTAINER_TEMPLATE
  407. script:
  408. - ./private/cirrus/cirrus-db-unit-test.sh oracle12
  409. on_failure:
  410. <<: *REPORTS_JUNIT_ON_FAILURE_TEMPLATE
  411. upgd_mssql2019_task:
  412. <<: *TASK_ONLY_NIGHTLY_DEPENDING_ON_BUILD_TEMPLATE
  413. gke_container:
  414. <<: *GKE_CONTAINER_TEMPLATE
  415. cpu: 1.5
  416. memory: 6Gb
  417. additional_containers:
  418. - name: mssql
  419. image: mcr.microsoft.com/mssql/server:2019-GA-ubuntu-16.04
  420. port: 1433
  421. cpu: 2
  422. memory: 5Gb
  423. env:
  424. MSSQL_PID: Developer # this is the default edition
  425. ACCEPT_EULA: Y
  426. SA_PASSWORD: sonarqube!1
  427. env:
  428. # No need to clone the full history.
  429. # Depth of 1 is not enough because it would fail the build in case of consecutive pushes
  430. # (example of error: "Hard resetting to c968ecaf7a1942dacecd78480b3751ac74d53c33...Failed to force reset to c968ecaf7a1942dacecd78480b3751ac74d53c33: object not found!")
  431. CIRRUS_CLONE_DEPTH: 50
  432. matrix:
  433. QA_CATEGORY: Upgrade
  434. script:
  435. - ./private/cirrus/cirrus-qa.sh mssql2017
  436. on_failure:
  437. <<: *REPORTS_JUNIT_ON_FAILURE_TEMPLATE
  438. upgd_oracle12_task:
  439. <<: *TASK_ONLY_NIGHTLY_DEPENDING_ON_BUILD_TEMPLATE
  440. gke_container:
  441. <<: *GKE_CONTAINER_TEMPLATE
  442. cpu: 1.5
  443. memory: 6Gb
  444. additional_containers:
  445. - <<: *ORACLE_ADDITIONAL_CONTAINER_TEMPLATE
  446. env:
  447. # No need to clone the full history.
  448. # Depth of 1 is not enough because it would fail the build in case of consecutive pushes
  449. # (example of error: "Hard resetting to c968ecaf7a1942dacecd78480b3751ac74d53c33...Failed to force reset to c968ecaf7a1942dacecd78480b3751ac74d53c33: object not found!")
  450. CIRRUS_CLONE_DEPTH: 50
  451. matrix:
  452. QA_CATEGORY: Upgrade
  453. script:
  454. - ./private/cirrus/cirrus-qa.sh oracle12
  455. on_failure:
  456. <<: *REPORTS_JUNIT_ON_FAILURE_TEMPLATE
  457. # Software Composition Analysis (SCA): check potential vulnerabilities in dependencies.
  458. # Note that license compliance of dependencies is not checked for now.
  459. owasp_check_task:
  460. only_if: >-
  461. $CIRRUS_CRON == "nightly" ||
  462. $CIRRUS_CRON == "weekly-latest" ||
  463. $CIRRUS_CRON == "weekly-lts" ||
  464. changesInclude('private/owasp/*.xml')
  465. timeout_in: 30m
  466. gke_container:
  467. <<: *GKE_CONTAINER_TEMPLATE
  468. cpu: 1.7
  469. memory: 4Gb
  470. environment:
  471. # No need to clone the full history.
  472. # Depth of 1 is not enough because it would fail the build in case of consecutive pushes
  473. # (example of error: "Hard resetting to c968ecaf7a1942dacecd78480b3751ac74d53c33...Failed to force reset to c968ecaf7a1942dacecd78480b3751ac74d53c33: object not found!")
  474. CIRRUS_CLONE_DEPTH: 50
  475. SLACK_WEBHOOK_SQ: ENCRYPTED[dec8e4350cbea3b94d63098558bcb3ae9e79b71c2b6286fcfb9eb80c0953b6448b10f7271b07b5e75e52f362c25d7a8f]
  476. script:
  477. - gradle dependencyCheckAggregate
  478. on_failure:
  479. slack_notification_script:
  480. - ./private/cirrus/cirrus-owasp-notification.sh
  481. always:
  482. reports_artifacts:
  483. path: "build/reports/*"