@@ -50,7 +50,11 @@ def osShortName = ['Windows 10': 'win10',
5050def buildArchConfiguration = [' Debug' : ' x86' ,
5151 ' Release' : ' x64' ]
5252
53- def targetGroupOsMap = [' netcoreapp' : [' Windows 10' , ' Windows 7' , ' Windows_NT' , ' Ubuntu14.04' , ' Ubuntu16.04' , ' Ubuntu16.10' , ' CentOS7.1' , ' OpenSUSE13.2' , ' OpenSUSE42.1' ,
53+ def targetGroupOsMapOuterloop = [' netcoreapp' : [' Windows 10' , ' Windows 7' , ' Windows_NT' , ' Ubuntu14.04' , ' Ubuntu16.04' , ' Ubuntu16.10' , ' CentOS7.1' , ' OpenSUSE13.2' , ' OpenSUSE42.1' ,
54+ ' RHEL7.2' , ' Fedora24' , ' Debian8.4' , ' OSX10.12' , ' PortableLinux' ],
55+ ' netfx' : [' Windows_NT' ]]
56+
57+ def targetGroupOsMapInnerloop = [' netcoreapp' : [' Windows_NT' , ' Ubuntu14.04' , ' Ubuntu16.04' , ' Ubuntu16.10' , ' CentOS7.1' , ' OpenSUSE13.2' , ' OpenSUSE42.1' ,
5458 ' RHEL7.2' , ' Fedora24' , ' Debian8.4' , ' OSX10.12' , ' PortableLinux' ],
5559 ' netfx' : [' Windows_NT' ]]
5660
@@ -215,7 +219,7 @@ def targetGroupOsMap = ['netcoreapp': ['Windows 10', 'Windows 7', 'Windows_NT',
215219// **************************
216220[true , false ]. each { isPR ->
217221 [' netcoreapp' , ' netfx' ]. each { targetGroup ->
218- (targetGroupOsMap [targetGroup]). each { osName ->
222+ (targetGroupOsMapOuterloop [targetGroup]). each { osName ->
219223 [' Debug' , ' Release' ]. each { configurationGroup ->
220224
221225 def osForMachineAffinity = osName
@@ -301,7 +305,7 @@ def targetGroupOsMap = ['netcoreapp': ['Windows 10', 'Windows 7', 'Windows_NT',
301305// Define target group vertical builds that will run on every merge.
302306// **************************
303307[true , false ]. each { isPR ->
304- [' uap' , ' uapaot' , ' netfx ' ]. each { targetGroup ->
308+ [' uap' , ' uapaot' ]. each { targetGroup ->
305309 [' Debug' ]. each { configurationGroup ->
306310 [' Windows_NT' ]. each { osName ->
307311 def osGroup = osGroupMap[osName]
@@ -371,9 +375,9 @@ def targetGroupOsMap = ['netcoreapp': ['Windows 10', 'Windows 7', 'Windows_NT',
371375// that don't run per PR can be requested via a magic phrase.
372376// **************************
373377[true , false ]. each { isPR ->
374- [' netcoreapp' ]. each { targetGroup ->
375- [ ' Debug ' , ' Release ' ] . each { configurationGroup ->
376- [' Windows_NT ' , ' Ubuntu14.04 ' , ' Ubuntu16.04 ' , ' Ubuntu16.10 ' , ' Debian8.4 ' , ' CentOS7.1 ' , ' OpenSUSE13.2 ' , ' OpenSUSE42.1 ' , ' Fedora24 ' , ' RHEL7.2 ' , ' OSX10.12 ' , ' PortableLinux ' ]. each { osName ->
378+ [' netcoreapp' , ' netfx ' ]. each { targetGroup ->
379+ (targetGroupOsMapInnerloop[targetGroup]) . each { osName ->
380+ [' Debug ' , ' Release ' ]. each { configurationGroup ->
377381 def osGroup = osGroupMap[osName]
378382 def osForMachineAffinity = osName
379383
@@ -386,7 +390,8 @@ def targetGroupOsMap = ['netcoreapp': ['Windows 10', 'Windows 7', 'Windows_NT',
386390 // On Windows, use different architectures for Debug and Release.
387391 archGroup = buildArchConfiguration[configurationGroup]
388392 }
389- def newJobName = " ${ osName.toLowerCase()} _${ configurationGroup.toLowerCase()} "
393+ def targetGroupString = targetGroup != ' netcoreapp' ? " ${ targetGroup} _" : ' ' ;
394+ def newJobName = " ${ targetGroupString}${ osName.toLowerCase()} _${ configurationGroup.toLowerCase()} "
390395
391396 def newJob = job(Utilities . getFullJobName(project, newJobName, isPR)) {
392397 // On Windows we use the packer to put together everything. On *nix we use tar
@@ -426,12 +431,13 @@ def targetGroupOsMap = ['netcoreapp': ['Windows 10', 'Windows 7', 'Windows_NT',
426431 Utilities . addArchival(newJob, archiveContents, ' ' , doNotFailIfNothingArchived= true , archiveOnlyIfSuccessful= false )
427432 // Set up triggers
428433 if (isPR) {
434+ targetGroupString = targetGroupString. replaceAll(' _' , ' ' );
429435 // Set PR trigger, we run Windows_NT, Ubuntu 14.04, CentOS 7.1, PortableLinux and OSX on every PR.
430436 if ( osName == ' Windows_NT' || osName == ' Ubuntu14.04' || osName == ' CentOS7.1' || osName == ' OSX10.12' || osName== ' PortableLinux' ) {
431- Utilities . addGithubPRTriggerForBranch(newJob, branch, " Innerloop ${ osName} ${ configurationGroup} ${ archGroup} Build and Test" )
437+ Utilities . addGithubPRTriggerForBranch(newJob, branch, " Innerloop ${ targetGroupString }${ osName} ${ configurationGroup} ${ archGroup} Build and Test" )
432438 }
433439 else {
434- Utilities . addGithubPRTriggerForBranch(newJob, branch, " Innerloop ${ osName} ${ configurationGroup} ${ archGroup} Build and Test" , " (?i).*test\\ W+innerloop\\ W+${ osName} \\ W+${ configurationGroup} .*" )
440+ Utilities . addGithubPRTriggerForBranch(newJob, branch, " Innerloop ${ targetGroupString }${ osName} ${ configurationGroup} ${ archGroup} Build and Test" , " (?i).*test\\ W+innerloop\\ W+${ targetGroupString } ${ osName} \\ W+${ configurationGroup} .*" )
435441 }
436442 }
437443 else {
0 commit comments