]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-14133 add warning when ado project and repo are not set
authorBelen Pruvost <belen.pruvost@sonarsource.com>
Tue, 17 Nov 2020 07:07:39 +0000 (09:07 +0200)
committersonartech <sonartech@sonarsource.com>
Wed, 25 Nov 2020 20:06:26 +0000 (20:06 +0000)
.cirrus.yml

index 2b8e55b52aad5263ff24d0a6b964573cc9ba1a9d..0cba0ff7cb314109769a7013be4c3a73f3150cb1 100644 (file)
@@ -239,7 +239,35 @@ qa_gitlab_task:
     # Depth of 1 is not enough because it would fail the build in case of consecutive pushes
     # (example of error: "Hard resetting to c968ecaf7a1942dacecd78480b3751ac74d53c33...Failed to force reset to c968ecaf7a1942dacecd78480b3751ac74d53c33: object not found!")
     CIRRUS_CLONE_DEPTH: 50
-    QA_CATEGORY: GITLAB
+    QA_CATEGORY: AZURE
+  gradle_cache:
+    folder: ~/.gradle/caches
+  script:
+    - ./private/cirrus/cirrus-qa.sh h2
+  cleanup_before_cache_script:
+    - ./private/cirrus/cleanup-gradle-cache.sh
+  on_failure:
+    reports_artifacts:
+      path: "**/build/reports/**/*"
+    screenshots_artifacts:
+      path: "**/build/screenshots/**/*"
+    junit_artifacts:
+      path: "**/test-results/**/*.xml"
+      format: junit
+
+# Azure QA is executed in a dedicated task in order to not slow down the pipeline.
+qa_azure_task:
+  <<: *TASK_ONLY_NIGHTLY_DEPENDING_ON_BUILD_TEMPLATE
+  gke_container:
+    <<: *GKE_CONTAINER_TEMPLATE
+    cpu: 2.4
+    memory: 5Gb
+  env:
+    # No need to clone the full history.
+    # Depth of 1 is not enough because it would fail the build in case of consecutive pushes
+    # (example of error: "Hard resetting to c968ecaf7a1942dacecd78480b3751ac74d53c33...Failed to force reset to c968ecaf7a1942dacecd78480b3751ac74d53c33: object not found!")
+    CIRRUS_CLONE_DEPTH: 50
+    QA_CATEGORY: AZURE
   gradle_cache:
     folder: ~/.gradle/caches
   script: