From daea745870cc84392909b17ee6fcb1d264b6e790 Mon Sep 17 00:00:00 2001 From: Matteo Mara Date: Thu, 27 Apr 2023 17:47:14 +0200 Subject: [PATCH] [NO-JIRA] Update cirrus config to skip promote task on nightly cron executed QA --- .cirrus.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.cirrus.yml b/.cirrus.yml index f8aee16..6446b40 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -24,7 +24,7 @@ env: ### Project variables DEPLOY_PULL_REQUEST: true ARTIFACTS: org.sonarsource.scanner.cli:sonar-scanner-cli:jar - + NIGHTLY_CRON: 'nightly-cron' # # RE-USABLE CONFIGS # @@ -47,6 +47,9 @@ ec2_instance: &EC2_INSTANCE_WINDOWS only_sonarsource_qa: &ONLY_SONARSOURCE_QA only_if: $CIRRUS_USER_COLLABORATOR == 'true' && ($CIRRUS_PR != "" || $CIRRUS_BRANCH == "master" || $CIRRUS_BRANCH =~ "branch-.*" || $CIRRUS_BRANCH =~ "dogfood-on-.*") +except_nightly_cron: &EXCEPT_ON_NIGHTLY_CRON + only_if: $CIRRUS_CRON != $NIGHTLY_CRON + # # TASKS # @@ -153,6 +156,7 @@ promote_task: - win_qa_java11 - win_qa_java17 <<: *ONLY_SONARSOURCE_QA + <<: *EXCEPT_ON_NIGHTLY_CRON eks_container: <<: *EKS_CONTAINER cpu: 0.5 -- 2.39.5