From 33d7fdc6055266f07fb76204a806e758d35999fc Mon Sep 17 00:00:00 2001 From: Matt Mitchell Date: Thu, 15 Oct 2015 16:19:21 -0700 Subject: [PATCH] Fixup --- netci.groovy | 113 ++++++++++++++++++++++++++++++----------------------------- 1 file changed, 57 insertions(+), 56 deletions(-) diff --git a/netci.groovy b/netci.groovy index ea5277b..60f74d0 100644 --- a/netci.groovy +++ b/netci.groovy @@ -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) } } } -- 2.7.4