Skip to content

Commit 32af766

Browse files
[NO-JIRA] Update cirrus config to skip promote task on nightly cron executed QA
1 parent ceda9af commit 32af766

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.cirrus.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,16 @@ env:
2323
### Project variables
2424
DEPLOY_PULL_REQUEST: true
2525
ARTIFACTS: org.sonarsource:sonar-plugin-api:jar
26+
NIGHTLY_CRON: 'nightly-cron'
2627

2728
CIRRUS_SHELL: bash
2829

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

33+
except_nightly_cron: &EXCEPT_ON_NIGHTLY_CRON
34+
only_if: $CIRRUS_CRON != $NIGHTLY_CRON
35+
3236
container_definition: &CONTAINER_DEFINITION
3337
image: ${CIRRUS_AWS_ACCOUNT}.dkr.ecr.eu-central-1.amazonaws.com/base:j11-g7-latest
3438
cluster_name: ${CIRRUS_CLUSTER_NAME}
@@ -61,6 +65,7 @@ promote_task:
6165
depends_on:
6266
- build
6367
<<: *ONLY_SONARSOURCE_QA
68+
<<: *EXCEPT_ON_NIGHTLY_CRON
6469
eks_container:
6570
<<: *CONTAINER_DEFINITION
6671
cpu: 0.5

0 commit comments

Comments
 (0)