diff options
author | Malena Ebert <malena.ebert@sonarsource.com> | 2021-01-08 10:19:33 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2021-01-09 20:18:20 +0000 |
commit | 177ce9bc1e0e79ea6fb76f798ebbef7e787a6078 (patch) | |
tree | caccd8d7587ab9412f6ea23147cb00af2da0781f /.cirrus.yml | |
parent | ffb82c5292944ae508859c0e6fcde81074263734 (diff) | |
download | sonarqube-177ce9bc1e0e79ea6fb76f798ebbef7e787a6078.tar.gz sonarqube-177ce9bc1e0e79ea6fb76f798ebbef7e787a6078.zip |
[BUILD] Docs deployment should depend on promote task
This ensures that the pre production documentation is aligned to the
deployed sonarqube version on next.
Diffstat (limited to '.cirrus.yml')
-rw-r--r-- | .cirrus.yml | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/.cirrus.yml b/.cirrus.yml index 4e48eb42c8e..24746b6baca 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -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: |