diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2019-02-19 18:15:40 +0100 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2019-02-19 20:20:56 +0100 |
commit | 372833a1e099a3199d49949c1f7110c128f361d8 (patch) | |
tree | 8737c4b352cc5dd547d2be4fff8417fdf9dc6d95 /.cirrus.yml | |
parent | ba6cfefedbefb620304471980ce1932b5a80f0df (diff) | |
download | sonarqube-372833a1e099a3199d49949c1f7110c128f361d8.tar.gz sonarqube-372833a1e099a3199d49949c1f7110c128f361d8.zip |
Do not fail Cirrus on consecutive pushes
Diffstat (limited to '.cirrus.yml')
-rw-r--r-- | .cirrus.yml | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/.cirrus.yml b/.cirrus.yml index 4fe060103ad..a73b712dd53 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -43,7 +43,10 @@ build_task: gradle_cache: folder: ~/.gradle/caches env: - CIRRUS_CLONE_DEPTH: 1 + # 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-build.sh cleanup_before_cache_script: @@ -62,7 +65,10 @@ deploy_docs_task: cpu: 1 memory: 1Gb env: - CIRRUS_CLONE_DEPTH: 1 + # 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 @@ -129,7 +135,10 @@ qa_task: QA_CATEGORY: Billing QA_CATEGORY: License QA_CATEGORY: Branch - CIRRUS_CLONE_DEPTH: 1 + # 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 gradle_cache: folder: ~/.gradle/caches script: @@ -153,7 +162,10 @@ promote_task: cpu: 1 memory: 1Gb env: - CIRRUS_CLONE_DEPTH: 1 + # 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-promote.sh |