]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-21221 Exclude package-docker from the weekly CI cron
authorAntoine Vigneau <antoine.vigneau@sonarsource.com>
Thu, 7 Dec 2023 13:50:57 +0000 (14:50 +0100)
committersonartech <sonartech@sonarsource.com>
Fri, 8 Dec 2023 20:03:04 +0000 (20:03 +0000)
.cirrus.yml

index b5b4cfe56d61fa3b7a33c7ffd67babccd574144e..b20462d5cb7628e5430966cda889ba25fe05a699 100644 (file)
@@ -74,6 +74,9 @@ except_nightly_task_template: &EXCEPT_ON_NIGHTLY_TASK_TEMPLATE
 except_weekly_task_template: &EXCEPT_ON_WEEKLY_TASK_TEMPLATE
   only_if: $CIRRUS_CRON != $CRON_DATABASE_JOB_NAME
 
+only_on_main_branch_task_template: &ONLY_ON_MAIN_BRANCH_TASK_TEMPLATE
+  only_if: $CIRRUS_BRANCH == $BRANCH_MAIN
+
 database_related_task_template: &DATABASE_RELATED_TASK_TEMPLATE
   only_if: >-
     $CIRRUS_BRANCH == $BRANCH_MAIN || $CIRRUS_BRANCH =~ $BRANCH_PATTERN_MAINTENANCE || $CIRRUS_BRANCH == $BRANCH_NIGHTLY ||
@@ -699,8 +702,8 @@ promote_task:
 
 package_docker_task:
   <<: *DEFAULT_TEMPLATE
+  only_if: $CIRRUS_BRANCH == $BRANCH_MAIN && $CIRRUS_CRON != $CRON_DATABASE_JOB_NAME
   depends_on: promote
-  only_if: $CIRRUS_BRANCH == $BRANCH_MAIN
   ec2_instance:
     <<: *VM_TEMPLATE
   clone_script: |