File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1212 # Use bash (instead of sh on linux or cmd.exe on windows)
1313 CIRRUS_SHELL : bash
1414 JF_ALIAS : " jfrog"
15+ CRON_NIGHTLY_JOB_NAME : " nightly"
1516
1617only_if : $CIRRUS_USER_COLLABORATOR == 'true' && $CIRRUS_TAG == "" && ($CIRRUS_PR != "" || $CIRRUS_BRANCH == 'master' || $CIRRUS_BRANCH =~ "branch-.*")
1718linux_container_definition : &LINUX_CONTAINER_DEFINITION
@@ -183,6 +184,8 @@ analysis_next_task:
183184
184185analysis_SQC_EU_shadow_task :
185186 << : *ANALYSIS_BASE_LINUX_TEMPLATE
187+ # only executed in CRON job AND on master branch
188+ only_if : $CIRRUS_CRON == $CRON_NIGHTLY_JOB_NAME && $CIRRUS_BRANCH == "master"
186189 alias : sonar_analysis_shadow_sqc_eu
187190 name : " SQC-EU Shadow Analysis"
188191 env :
@@ -191,6 +194,8 @@ analysis_SQC_EU_shadow_task:
191194
192195analysis_SQC_US_shadow_task :
193196 << : *ANALYSIS_BASE_LINUX_TEMPLATE
197+ # only executed in CRON job AND on master branch
198+ only_if : $CIRRUS_CRON == $CRON_NIGHTLY_JOB_NAME && $CIRRUS_BRANCH == "master"
194199 alias : sonar_analysis_shadow_sqc_us
195200 name : " SQC-US Shadow Analysis"
196201 env :
@@ -296,8 +301,6 @@ promote_task:
296301 depends_on :
297302 - formatting
298303 - sonar_analysis_next
299- - sonar_analysis_shadow_sqc_eu
300- - sonar_analysis_shadow_sqc_us
301304 - qa
302305 - qa_windows
303306 - build
You can’t perform that action at this time.
0 commit comments