aboutsummaryrefslogtreecommitdiffstats
path: root/.cirrus.yml
diff options
context:
space:
mode:
authorMatteo Mara <matteo.mara@sonarsource.com>2022-11-22 11:05:42 +0100
committersonartech <sonartech@sonarsource.com>2022-11-22 20:03:04 +0000
commit4d779c10b3e45cb2ea734af9cfa235690f68916a (patch)
treea4ebadf130af202e23f43f4de8286f371b9f825a /.cirrus.yml
parent43f9b542786e743be75749e88f8502877d60f6e2 (diff)
downloadsonarqube-4d779c10b3e45cb2ea734af9cfa235690f68916a.tar.gz
sonarqube-4d779c10b3e45cb2ea734af9cfa235690f68916a.zip
SONAR-17598 fix sq_analysis clone operation for allowing correct PR decoration
Diffstat (limited to '.cirrus.yml')
-rw-r--r--.cirrus.yml10
1 files changed, 5 insertions, 5 deletions
diff --git a/.cirrus.yml b/.cirrus.yml
index e92800da66f..3cd10e41651 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -29,6 +29,9 @@ env:
auto_cancellation: $CIRRUS_BRANCH != $BRANCH_MAIN && $CIRRUS_BRANCH !=~ $BRANCH_PATTERN_MAINTENANCE
+skip_public_branches_template: &SKIP_PUBLIC_BRANCHES_TEMPLATE
+ skip: $CIRRUS_BRANCH =~ $BRANCH_PATTERN_PUBLIC
+
build_dependant_task_template: &BUILD_DEPENDANT_TASK_TEMPLATE
depends_on: build
@@ -143,7 +146,7 @@ junit_report_cache_template: &JUNIT_REPORT_CACHE_TEMPLATE
fingerprint_script: echo $CIRRUS_BUILD_ID
default_template: &DEFAULT_TEMPLATE
- skip: $CIRRUS_BRANCH =~ $BRANCH_PATTERN_PUBLIC
+ <<: *SKIP_PUBLIC_BRANCHES_TEMPLATE
clone_script: |
git init
git remote add origin https://x-access-token:${CIRRUS_REPO_CLONE_TOKEN}@github.com/${CIRRUS_REPO_FULL_NAME}.git
@@ -234,7 +237,7 @@ junit_task:
<<: *DEFAULT_ARTIFACTS_TEMPLATE
sq_analysis_task:
- <<: *DEFAULT_TEMPLATE
+ <<: *SKIP_PUBLIC_BRANCHES_TEMPLATE
<<: *EXCEPT_ON_NIGHTLY_TASK_TEMPLATE
<<: *GRADLE_CACHE_TEMPLATE
<<: *YARN_CACHE_TEMPLATE
@@ -249,9 +252,6 @@ sq_analysis_task:
<<: *GKE_CONTAINER_TEMPLATE
cpu: 7.5
memory: 15Gb
- env:
- # For the analysis, we need the full history.
- FETCH_DEPTH: ""
script:
- ./private/cirrus/cirrus-sq-analysis.sh
<<: *DEFAULT_ARTIFACTS_TEMPLATE