summaryrefslogtreecommitdiff
path: root/netci.groovy
diff options
context:
space:
mode:
authorBruce Forstall <brucefo@microsoft.com>2017-12-20 13:42:02 -0800
committerGitHub <noreply@github.com>2017-12-20 13:42:02 -0800
commitacbf8000414302f6e587bc2511c1e52dea52b9fa (patch)
treec14fadc6c5790dde801772d0131bb7e87ac7e59e /netci.groovy
parent35608254eca65e1e3ddfec6b534d97715bd9dfd6 (diff)
parent0d19b66a9a43ae13f217ecd0d0d4baff8ea19804 (diff)
downloadcoreclr-acbf8000414302f6e587bc2511c1e52dea52b9fa.tar.gz
coreclr-acbf8000414302f6e587bc2511c1e52dea52b9fa.tar.bz2
coreclr-acbf8000414302f6e587bc2511c1e52dea52b9fa.zip
Merge pull request #15396 from BruceForstall/LimitArm64Hardware
Limit Windows ARM64 non-PR testing to certain branches
Diffstat (limited to 'netci.groovy')
-rwxr-xr-xnetci.groovy13
1 files changed, 13 insertions, 0 deletions
diff --git a/netci.groovy b/netci.groovy
index 56cf9b01f8..dc4251a59c 100755
--- a/netci.groovy
+++ b/netci.groovy
@@ -35,6 +35,10 @@ def static getOSGroup(def os) {
// We use this class (vs variables) so that the static functions can access data here.
class Constants {
+ // We have very limited ARM64 hardware (used for ARM/ARMLB/ARM64 testing). So only allow certain branches to use it.
+ def static WindowsArm64Branches = [
+ 'master']
+
// Innerloop build OS's
// The Windows_NT_BuildOnly OS is a way to speed up the Non-NT builds temporarily by avoiding
// test execution in the build flow runs. It generates the exact same build
@@ -656,6 +660,15 @@ 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) {
+ // Limited Windows ARM64 hardware is restricted for non-PR triggers to certain branches.
+ if (os == 'Windows_NT') {
+ if ((architecture == 'arm64') || (architecture == 'arm') || (architecture == 'armlb')) {
+ if (!(branch in Constants.WindowsArm64Branches)) {
+ return
+ }
+ }
+ }
+
// Check scenario.
switch (scenario) {
case 'default':