Change the Build name for the Linux portable (#5980)

* Change the Build name for the Linux portable

* Update variable names
This commit is contained in:
Justin Goshi 2017-03-09 09:02:14 -10:00 committed by GitHub
parent 132b175395
commit 3eed692185

View file

@ -19,6 +19,7 @@ def static getBuildJobName(def configuration, def os, def architecture) {
platformList.each { platform ->
// Calculate names
def (os, architecture, configuration) = platform.tokenize(':')
def osUsedForMachineAffinity = os;
// Calculate job name
def jobName = getBuildJobName(configuration, os, architecture)
@ -34,10 +35,10 @@ platformList.each { platform ->
else if (os == 'Ubuntu') {
buildCommand = "./build.sh --skip-prereqs --configuration ${configuration} --docker ubuntu.14.04 --targets Default"
}
else if (os == 'Linux') {
os = 'Ubuntu16.04';
buildCommand = "./build.sh --linux-portable --skip-prereqs --configuration ${configuration} --targets Default"
}
else if (os == 'Linux') {
osUsedForMachineAffinity = 'Ubuntu16.04';
buildCommand = "./build.sh --linux-portable --skip-prereqs --configuration ${configuration} --targets Default"
}
else {
// Jenkins non-Ubuntu CI machines don't have docker
buildCommand = "./build.sh --skip-prereqs --configuration ${configuration} --targets Default"
@ -57,7 +58,7 @@ platformList.each { platform ->
}
}
Utilities.setMachineAffinity(newJob, os, 'latest-or-auto')
Utilities.setMachineAffinity(newJob, osUsedForMachineAffinity, 'latest-or-auto')
Utilities.standardJobSetup(newJob, project, isPR, "*/${branch}")
Utilities.addMSTestResults(newJob, '**/*.trx')
Utilities.addGithubPRTriggerForBranch(newJob, branch, "${os} ${architecture} ${configuration} Build")