Update dependencies from https://github.com/dotnet/arcade build 20191207.3 (#5848)
- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19607.3
This commit is contained in:
parent
f25735cdef
commit
00b314d83b
9 changed files with 94 additions and 20 deletions
|
@ -100,9 +100,9 @@
|
||||||
</Dependency>
|
</Dependency>
|
||||||
</ProductDependencies>
|
</ProductDependencies>
|
||||||
<ToolsetDependencies>
|
<ToolsetDependencies>
|
||||||
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="1.0.0-beta.19605.2">
|
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="1.0.0-beta.19607.3">
|
||||||
<Uri>https://github.com/dotnet/arcade</Uri>
|
<Uri>https://github.com/dotnet/arcade</Uri>
|
||||||
<Sha>194fdce1e0692b4f43afacb1d386fbfe664d95cf</Sha>
|
<Sha>4d80b9cfa53e309c8f685abff3512f60c3d8a3d1</Sha>
|
||||||
</Dependency>
|
</Dependency>
|
||||||
</ToolsetDependencies>
|
</ToolsetDependencies>
|
||||||
</Dependencies>
|
</Dependencies>
|
||||||
|
|
|
@ -83,7 +83,7 @@ function AddCredential($creds, $source, $username, $password) {
|
||||||
$passwordElement.SetAttribute("value", $Password)
|
$passwordElement.SetAttribute("value", $Password)
|
||||||
}
|
}
|
||||||
|
|
||||||
function InsertMaestroPrivateFeedCredentials($Sources, $Creds, $Password) {
|
function InsertMaestroPrivateFeedCredentials($Sources, $Creds, $Username, $Password) {
|
||||||
$maestroPrivateSources = $Sources.SelectNodes("add[contains(@key,'darc-int')]")
|
$maestroPrivateSources = $Sources.SelectNodes("add[contains(@key,'darc-int')]")
|
||||||
|
|
||||||
Write-Host "Inserting credentials for $($maestroPrivateSources.Count) Maestro's private feeds."
|
Write-Host "Inserting credentials for $($maestroPrivateSources.Count) Maestro's private feeds."
|
||||||
|
@ -123,19 +123,21 @@ if ($creds -eq $null) {
|
||||||
$doc.DocumentElement.AppendChild($creds) | Out-Null
|
$doc.DocumentElement.AppendChild($creds) | Out-Null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$userName = "dn-bot"
|
||||||
|
|
||||||
# Insert credential nodes for Maestro's private feeds
|
# Insert credential nodes for Maestro's private feeds
|
||||||
InsertMaestroPrivateFeedCredentials -Sources $sources -Creds $creds -Password $Password
|
InsertMaestroPrivateFeedCredentials -Sources $sources -Creds $creds -Username $userName -Password $Password
|
||||||
|
|
||||||
$dotnet3Source = $sources.SelectSingleNode("add[@key='dotnet3']")
|
$dotnet3Source = $sources.SelectSingleNode("add[@key='dotnet3']")
|
||||||
if ($dotnet3Source -ne $null) {
|
if ($dotnet3Source -ne $null) {
|
||||||
AddPackageSource -Sources $sources -SourceName "dotnet3-internal" -SourceEndPoint "https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3-internal/nuget/v2" -Creds $creds -Username "dn-bot" -Password $Password
|
AddPackageSource -Sources $sources -SourceName "dotnet3-internal" -SourceEndPoint "https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3-internal/nuget/v2" -Creds $creds -Username $userName -Password $Password
|
||||||
AddPackageSource -Sources $sources -SourceName "dotnet3-internal-transport" -SourceEndPoint "https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3-internal-transport/nuget/v2" -Creds $creds -Username "dn-bot" -Password $Password
|
AddPackageSource -Sources $sources -SourceName "dotnet3-internal-transport" -SourceEndPoint "https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3-internal-transport/nuget/v2" -Creds $creds -Username $userName -Password $Password
|
||||||
}
|
}
|
||||||
|
|
||||||
$dotnet31Source = $sources.SelectSingleNode("add[@key='dotnet3.1']")
|
$dotnet31Source = $sources.SelectSingleNode("add[@key='dotnet3.1']")
|
||||||
if ($dotnet31Source -ne $null) {
|
if ($dotnet31Source -ne $null) {
|
||||||
AddPackageSource -Sources $sources -SourceName "dotnet3.1-internal" -SourceEndPoint "https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3.1-internal/nuget/v2" -Creds $creds -Username "dn-bot" -Password $Password
|
AddPackageSource -Sources $sources -SourceName "dotnet3.1-internal" -SourceEndPoint "https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3.1-internal/nuget/v2" -Creds $creds -Username $userName -Password $Password
|
||||||
AddPackageSource -Sources $sources -SourceName "dotnet3.1-internal-transport" -SourceEndPoint "https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3.1-internal-transport/nuget/v2" -Creds $creds -Username "dn-bot" -Password $Password
|
AddPackageSource -Sources $sources -SourceName "dotnet3.1-internal-transport" -SourceEndPoint "https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3.1-internal-transport/nuget/v2" -Creds $creds -Username $userName -Password $Password
|
||||||
}
|
}
|
||||||
|
|
||||||
$doc.Save($filename)
|
$doc.Save($filename)
|
6
eng/common/dotnet-install.ps1
vendored
6
eng/common/dotnet-install.ps1
vendored
|
@ -3,7 +3,9 @@ Param(
|
||||||
[string] $verbosity = "minimal",
|
[string] $verbosity = "minimal",
|
||||||
[string] $architecture = "",
|
[string] $architecture = "",
|
||||||
[string] $version = "Latest",
|
[string] $version = "Latest",
|
||||||
[string] $runtime = "dotnet"
|
[string] $runtime = "dotnet",
|
||||||
|
[string] $RuntimeSourceFeed = "",
|
||||||
|
[string] $RuntimeSourceFeedKey = ""
|
||||||
)
|
)
|
||||||
|
|
||||||
. $PSScriptRoot\tools.ps1
|
. $PSScriptRoot\tools.ps1
|
||||||
|
@ -15,7 +17,7 @@ try {
|
||||||
if ($architecture -and $architecture.Trim() -eq "x86") {
|
if ($architecture -and $architecture.Trim() -eq "x86") {
|
||||||
$installdir = Join-Path $installdir "x86"
|
$installdir = Join-Path $installdir "x86"
|
||||||
}
|
}
|
||||||
InstallDotNet $installdir $version $architecture $runtime $true
|
InstallDotNet $installdir $version $architecture $runtime $true -RuntimeSourceFeed $RuntimeSourceFeed -RuntimeSourceFeedKey $RuntimeSourceFeedKey
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
Write-Host $_
|
Write-Host $_
|
||||||
|
|
13
eng/common/dotnet-install.sh
vendored
13
eng/common/dotnet-install.sh
vendored
|
@ -14,6 +14,8 @@ scriptroot="$( cd -P "$( dirname "$source" )" && pwd )"
|
||||||
version='Latest'
|
version='Latest'
|
||||||
architecture=''
|
architecture=''
|
||||||
runtime='dotnet'
|
runtime='dotnet'
|
||||||
|
runtimeSourceFeed=''
|
||||||
|
runtimeSourceFeedKey=''
|
||||||
while [[ $# > 0 ]]; do
|
while [[ $# > 0 ]]; do
|
||||||
opt="$(echo "$1" | awk '{print tolower($0)}')"
|
opt="$(echo "$1" | awk '{print tolower($0)}')"
|
||||||
case "$opt" in
|
case "$opt" in
|
||||||
|
@ -29,9 +31,16 @@ while [[ $# > 0 ]]; do
|
||||||
shift
|
shift
|
||||||
runtime="$1"
|
runtime="$1"
|
||||||
;;
|
;;
|
||||||
|
-runtimesourcefeed)
|
||||||
|
shift
|
||||||
|
runtimeSourceFeed="$1"
|
||||||
|
;;
|
||||||
|
-runtimesourcefeedkey)
|
||||||
|
shift
|
||||||
|
runtimeSourceFeedKey="$1"
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Invalid argument: $1"
|
echo "Invalid argument: $1"
|
||||||
usage
|
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
@ -40,7 +49,7 @@ done
|
||||||
|
|
||||||
. "$scriptroot/tools.sh"
|
. "$scriptroot/tools.sh"
|
||||||
dotnetRoot="$repo_root/.dotnet"
|
dotnetRoot="$repo_root/.dotnet"
|
||||||
InstallDotNet $dotnetRoot $version "$architecture" $runtime true || {
|
InstallDotNet $dotnetRoot $version "$architecture" $runtime true $runtimeSourceFeed $runtimeSourceFeedKey || {
|
||||||
local exit_code=$?
|
local exit_code=$?
|
||||||
echo "dotnet-install.sh failed (exit code '$exit_code')." >&2
|
echo "dotnet-install.sh failed (exit code '$exit_code')." >&2
|
||||||
ExitWithExitCode $exit_code
|
ExitWithExitCode $exit_code
|
||||||
|
|
|
@ -26,6 +26,10 @@ stages:
|
||||||
pool:
|
pool:
|
||||||
vmImage: 'windows-2019'
|
vmImage: 'windows-2019'
|
||||||
steps:
|
steps:
|
||||||
|
# This is necessary whenever we want to publish/restore to an AzDO private feed
|
||||||
|
- task: NuGetAuthenticate@0
|
||||||
|
displayName: 'Authenticate to AzDO Feeds'
|
||||||
|
|
||||||
- task: DownloadBuildArtifacts@0
|
- task: DownloadBuildArtifacts@0
|
||||||
displayName: Download Blob Artifacts
|
displayName: Download Blob Artifacts
|
||||||
inputs:
|
inputs:
|
||||||
|
|
|
@ -49,6 +49,12 @@ stages:
|
||||||
pool:
|
pool:
|
||||||
vmImage: 'windows-2019'
|
vmImage: 'windows-2019'
|
||||||
steps:
|
steps:
|
||||||
|
# This is necessary whenever we want to publish/restore to an AzDO private feed
|
||||||
|
# Since sdk-task.ps1 tries to restore packages we need to do this authentication here
|
||||||
|
# otherwise it'll complain about accessing a private feed.
|
||||||
|
- task: NuGetAuthenticate@0
|
||||||
|
displayName: 'Authenticate to AzDO Feeds'
|
||||||
|
|
||||||
- task: DownloadBuildArtifacts@0
|
- task: DownloadBuildArtifacts@0
|
||||||
displayName: Download Package Artifacts
|
displayName: Download Package Artifacts
|
||||||
inputs:
|
inputs:
|
||||||
|
|
|
@ -184,7 +184,14 @@ function InstallDotNetSdk([string] $dotnetRoot, [string] $version, [string] $arc
|
||||||
InstallDotNet $dotnetRoot $version $architecture
|
InstallDotNet $dotnetRoot $version $architecture
|
||||||
}
|
}
|
||||||
|
|
||||||
function InstallDotNet([string] $dotnetRoot, [string] $version, [string] $architecture = "", [string] $runtime = "", [bool] $skipNonVersionedFiles = $false) {
|
function InstallDotNet([string] $dotnetRoot,
|
||||||
|
[string] $version,
|
||||||
|
[string] $architecture = "",
|
||||||
|
[string] $runtime = "",
|
||||||
|
[bool] $skipNonVersionedFiles = $false,
|
||||||
|
[string] $runtimeSourceFeed = "",
|
||||||
|
[string] $runtimeSourceFeedKey = "") {
|
||||||
|
|
||||||
$installScript = GetDotNetInstallScript $dotnetRoot
|
$installScript = GetDotNetInstallScript $dotnetRoot
|
||||||
$installParameters = @{
|
$installParameters = @{
|
||||||
Version = $version
|
Version = $version
|
||||||
|
@ -195,10 +202,32 @@ function InstallDotNet([string] $dotnetRoot, [string] $version, [string] $archit
|
||||||
if ($runtime) { $installParameters.Runtime = $runtime }
|
if ($runtime) { $installParameters.Runtime = $runtime }
|
||||||
if ($skipNonVersionedFiles) { $installParameters.SkipNonVersionedFiles = $skipNonVersionedFiles }
|
if ($skipNonVersionedFiles) { $installParameters.SkipNonVersionedFiles = $skipNonVersionedFiles }
|
||||||
|
|
||||||
& $installScript @installParameters
|
try {
|
||||||
if ($lastExitCode -ne 0) {
|
& $installScript @installParameters
|
||||||
Write-PipelineTelemetryError -Category "InitializeToolset" -Message "Failed to install dotnet cli (exit code '$lastExitCode')."
|
}
|
||||||
ExitWithExitCode $lastExitCode
|
catch {
|
||||||
|
Write-PipelineTelemetryError -Category "InitializeToolset" -Message "Failed to install dotnet runtime '$runtime' from public location."
|
||||||
|
|
||||||
|
# Only the runtime can be installed from a custom [private] location.
|
||||||
|
if ($runtime -and ($runtimeSourceFeed -or $runtimeSourceFeedKey)) {
|
||||||
|
if ($runtimeSourceFeed) { $installParameters.AzureFeed = $runtimeSourceFeed }
|
||||||
|
|
||||||
|
if ($runtimeSourceFeedKey) {
|
||||||
|
$decodedBytes = [System.Convert]::FromBase64String($runtimeSourceFeedKey)
|
||||||
|
$decodedString = [System.Text.Encoding]::UTF8.GetString($decodedBytes)
|
||||||
|
$installParameters.FeedCredential = $decodedString
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
& $installScript @installParameters
|
||||||
|
}
|
||||||
|
catch {
|
||||||
|
Write-PipelineTelemetryError -Category "InitializeToolset" -Message "Failed to install dotnet runtime '$runtime' from custom location '$runtimeSourceFeed'."
|
||||||
|
ExitWithExitCode 1
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
ExitWithExitCode 1
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -200,8 +200,30 @@ function InstallDotNet {
|
||||||
fi
|
fi
|
||||||
bash "$install_script" --version $version --install-dir "$root" $archArg $runtimeArg $skipNonVersionedFilesArg || {
|
bash "$install_script" --version $version --install-dir "$root" $archArg $runtimeArg $skipNonVersionedFilesArg || {
|
||||||
local exit_code=$?
|
local exit_code=$?
|
||||||
Write-PipelineTelemetryError -category 'InitializeToolset' "Failed to install dotnet SDK (exit code '$exit_code')."
|
Write-PipelineTelemetryError -category 'InitializeToolset' "Failed to install dotnet SDK from public location (exit code '$exit_code')."
|
||||||
ExitWithExitCode $exit_code
|
|
||||||
|
if [[ -n "$runtimeArg" ]]; then
|
||||||
|
local runtimeSourceFeed=''
|
||||||
|
if [[ -n "${6:-}" ]]; then
|
||||||
|
runtimeSourceFeed="--azure-feed $6"
|
||||||
|
fi
|
||||||
|
|
||||||
|
local runtimeSourceFeedKey=''
|
||||||
|
if [[ -n "${7:-}" ]]; then
|
||||||
|
decodedFeedKey=`echo $7 | base64 --decode`
|
||||||
|
runtimeSourceFeedKey="--feed-credential $decodedFeedKey"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -n "$runtimeSourceFeed" || -n "$runtimeSourceFeedKey" ]]; then
|
||||||
|
bash "$install_script" --version $version --install-dir "$root" $archArg $runtimeArg $skipNonVersionedFilesArg $runtimeSourceFeed $runtimeSourceFeedKey || {
|
||||||
|
local exit_code=$?
|
||||||
|
Write-PipelineTelemetryError -category 'InitializeToolset' "Failed to install dotnet SDK from custom location '$runtimeSourceFeed' (exit code '$exit_code')."
|
||||||
|
ExitWithExitCode $exit_code
|
||||||
|
}
|
||||||
|
else
|
||||||
|
ExitWithExitCode $exit_code
|
||||||
|
fi
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,6 @@
|
||||||
"dotnet": "3.1.100"
|
"dotnet": "3.1.100"
|
||||||
},
|
},
|
||||||
"msbuild-sdks": {
|
"msbuild-sdks": {
|
||||||
"Microsoft.DotNet.Arcade.Sdk": "1.0.0-beta.19605.2"
|
"Microsoft.DotNet.Arcade.Sdk": "1.0.0-beta.19607.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue