Merge remote-tracking branch 'origin/release/2.1.3xx' into merges/release/2.1.3xx-to-release/2.1.4xx
This commit is contained in:
commit
befc400ba8
3 changed files with 51 additions and 36 deletions
|
@ -10,7 +10,7 @@
|
||||||
($(Rid.StartsWith('rhel.6'))
|
($(Rid.StartsWith('rhel.6'))
|
||||||
OR $(Rid.StartsWith('linux-musl'))
|
OR $(Rid.StartsWith('linux-musl'))
|
||||||
OR $(Rid.StartsWith('fedora.27'))
|
OR $(Rid.StartsWith('fedora.27'))
|
||||||
OR $(Rid.StartsWith('opensuse.43.2'))
|
OR $(Rid.StartsWith('opensuse.42.3'))
|
||||||
OR $(Rid.StartsWith('ubuntu.18.04')))">true</SkipBuildingInstallers>
|
OR $(Rid.StartsWith('ubuntu.18.04')))">true</SkipBuildingInstallers>
|
||||||
<SkipBuildingInstallers Condition=" '$(SkipBuildingInstallers)' == '' ">false</SkipBuildingInstallers>
|
<SkipBuildingInstallers Condition=" '$(SkipBuildingInstallers)' == '' ">false</SkipBuildingInstallers>
|
||||||
<UsePortableLinuxSharedFramework Condition=" '$(UsePortableLinuxSharedFramework)' == '' AND '$(OSPlatform)' == 'linux' AND '$(Rid)' != 'rhel.6-x64' AND '$(Rid)' != 'linux-musl-x64' ">true</UsePortableLinuxSharedFramework>
|
<UsePortableLinuxSharedFramework Condition=" '$(UsePortableLinuxSharedFramework)' == '' AND '$(OSPlatform)' == 'linux' AND '$(Rid)' != 'rhel.6-x64' AND '$(Rid)' != 'linux-musl-x64' ">true</UsePortableLinuxSharedFramework>
|
||||||
|
@ -19,7 +19,7 @@
|
||||||
AND '$(Rid)' != 'rhel.6-x64'
|
AND '$(Rid)' != 'rhel.6-x64'
|
||||||
AND '$(Rid)' != 'linux-musl-x64'
|
AND '$(Rid)' != 'linux-musl-x64'
|
||||||
AND '$(Rid)' != 'fedora.27-x64'
|
AND '$(Rid)' != 'fedora.27-x64'
|
||||||
AND '$(Rid)' != 'opensuse.43.2-x64'
|
AND '$(Rid)' != 'opensuse.42.3-x64'
|
||||||
AND '$(Rid)' != 'ubuntu.18.04-x64'">true</IncludeSharedFrameworksForBackwardsCompatibilityTests>
|
AND '$(Rid)' != 'ubuntu.18.04-x64'">true</IncludeSharedFrameworksForBackwardsCompatibilityTests>
|
||||||
<HighEntropyVA>true</HighEntropyVA>
|
<HighEntropyVA>true</HighEntropyVA>
|
||||||
|
|
||||||
|
|
83
netci.groovy
83
netci.groovy
|
@ -18,7 +18,9 @@ def platformList = [
|
||||||
'Linux:arm64:Debug',
|
'Linux:arm64:Debug',
|
||||||
'Linux-musl:x64:Debug',
|
'Linux-musl:x64:Debug',
|
||||||
'Linux:x64:Release',
|
'Linux:x64:Release',
|
||||||
'opensuse.43.2:x64:Debug',
|
'Linux_NoSuffix:arm:Release',
|
||||||
|
'Linux_NoSuffix:x64:Release',
|
||||||
|
'opensuse.42.3:x64:Debug',
|
||||||
'OSX10.12:x64:Release',
|
'OSX10.12:x64:Release',
|
||||||
'RHEL6:x64:Debug',
|
'RHEL6:x64:Debug',
|
||||||
'RHEL7.2:x64:Release',
|
'RHEL7.2:x64:Release',
|
||||||
|
@ -27,7 +29,8 @@ def platformList = [
|
||||||
'ubuntu.18.04:x64:Debug',
|
'ubuntu.18.04:x64:Debug',
|
||||||
'Windows_NT:x64:Release',
|
'Windows_NT:x64:Release',
|
||||||
'Windows_NT:x86:Debug',
|
'Windows_NT:x86:Debug',
|
||||||
'Windows_NT_ES:x64:Debug'
|
'Windows_NT_ES:x64:Debug',
|
||||||
|
'Windows_NT_NoSuffix:x64:Release'
|
||||||
]
|
]
|
||||||
|
|
||||||
def static getBuildJobName(def configuration, def os, def architecture) {
|
def static getBuildJobName(def configuration, def os, def architecture) {
|
||||||
|
@ -42,50 +45,62 @@ platformList.each { platform ->
|
||||||
|
|
||||||
// Calculate job name
|
// Calculate job name
|
||||||
def jobName = getBuildJobName(configuration, os, architecture)
|
def jobName = getBuildJobName(configuration, os, architecture)
|
||||||
def buildCommand = '';
|
def baseBatchBuildCommand = ".\\build.cmd -Configuration ${configuration} -Architecture ${architecture} -Targets Default";
|
||||||
|
def baseShellBuildCommand = "./build.sh --skip-prereqs --configuration ${configuration} --targets Default";
|
||||||
|
|
||||||
// Calculate the build command
|
// Calculate the build command
|
||||||
if (os == 'Windows_NT') {
|
if (os.startsWith("Windows_NT")) {
|
||||||
buildCommand = ".\\build.cmd -Configuration ${configuration} -Architecture ${architecture} -Targets Default"
|
osUsedForMachineAffinity = 'Windows_NT'
|
||||||
|
buildCommand = "${baseBatchBuildCommand}"
|
||||||
|
if (os == 'Windows_NT_ES') {
|
||||||
|
buildCommand = """
|
||||||
|
set DOTNET_CLI_UI_LANGUAGE=es
|
||||||
|
${buildCommand}
|
||||||
|
"""
|
||||||
|
}
|
||||||
|
else if (os == 'Windows_NT_NoSuffix') {
|
||||||
|
buildCommand = """
|
||||||
|
set DropSuffix=true
|
||||||
|
${buildCommand}
|
||||||
|
"""
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (os == 'Windows_2016') {
|
else if (os == 'Windows_2016') {
|
||||||
buildCommand = ".\\build.cmd -Configuration ${configuration} -Architecture ${architecture} -RunInstallerTestsInDocker -Targets Default"
|
buildCommand = "${baseBatchBuildCommand} -RunInstallerTestsInDocker"
|
||||||
}
|
}
|
||||||
else if (os == 'Windows_NT_ES') {
|
else if (os.startsWith("Linux")) {
|
||||||
osUsedForMachineAffinity = 'Windows_NT'
|
osUsedForMachineAffinity = 'Ubuntu16.04';
|
||||||
buildCommand = """
|
if (os == 'Linux-musl') {
|
||||||
set DOTNET_CLI_UI_LANGUAGE=es
|
buildCommand = "${baseShellBuildCommand} --runtime-id linux-musl-x64 --docker alpine.3.6"
|
||||||
.\\build.cmd -Configuration ${configuration} -Architecture ${architecture} -Targets Default
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
buildCommand = "${baseShellBuildCommand} --linux-portable"
|
||||||
|
if ((architecture == 'arm') || (architecture == 'arm64')) {
|
||||||
|
buildCommand = "${buildCommand} --architecture ${architecture} /p:CLIBUILD_SKIP_TESTS=true"
|
||||||
|
}
|
||||||
|
if (os == 'Linux_NoSuffix') {
|
||||||
|
buildCommand = """
|
||||||
|
export DropSuffix=true
|
||||||
|
${buildCommand}
|
||||||
"""
|
"""
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (os == 'Ubuntu') {
|
else if (os == 'Ubuntu') {
|
||||||
buildCommand = "./build.sh --skip-prereqs --configuration ${configuration} --docker ubuntu.14.04 --targets Default"
|
buildCommand = "${baseShellBuildCommand} --docker ubuntu.14.04"
|
||||||
}
|
|
||||||
else if (os == 'Linux') {
|
|
||||||
osUsedForMachineAffinity = 'Ubuntu16.04';
|
|
||||||
if ((architecture == 'arm') || (architecture == 'arm64')) {
|
|
||||||
buildCommand = "./build.sh --linux-portable --skip-prereqs --architecture ${architecture} --configuration ${configuration} --targets Default /p:CLIBUILD_SKIP_TESTS=true"
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
buildCommand = "./build.sh --linux-portable --skip-prereqs --configuration ${configuration} --targets Default"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else if (os == 'RHEL6') {
|
else if (os == 'RHEL6') {
|
||||||
osUsedForMachineAffinity = 'Ubuntu16.04';
|
osUsedForMachineAffinity = 'Ubuntu16.04';
|
||||||
buildCommand = "./build.sh --skip-prereqs --configuration ${configuration} --runtime-id rhel.6-x64 --docker rhel.6 --targets Default"
|
buildCommand = "${baseShellBuildCommand} --runtime-id rhel.6-x64 --docker rhel.6"
|
||||||
}
|
}
|
||||||
else if (os == 'Linux-musl') {
|
else if (os == 'ubuntu.18.04' || os == 'fedora.27' || os == 'opensuse.42.3') {
|
||||||
osUsedForMachineAffinity = 'Ubuntu16.04';
|
|
||||||
buildCommand = "./build.sh --skip-prereqs --configuration ${configuration} --runtime-id linux-musl-x64 --docker alpine.3.6 --targets Default"
|
|
||||||
}
|
|
||||||
else if (os == 'ubuntu.18.04' || os == 'fedora.27' || os == 'opensuse.43.2') {
|
|
||||||
osUsedForMachineAffinity = 'Ubuntu16.04'
|
osUsedForMachineAffinity = 'Ubuntu16.04'
|
||||||
osVersionUsedForMachineAffinity = 'latest-docker'
|
osVersionUsedForMachineAffinity = 'latest-docker'
|
||||||
buildCommand = "./build.sh --linux-portable --skip-prereqs --configuration ${configuration} --docker ${os} --targets Default"
|
buildCommand = "${baseShellBuildCommand} --docker ${os} --linux-portable"
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// Jenkins non-Ubuntu CI machines don't have docker
|
buildCommand = "${baseShellBuildCommand}"
|
||||||
buildCommand = "./build.sh --skip-prereqs --configuration ${configuration} --targets Default"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
def newJob = job(Utilities.getFullJobName(project, jobName, isPR)) {
|
def newJob = job(Utilities.getFullJobName(project, jobName, isPR)) {
|
||||||
|
@ -110,10 +125,10 @@ set DOTNET_CLI_UI_LANGUAGE=es
|
||||||
}
|
}
|
||||||
Utilities.addGithubPRTriggerForBranch(newJob, branch, "${os} ${architecture} ${configuration} Build")
|
Utilities.addGithubPRTriggerForBranch(newJob, branch, "${os} ${architecture} ${configuration} Build")
|
||||||
|
|
||||||
def archiveSettings = new ArchivalSettings()
|
def archiveSettings = new ArchivalSettings()
|
||||||
archiveSettings.addFiles("test/**/*.trx")
|
archiveSettings.addFiles("test/**/*.trx")
|
||||||
archiveSettings.setFailIfNothingArchived()
|
archiveSettings.setFailIfNothingArchived()
|
||||||
archiveSettings.setArchiveOnFailure()
|
archiveSettings.setArchiveOnFailure()
|
||||||
Utilities.addArchival(newJob, archiveSettings)
|
Utilities.addArchival(newJob, archiveSettings)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue