summaryrefslogtreecommitdiff
path: root/netci.groovy
diff options
context:
space:
mode:
authorJarret Shook <jashoo@microsoft.com>2016-06-23 17:46:28 -0700
committerGitHub <noreply@github.com>2016-06-23 17:46:28 -0700
commit9e7fb905a9d14059b12b56cb57aed4c631d6a75a (patch)
tree5f32271e5243bec7fc5827e9fd6f7a95a13c9575 /netci.groovy
parentdaf0bab5c4059e40a489b0e89a5544afc09dc1cd (diff)
parent3a4d5f83f8428a4c257f61c46228329cbceb8e74 (diff)
downloadcoreclr-9e7fb905a9d14059b12b56cb57aed4c631d6a75a.tar.gz
coreclr-9e7fb905a9d14059b12b56cb57aed4c631d6a75a.tar.bz2
coreclr-9e7fb905a9d14059b12b56cb57aed4c631d6a75a.zip
Merge pull request #5961 from jashook/arm32_ci_ubuntu_cross_fix
Seperate the ubuntu-arm build and emulator build
Diffstat (limited to 'netci.groovy')
-rwxr-xr-xnetci.groovy18
1 files changed, 12 insertions, 6 deletions
diff --git a/netci.groovy b/netci.groovy
index ce1907b8e9..b108a41a9a 100755
--- a/netci.groovy
+++ b/netci.groovy
@@ -233,7 +233,7 @@ def static getStressModeEnvSetCmd(def os, def stressModeName) {
// Calculates the name of the build job based on some typical parameters.
//
-def static getJobName(def configuration, def architecture, def os, def scenario, def isBuildOnly) {
+def static getJobName(def configuration, def architecture, def os, def scenario, def isBuildOnly, def isLinuxEmulatorBuild = false) {
// If the architecture is x64, do not add that info into the build name.
// Need to change around some systems and other builds to pick up the right builds
// to do that.
@@ -256,7 +256,12 @@ def static getJobName(def configuration, def architecture, def os, def scenario,
case 'arm64':
case 'arm':
// These are cross builds
- baseName = architecture.toLowerCase() + '_cross_' + configuration.toLowerCase() + '_' + os.toLowerCase()
+ if (isLinuxEmulatorBuild == false) {
+ baseName = architecture.toLowerCase() + '_cross_' + configuration.toLowerCase() + '_' + os.toLowerCase()
+ }
+ else {
+ baseName = architecture.toLowerCase() + '_emulator_cross_' + configuration.toLowerCase() + '_' + os.toLowerCase()
+ }
break
case 'x86ryujit':
baseName = 'x86_ryujit_' + configuration.toLowerCase() + '_' + os.toLowerCase()
@@ -1040,9 +1045,9 @@ def static addTriggers(def job, def branch, def isPR, def architecture, def os,
assert scenario == 'default'
switch (os) {
case 'Ubuntu':
- if (!isLinuxEmulatorBuild) {
+ if (isLinuxEmulatorBuild == false) {
// Removing the regex will cause this to run on each PR.
- Utilities.addGithubPRTriggerForBranch(job, branch, "${os} ${architecture} Cross ${configuration} Build")
+ Utilities.addGithubPRTriggerForBranch(job, branch, "${os} ${architecture} Cross ${configuration} Build", "(?i).*test\\W+Linux\\W+arm\\W+cross\\W+${configuration}.*")
}
else {
Utilities.addGithubPRTriggerForBranch(job, branch, "Linux ARM Emulator Cross ${configuration} Build")
@@ -1419,7 +1424,7 @@ combinedScenarios.each { scenario ->
// Calculate names
def lowerConfiguration = configuration.toLowerCase()
- def jobName = getJobName(configuration, architecture, os, scenario, isBuildOnly)
+ def jobName = getJobName(configuration, architecture, os, scenario, isBuildOnly, isLinuxEmulatorBuild)
def folderName = isJITStressJob(scenario) ? 'jitstress' : '';
// Create the new job
@@ -1747,7 +1752,7 @@ combinedScenarios.each { scenario ->
case 'arm':
// All builds for ARM architecture are run on Ubuntu currently
assert os == 'Ubuntu'
- if (!isLinuxEmulatorBuild) {
+ if (isLinuxEmulatorBuild == false) {
buildCommands += """echo \"Using rootfs in /opt/arm-liux-genueabihf-root\"
ROOTFS_DIR=/opt/arm-linux-genueabihf-root ./build.sh skipmscorlib arm cross verbose ${lowerConfiguration}"""
@@ -1768,6 +1773,7 @@ combinedScenarios.each { scenario ->
// Call the ARM emulator build script to cross build using the ARM emulator rootfs
buildCommands += "./tests/scripts/arm32_ci_script.sh ${armemul_path} ${armrootfs_mountpath} ${lowerConfiguration}"
+
// Basic archiving of the build, no pal tests
Utilities.addArchival(newJob, "bin/Product/**")
break