]> source.dussan.org Git - sonarqube.git/commitdiff
[BUILD] Docs deployment should depend on promote task
authorMalena Ebert <malena.ebert@sonarsource.com>
Fri, 8 Jan 2021 09:19:33 +0000 (10:19 +0100)
committersonartech <sonartech@sonarsource.com>
Sat, 9 Jan 2021 20:18:20 +0000 (20:18 +0000)
This ensures that the pre production documentation is aligned to the
deployed sonarqube version on next.

.cirrus.yml

index 4e48eb42c8e1becb626adffdd8171c69b5014e52..24746b6baca1ecdf7454713cd815284b654112fe 100644 (file)
@@ -103,19 +103,6 @@ build_task:
     reports_artifacts:
       path: "**/build/reports/**/*"
 
-deploy_docs_task:
-  depends_on: build
-  only_if: $CIRRUS_BRANCH == 'dogfood-on-next'
-  gke_container:
-    <<: *GKE_CONTAINER_TEMPLATE
-  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
-  script:
-    - ./private/cirrus/cirrus-trigger-deploy-docs.sh
-
 validate_task: &VALIDATE_TASK
   <<: *TASK_ONLY_DEFAUT_DEPENDING_ON_BUILD_TEMPLATE
   timeout_in: 90m
@@ -368,6 +355,19 @@ promote_license_change_task:
     - build
     - validate
 
+deploy_docs_task:
+  depends_on: promote
+  only_if: $CIRRUS_BRANCH == 'dogfood-on-next'
+  gke_container:
+    <<: *GKE_CONTAINER_TEMPLATE
+  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
+  script:
+    - ./private/cirrus/cirrus-trigger-deploy-docs.sh
+
 sql_mssql2017_task:
   <<: *TASK_ONLY_NIGHTLY_DEPENDING_ON_BUILD_TEMPLATE
   gke_container: