summaryrefslogtreecommitdiff
path: root/netci.groovy
diff options
context:
space:
mode:
authorBruce Forstall <Bruce_Forstall@msn.com>2018-10-30 23:37:20 -0700
committerBruce Forstall <Bruce_Forstall@msn.com>2018-10-30 23:40:01 -0700
commit4c2069d8844b4820290a1ed133ac18689f2e5cf6 (patch)
tree98926f1a6cb0765c858094e0908b3cdce4bf9880 /netci.groovy
parent311bb51443fd510a2c6966efabd9bda1bedc5696 (diff)
downloadcoreclr-4c2069d8844b4820290a1ed133ac18689f2e5cf6.tar.gz
coreclr-4c2069d8844b4820290a1ed133ac18689f2e5cf6.tar.bz2
coreclr-4c2069d8844b4820290a1ed133ac18689f2e5cf6.zip
Disable non-PR triggers in dev/unix_test_workflow branch
Diffstat (limited to 'netci.groovy')
-rwxr-xr-xnetci.groovy9
1 files changed, 8 insertions, 1 deletions
diff --git a/netci.groovy b/netci.groovy
index 94e0f6d5aa..22dd961918 100755
--- a/netci.groovy
+++ b/netci.groovy
@@ -1310,7 +1310,12 @@ def static getJobName(def configuration, def architecture, def os, def scenario,
}
def static addNonPRTriggers(def job, def branch, def isPR, def architecture, def os, def configuration, def scenario, def isFlowJob, def isWindowsBuildOnlyJob, def bidailyCrossList) {
- def isNormalOrInnerloop = (scenario == "normal" || scenario == "innerloop")
+
+ // The dev/unix_test_workflow branch is used for Jenkins CI testing. We generally do not need any non-PR
+ // triggers in the branch, because that would use machine resources unnecessarily.
+ if (branch == 'dev/unix_test_workflow') {
+ return
+ }
// Limited hardware is restricted for non-PR triggers to certain branches.
if (jobRequiresLimitedHardware(architecture, os) && (!(branch in Constants.LimitedHardwareBranches))) {
@@ -1323,6 +1328,8 @@ def static addNonPRTriggers(def job, def branch, def isPR, def architecture, def
return
}
+ def isNormalOrInnerloop = (scenario == "normal" || scenario == "innerloop")
+
// Check scenario.
switch (scenario) {
case 'crossgen_comparison':