Fix auto starting arm64 ubuntu jobs
authorjashook <jashoo@microsoft.com>
Wed, 19 Jul 2017 16:48:35 +0000 (09:48 -0700)
committerjashook <jashoo@microsoft.com>
Thu, 20 Jul 2017 05:05:22 +0000 (22:05 -0700)
netci.groovy

index 93362dea2a6015049d9c7340d93015818f8930b4..0843a1e33b0b75254cd672996d30f8fdcdf76c03 100755 (executable)
@@ -1204,8 +1204,12 @@ def static addTriggers(def job, def branch, def isPR, def architecture, def os,
                 case 'Windows_NT':
                     switch (scenario) {
                         case 'default':
+                            if (isFlowJob == true) {
+                                Utilities.addGithubPRTriggerForBranch(job, branch, "(?i).*test\\W+${os}\\W+${architecture}\\W+${configuration}.*")
+                            }
+
                             // For now only run Debug jobs on PR Trigger.
-                            if (configuration != 'Debug') {
+                            else if (configuration != 'Debug') {
                                 Utilities.addPrivateGithubPRTriggerForBranch(job, branch, contextString,
                                 "(?i).*test\\W+${os}\\W+${architecture}\\W+${configuration}.*", null, arm64Users)
                             }