Skip to content

Commit

Permalink
[NO-JIRA] Update cirrus config to skip promote task on nightly cron e…
Browse files Browse the repository at this point in the history
…xecuted QA
  • Loading branch information
matteo-mara-sonarsource committed Apr 28, 2023
1 parent ceda9af commit 32af766
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,16 @@ env:
### Project variables
DEPLOY_PULL_REQUEST: true
ARTIFACTS: org.sonarsource:sonar-plugin-api:jar
NIGHTLY_CRON: 'nightly-cron'

CIRRUS_SHELL: bash

only_sonarsource_qa: &ONLY_SONARSOURCE_QA
only_if: $CIRRUS_USER_COLLABORATOR == 'true' && ($CIRRUS_PR != "" || $CIRRUS_BRANCH == "master" || $CIRRUS_BRANCH =~ "branch-.*")

except_nightly_cron: &EXCEPT_ON_NIGHTLY_CRON
only_if: $CIRRUS_CRON != $NIGHTLY_CRON

container_definition: &CONTAINER_DEFINITION
image: ${CIRRUS_AWS_ACCOUNT}.dkr.ecr.eu-central-1.amazonaws.com/base:j11-g7-latest
cluster_name: ${CIRRUS_CLUSTER_NAME}
Expand Down Expand Up @@ -61,6 +65,7 @@ promote_task:
depends_on:
- build
<<: *ONLY_SONARSOURCE_QA
<<: *EXCEPT_ON_NIGHTLY_CRON
eks_container:
<<: *CONTAINER_DEFINITION
cpu: 0.5
Expand Down

0 comments on commit 32af766

Please sign in to comment.