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:
parent
132b175395
commit
3eed692185
1 changed files with 6 additions and 5 deletions
11
netci.groovy
11
netci.groovy
|
@ -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")
|
||||
|
|
Loading…
Add table
Reference in a new issue