Fixup
authorMatt Mitchell <mmitche@microsoft.com>
Thu, 15 Oct 2015 23:19:21 +0000 (16:19 -0700)
committerMatt Mitchell <mmitche@microsoft.com>
Thu, 15 Oct 2015 23:19:21 +0000 (16:19 -0700)
netci.groovy

index ea5277b..60f74d0 100644 (file)
@@ -124,64 +124,65 @@ def static getBuildJobName(def configuration, def os) {
 
 // Ubuntu cross compiled arm and arm64 builds
 // Scheduled for nightly and on-demand PR for now
-
-def os = 'Ubuntu'
-[true, false].each { isPR ->
-    ['Debug', 'Release'].each { configuration ->
-        def lowerConfiguration = configuration.toLowerCase()
-        
-        // Create the new job
-        def newArm64Job = job(Utilities.getFullJobName(project, "arm64_cross_${os.toLowerCase()}_${lowerConfiguration}", isPR)) {
-            // Set the label.
-            label(machineLabelMap[os])
-            steps {
-                shell("""
-echo \"Using rootfs in /opt/aarch64-linux-gnu-root\"
-ROOTFS_DIR=/opt/aarch64-linux-gnu-root ./build.sh skipmscorlib arm64 cross verbose ${lowerConfiguration}""")
+// Cross compiled OS names go here
+['Ubuntu'].each { os ->
+    [true, false].each { isPR ->
+        ['Debug', 'Release'].each { configuration ->
+            def lowerConfiguration = configuration.toLowerCase()
+            
+            // Create the new job
+            def newArm64Job = job(Utilities.getFullJobName(project, "arm64_cross_${os.toLowerCase()}_${lowerConfiguration}", isPR)) {
+                // Set the label.
+                label(machineLabelMap[os])
+                steps {
+                    shell("""
+    echo \"Using rootfs in /opt/aarch64-linux-gnu-root\"
+    ROOTFS_DIR=/opt/aarch64-linux-gnu-root ./build.sh skipmscorlib arm64 cross verbose ${lowerConfiguration}""")
+                }
             }
-        }
-        
-        if (!isPR) {
-            // Add rolling job options
-            Utilities.addScm(newArm64Job, project)
-            Utilities.addStandardNonPRParameters(newArm64Job)
-            Utilities.addPeriodicTrigger(newArm64Job, '@daily')
-            Utilities.addArchival(newArm64Job, "bin/Product/**")
-        }
-        else {
-            // Add PR job options
-            Utilities.addPRTestSCM(newArm64Job, project)
-            Utilities.addStandardPRParameters(newArm64Job, project)
-            Utilities.addGithubPRTrigger(newArm64Job, "Arm64 ${os} cross ${configuration} Build", '@dotnet-bot test arm')
-        }
-        
-        // Create the new job
-        def newArmJob = job(Utilities.getFullJobName(project, "arm_cross_${os.toLowerCase()}_${lowerConfiguration}", isPR)) {
-            // Set the label.
-            label(machineLabelMap[os])
-            steps {
-                shell("""
-echo \"Using rootfs in /opt/arm-liux-genueabihf-root\"
-ROOTFS_DIR=/opt/arm-liux-genueabihf-root ./build.sh skipmscorlib arm cross verbose ${lowerConfiguration}""")
+            
+            if (!isPR) {
+                // Add rolling job options
+                Utilities.addScm(newArm64Job, project)
+                Utilities.addStandardNonPRParameters(newArm64Job)
+                Utilities.addPeriodicTrigger(newArm64Job, '@daily')
+                Utilities.addArchival(newArm64Job, "bin/Product/**")
+            }
+            else {
+                // Add PR job options
+                Utilities.addPRTestSCM(newArm64Job, project)
+                Utilities.addStandardPRParameters(newArm64Job, project)
+                Utilities.addGithubPRTrigger(newArm64Job, "Arm64 ${os} cross ${configuration} Build", '@dotnet-bot test arm')
+            }
+            
+            // Create the new job
+            def newArmJob = job(Utilities.getFullJobName(project, "arm_cross_${os.toLowerCase()}_${lowerConfiguration}", isPR)) {
+                // Set the label.
+                label(machineLabelMap[os])
+                steps {
+                    shell("""
+    echo \"Using rootfs in /opt/arm-liux-genueabihf-root\"
+    ROOTFS_DIR=/opt/arm-liux-genueabihf-root ./build.sh skipmscorlib arm cross verbose ${lowerConfiguration}""")
+                }
+            }
+            
+            if (!isPR) {
+                // Add rolling job options
+                Utilities.addScm(newArmJob, project)
+                Utilities.addStandardNonPRParameters(newArmJob)
+                Utilities.addPeriodicTrigger(newArmJob, '@daily')
+                Utilities.addArchival(newArmJob, "bin/Product/**")
+            }
+            else {
+                // Add PR job options
+                Utilities.addPRTestSCM(newArmJob, project)
+                Utilities.addStandardPRParameters(newArmJob, project)
+                Utilities.addGithubPRTrigger(newArmJob, "Arm ${os} cross ${configuration} Build", '@dotnet-bot test arm')
+            }
+            
+            [newArmJob, newArm64Job].each { newJob ->
+                Utilities.addStandardOptions(newJob)
             }
-        }
-        
-        if (!isPR) {
-            // Add rolling job options
-            Utilities.addScm(newArmJob, project)
-            Utilities.addStandardNonPRParameters(newArmJob)
-            Utilities.addPeriodicTrigger(newArmJob, '@daily')
-            Utilities.addArchival(newArmJob, "bin/Product/**")
-        }
-        else {
-            // Add PR job options
-            Utilities.addPRTestSCM(newArmJob, project)
-            Utilities.addStandardPRParameters(newArmJob, project)
-            Utilities.addGithubPRTrigger(newArmJob, "Arm ${os} cross ${configuration} Build", '@dotnet-bot test arm')
-        }
-        
-        [newArmJob, newArm64Job].each { newJob ->
-            Utilities.addStandardOptions(newJob)
         }
     }
 }