From 66d0e7052e24875be41d4956be09bb691c90f86a Mon Sep 17 00:00:00 2001 From: smile21prc Date: Fri, 25 Aug 2017 09:38:49 -0700 Subject: [PATCH] Add RedHat6 to official builds of core-setup in master branch (#3024) * Add RedHat6 to official builds of core-setup in master branch Add RedHat6 to official builds of core-setup in master branch, this is identical to the PR to enable Rhel6 in release/2.0.0: https://github.com/dotnet/core-setup/pull/3017 * Rename the RID. Rename the RID as we don't have a RID for 6.9. * Update docker tag and add logic to detect RHEL6 in init-tools.sh Update docker tag and add logic to detect RHEL6 in init-tools.sh * Port changes from Release/2.0.0 to fix core-setup RHEL 6 official runs. Port changes from Release/2.0.0 to fix core-setup RHEL 6 official runs. * Fix indentation Fix indentation * Port one more related commit from release/2.0.0 back to master Port one more related commit from release/2.0.0 back to master, which is: https://github.com/dotnet/core-setup/commit/15e34cd2c57ae5daa83c412d987dd342886d799a * Update to use the correction version of runtimemodel Update to use the correction version of runtimemodel * Try to fix the CI error by updating NugetModelTFM to net45 Try to fix the CI error by updating NugetModelTFM to net45 * Revert "Try to fix the CI error by updating NugetModelTFM to net45" This reverts commit d740f18750362245427b67ca45301f60b31faa47. * Remove runtimemodel reference I built core-setup locally, and didn't see runtimemodel package any more with current version 4.3.0-preview2-4095. It is possible that it might not be needed any longer. Remove it first and verify it all works. If there is still runtime errors then we may need to explicitly add a package reference to it * Remove unused NugetModelTFM node as well Remove unused NugetModelTFM node as well * Remove extra spaces Remove extra spaces --- build.proj | 2 +- buildpipeline/pipeline.json | 43 +++++++++++++++++++++++++------------ dir.targets | 2 +- init-tools.sh | 8 +++++++ 4 files changed, 39 insertions(+), 16 deletions(-) diff --git a/build.proj b/build.proj index a29fa1f6..f1230376 100644 --- a/build.proj +++ b/build.proj @@ -6,7 +6,7 @@ true - + true diff --git a/buildpipeline/pipeline.json b/buildpipeline/pipeline.json index 640e36a0..07db339c 100644 --- a/buildpipeline/pipeline.json +++ b/buildpipeline/pipeline.json @@ -31,22 +31,37 @@ } }, { - "Name": "Core-Setup-Linux-Arm-BT", - "Parameters": { - "PB_DistroRid": "ubuntu.14.04-arm", - "PB_DockerTag": "ubuntu-14.04-cross-0cd4667-20172211042239", - "PB_TargetArchitecture": "arm", + "Name": "Core-Setup-Linux-Arm-BT", + "Parameters": { + "PB_DistroRid": "rhel.6-x64", + "PB_DockerTag": "centos-6-c8c9b08-20174310104313", + "PB_TargetArchitecture": "x64", + "PB_AdditionalBuildArguments":"-TargetArchitecture=x64 -DistroRid=rhel.6-x64 -PortableBuild=false -strip-symbols", + "PB_PortableBuild": "false" + }, + "ReportingParameters": { + "OperatingSystem": "RedHat6", + "Type": "build/product/", + "Platform": "x64" + } + }, + { + "Name": "Core-Setup-Linux-Arm-BT", + "Parameters": { + "PB_DistroRid": "ubuntu.14.04-arm", + "PB_DockerTag": "ubuntu-14.04-cross-0cd4667-20172211042239", + "PB_TargetArchitecture": "arm", "PB_AdditionalBuildArguments":"-TargetArchitecture=arm -DistroRid=linux-arm -DisableCrossgen=true -PortableBuild=true -SkipTests=true -CrossBuild=true -strip-symbols", "PB_CrossBuildArgs": "-e ROOTFS_DIR ", - "PB_PortableBuild": "true" - }, - "ReportingParameters": { - "SubType": "PortableBuild", - "OperatingSystem": "Ubuntu 14.04", - "Type": "build/product/", - "Platform": "arm" - } - }, + "PB_PortableBuild": "true" + }, + "ReportingParameters": { + "SubType": "PortableBuild", + "OperatingSystem": "Ubuntu 14.04", + "Type": "build/product/", + "Platform": "arm" + } + }, { "Name": "Core-Setup-OSX-BT", "Parameters": { diff --git a/dir.targets b/dir.targets index 8f1afd55..986f75b1 100644 --- a/dir.targets +++ b/dir.targets @@ -20,7 +20,7 @@ netstandard1.3 net451 - + diff --git a/init-tools.sh b/init-tools.sh index ddb8b75e..7a2dec21 100755 --- a/init-tools.sh +++ b/init-tools.sh @@ -33,6 +33,14 @@ OSName=$(uname -s) Linux) __DOTNET_PKG=dotnet-dev-linux-x64 OS=Linux + + if [ -e /etc/redhat-release ]; then + redhatRelease=$(