aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2024-05-30 14:21:33 +0200
committerJulien HENRY <julien.henry@sonarsource.com>2024-06-07 11:21:56 +0200
commitd49810924ea470250814224bac2abce93b2e6d03 (patch)
tree57db7c993fca081925a8132ee859f848c6e5d9d8
parent30128bd7b57415c3c408dd5f29bb54643b3f8795 (diff)
downloadsonar-scanner-cli-d49810924ea470250814224bac2abce93b2e6d03.tar.gz
sonar-scanner-cli-d49810924ea470250814224bac2abce93b2e6d03.zip
Prevent the promote task to run on tags
Having two times the `only_if` element will make the second one override the first. I didn't find a way to avoid the duplication.
-rw-r--r--.cirrus.yml7
1 files changed, 3 insertions, 4 deletions
diff --git a/.cirrus.yml b/.cirrus.yml
index a70cce5..d7eabb3 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -45,8 +45,8 @@ ec2_instance: &EC2_INSTANCE_WINDOWS
only_sonarsource_qa: &ONLY_SONARSOURCE_QA
only_if: $CIRRUS_USER_COLLABORATOR == 'true' && $CIRRUS_TAG == "" && ($CIRRUS_PR != "" || $CIRRUS_BRANCH == $CIRRUS_DEFAULT_BRANCH || $CIRRUS_BRANCH =~ "branch-.*" || $CIRRUS_BUILD_SOURCE == 'api' )
-except_nightly_cron: &EXCEPT_ON_NIGHTLY_CRON
- only_if: $CIRRUS_CRON != $NIGHTLY_CRON
+except_nightly_cron: &ONLY_SONARSOURCE_QA_EXCEPT_ON_NIGHTLY_CRON
+ only_if: $CIRRUS_USER_COLLABORATOR == 'true' && $CIRRUS_TAG == "" && ($CIRRUS_PR != "" || $CIRRUS_BRANCH == $CIRRUS_DEFAULT_BRANCH || $CIRRUS_BRANCH =~ "branch-.*" || $CIRRUS_BUILD_SOURCE == 'api' ) && $CIRRUS_CRON != $NIGHTLY_CRON
#
# TASKS
@@ -144,8 +144,7 @@ promote_task:
depends_on:
- linux_qa_java17
- win_qa_java17
- <<: *ONLY_SONARSOURCE_QA
- <<: *EXCEPT_ON_NIGHTLY_CRON
+ <<: *ONLY_SONARSOURCE_QA_EXCEPT_ON_NIGHTLY_CRON
eks_container:
<<: *EKS_CONTAINER
cpu: 0.5
52' href='#n52'>52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140