Skip to content

Commit

Permalink
Propagate defaultMachineTag throughout netci.groovy
Browse files Browse the repository at this point in the history
  • Loading branch information
dilijev committed Mar 27, 2018
1 parent 6a529fb commit d382ecc
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions netci.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ def machineTypeToOSTagMap = [
]

def defaultMachineTag = 'latest-or-auto'
def defaultWindowsMachineTag = defaultMachineTag
def defaultXPlatMachineTag = defaultMachineTag

def legacyWindowsMachine = 'Windows 7'
def legacyWindowsMachineTag = defaultMachineTag
Expand Down Expand Up @@ -85,7 +87,7 @@ def CreateBuildTask = { isPR, buildArch, buildType, machine, machineTag, configT
false, // doNotFailIfNothingArchived=false ~= failIfNothingArchived
false) // archiveOnlyIfSuccessful=false ~= archiveAlways

Utilities.setMachineAffinity(newJob, machine, machineTag ?: defaultMachineTag)
Utilities.setMachineAffinity(newJob, machine, machineTag ?: defaultWindowsMachineTag)
Utilities.standardJobSetup(newJob, project, isPR, "*/${branch}")

if (nonDefaultTaskSetup == null) {
Expand Down Expand Up @@ -152,7 +154,7 @@ def CreateXPlatBuildTask = { isPR, buildType, staticBuild, machine, platform, co
true, // doNotFailIfNothingArchived=false ~= failIfNothingArchived (true ~= doNotFail)
false) // archiveOnlyIfSuccessful=false ~= archiveAlways

Utilities.setMachineAffinity(newJob, machine, 'latest-or-auto')
Utilities.setMachineAffinity(newJob, machine, defaultXPlatMachineTag)
Utilities.standardJobSetup(newJob, project, isPR, "*/${branch}")

if (nonDefaultTaskSetup == null) {
Expand Down Expand Up @@ -223,15 +225,15 @@ def CreateStyleCheckTasks = { taskString, taskName, checkName ->
Utilities.addGithubPushTrigger(newJob)
}

Utilities.setMachineAffinity(newJob, 'Ubuntu16.04', 'latest-or-auto')
Utilities.setMachineAffinity(newJob, 'Ubuntu16.04', defaultXPlatMachineTag)
}
}

// ----------------
// INNER LOOP TASKS
// ----------------

CreateBuildTasks(latestWindowsMachine, latestWindowsMachineTag, null, null, "-winBlue", true, null, null)
CreateBuildTasks(latestWindowsMachine, latestWindowsMachineTag, null, null, "-win10", true, null, null)

// Add some additional daily configs to trigger per-PR as a quality gate:
// x64_debug Slow Tests
Expand Down

0 comments on commit d382ecc

Please sign in to comment.