Update dependencies from https://github.com/dotnet/arcade build 20191203.16 (#5823)
- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19603.16
This commit is contained in:
parent
731d27c264
commit
326f8a5f48
4 changed files with 78 additions and 32 deletions
|
@ -100,9 +100,9 @@
|
||||||
</Dependency>
|
</Dependency>
|
||||||
</ProductDependencies>
|
</ProductDependencies>
|
||||||
<ToolsetDependencies>
|
<ToolsetDependencies>
|
||||||
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="1.0.0-beta.19577.5">
|
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="1.0.0-beta.19603.16">
|
||||||
<Uri>https://github.com/dotnet/arcade</Uri>
|
<Uri>https://github.com/dotnet/arcade</Uri>
|
||||||
<Sha>99c6b59a8afff97fe891341b39abe985f1d3c565</Sha>
|
<Sha>8e47254f93b276c974968aff83222f89ec3931ed</Sha>
|
||||||
</Dependency>
|
</Dependency>
|
||||||
</ToolsetDependencies>
|
</ToolsetDependencies>
|
||||||
</Dependencies>
|
</Dependencies>
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
# condition: eq(variables['Agent.OS'], 'Windows_NT')
|
# condition: eq(variables['Agent.OS'], 'Windows_NT')
|
||||||
# inputs:
|
# inputs:
|
||||||
# filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.ps1
|
# filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.ps1
|
||||||
# arguments: -ConfigFile ${Env:BUILD_SOURCESDIRECTORY}/NuGet.config -Password $Env:Token
|
# arguments: -ConfigFile $(Build.SourcesDirectory)/NuGet.config -Password $Env:Token
|
||||||
# env:
|
# env:
|
||||||
# Token: $(dn-bot-dnceng-artifact-feeds-rw)
|
# Token: $(dn-bot-dnceng-artifact-feeds-rw)
|
||||||
|
|
||||||
|
@ -95,10 +95,15 @@ function InsertMaestroPrivateFeedCredentials($Sources, $Creds, $Password) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(Test-Path $ConfigFile -PathType Leaf)) {
|
if (!(Test-Path $ConfigFile -PathType Leaf)) {
|
||||||
Write-Host "Couldn't find the file NuGet config file: $ConfigFile"
|
Write-PipelineTelemetryError -Category 'Build' -Message "Eng/common/SetupNugetSources.ps1 returned a non-zero exit code. Couldn't find the NuGet config file: $ConfigFile"
|
||||||
ExitWithExitCode 1
|
ExitWithExitCode 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!$Password) {
|
||||||
|
Write-PipelineTelemetryError -Category 'Build' -Message 'Eng/common/SetupNugetSources.ps1 returned a non-zero exit code. Please supply a valid PAT'
|
||||||
|
ExitWithExitCode 1
|
||||||
|
}
|
||||||
|
|
||||||
# Load NuGet.config
|
# Load NuGet.config
|
||||||
$doc = New-Object System.Xml.XmlDocument
|
$doc = New-Object System.Xml.XmlDocument
|
||||||
$filename = (Get-Item $ConfigFile).FullName
|
$filename = (Get-Item $ConfigFile).FullName
|
||||||
|
@ -121,7 +126,16 @@ if ($creds -eq $null) {
|
||||||
# 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 -Password $Password
|
||||||
|
|
||||||
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
|
$dotnet3Source = $sources.SelectSingleNode("add[@key='dotnet3']")
|
||||||
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
|
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-transport" -SourceEndPoint "https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3-internal-transport/nuget/v2" -Creds $creds -Username "dn-bot" -Password $Password
|
||||||
|
}
|
||||||
|
|
||||||
$doc.Save($filename)
|
$dotnet31Source = $sources.SelectSingleNode("add[@key='dotnet3.1']")
|
||||||
|
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-transport" -SourceEndPoint "https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3.1-internal-transport/nuget/v2" -Creds $creds -Username "dn-bot" -Password $Password
|
||||||
|
}
|
||||||
|
|
||||||
|
$doc.Save($filename)
|
|
@ -17,7 +17,7 @@
|
||||||
# displayName: Setup Private Feeds Credentials
|
# displayName: Setup Private Feeds Credentials
|
||||||
# inputs:
|
# inputs:
|
||||||
# filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.sh
|
# filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.sh
|
||||||
# arguments: $BUILD_SOURCESDIRECTORY/NuGet.config $Token
|
# arguments: $(Build.SourcesDirectory)/NuGet.config $Token
|
||||||
# condition: ne(variables['Agent.OS'], 'Windows_NT')
|
# condition: ne(variables['Agent.OS'], 'Windows_NT')
|
||||||
# env:
|
# env:
|
||||||
# Token: $(dn-bot-dnceng-artifact-feeds-rw)
|
# Token: $(dn-bot-dnceng-artifact-feeds-rw)
|
||||||
|
@ -42,7 +42,12 @@ scriptroot="$( cd -P "$( dirname "$source" )" && pwd )"
|
||||||
. "$scriptroot/tools.sh"
|
. "$scriptroot/tools.sh"
|
||||||
|
|
||||||
if [ ! -f "$ConfigFile" ]; then
|
if [ ! -f "$ConfigFile" ]; then
|
||||||
echo "Couldn't find the file NuGet config file: $ConfigFile"
|
Write-PipelineTelemetryError -Category 'Build' "Error: Eng/common/SetupNugetSources.sh returned a non-zero exit code. Couldn't find the NuGet config file: $ConfigFile"
|
||||||
|
ExitWithExitCode 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "$CredToken" ]; then
|
||||||
|
Write-PipelineTelemetryError -category 'Build' "Error: Eng/common/SetupNugetSources.sh returned a non-zero exit code. Please supply a valid PAT"
|
||||||
ExitWithExitCode 1
|
ExitWithExitCode 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -52,7 +57,7 @@ if [[ `uname -s` == "Darwin" ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Ensure there is a <packageSources>...</packageSources> section.
|
# Ensure there is a <packageSources>...</packageSources> section.
|
||||||
grep -i "<packageSources>" $ConfigFile
|
grep -i "<packageSources>" $ConfigFile
|
||||||
if [ "$?" != "0" ]; then
|
if [ "$?" != "0" ]; then
|
||||||
echo "Adding <packageSources>...</packageSources> section."
|
echo "Adding <packageSources>...</packageSources> section."
|
||||||
ConfigNodeHeader="<configuration>"
|
ConfigNodeHeader="<configuration>"
|
||||||
|
@ -62,7 +67,7 @@ if [ "$?" != "0" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Ensure there is a <packageSourceCredentials>...</packageSourceCredentials> section.
|
# Ensure there is a <packageSourceCredentials>...</packageSourceCredentials> section.
|
||||||
grep -i "<packageSourceCredentials>" $ConfigFile
|
grep -i "<packageSourceCredentials>" $ConfigFile
|
||||||
if [ "$?" != "0" ]; then
|
if [ "$?" != "0" ]; then
|
||||||
echo "Adding <packageSourceCredentials>...</packageSourceCredentials> section."
|
echo "Adding <packageSourceCredentials>...</packageSourceCredentials> section."
|
||||||
|
|
||||||
|
@ -72,37 +77,64 @@ if [ "$?" != "0" ]; then
|
||||||
sed -i.bak "s|$PackageSourcesNodeFooter|$PackageSourcesNodeFooter${NL}$PackageSourceCredentialsTemplate|" NuGet.config
|
sed -i.bak "s|$PackageSourcesNodeFooter|$PackageSourcesNodeFooter${NL}$PackageSourceCredentialsTemplate|" NuGet.config
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Ensure dotnet3-internal and dotnet3-internal-transport is in the packageSources
|
PackageSources=()
|
||||||
grep -i "<add key=\"dotnet3-internal\">" $ConfigFile
|
|
||||||
if [ "$?" != "0" ]; then
|
|
||||||
echo "Adding dotnet3-internal to the packageSources."
|
|
||||||
|
|
||||||
PackageSourcesNodeFooter="</packageSources>"
|
# Ensure dotnet3-internal and dotnet3-internal-transport are in the packageSources if the public dotnet3 feeds are present
|
||||||
PackageSourceTemplate="${TB}<add key=\"dotnet3-internal\" value=\"https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3-internal/nuget/v2\" />"
|
grep -i "<add key=\"dotnet3\"" $ConfigFile
|
||||||
|
|
||||||
sed -i.bak "s|$PackageSourcesNodeFooter|$PackageSourceTemplate${NL}$PackageSourcesNodeFooter|" NuGet.config
|
if [ "$?" == "0" ]; then
|
||||||
|
grep -i "<add key=\"dotnet3-internal\">" $ConfigFile
|
||||||
|
if [ "$?" != "0" ]; then
|
||||||
|
echo "Adding dotnet3-internal to the packageSources."
|
||||||
|
PackageSourcesNodeFooter="</packageSources>"
|
||||||
|
PackageSourceTemplate="${TB}<add key=\"dotnet3-internal\" value=\"https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3-internal/nuget/v2\" />"
|
||||||
|
|
||||||
|
sed -i.bak "s|$PackageSourcesNodeFooter|$PackageSourceTemplate${NL}$PackageSourcesNodeFooter|" $ConfigFile
|
||||||
|
fi
|
||||||
|
PackageSources+=('dotnet3-internal')
|
||||||
|
|
||||||
|
grep -i "<add key=\"dotnet3-internal-transport\"" $ConfigFile
|
||||||
|
if [ "$?" != "0" ]; then
|
||||||
|
echo "Adding dotnet3-internal-transport to the packageSources."
|
||||||
|
PackageSourcesNodeFooter="</packageSources>"
|
||||||
|
PackageSourceTemplate="${TB}<add key=\"dotnet3-internal-transport\" value=\"https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3-internal-transport/nuget/v2\" />"
|
||||||
|
|
||||||
|
sed -i.bak "s|$PackageSourcesNodeFooter|$PackageSourceTemplate${NL}$PackageSourcesNodeFooter|" $ConfigFile
|
||||||
|
fi
|
||||||
|
PackageSources+=('dotnet3-internal-transport')
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Ensure dotnet3-internal and dotnet3-internal-transport is in the packageSources
|
# Ensure dotnet3.1-internal and dotnet3.1-internal-transport are in the packageSources if the public dotnet3.1 feeds are present
|
||||||
grep -i "<add key=\"dotnet3-internal-transport\">" $ConfigFile
|
grep -i "<add key=\"dotnet3.1\"" $ConfigFile
|
||||||
if [ "$?" != "0" ]; then
|
if [ "$?" == "0" ]; then
|
||||||
echo "Adding dotnet3-internal-transport to the packageSources."
|
grep -i "<add key=\"dotnet3.1-internal\"" $ConfigFile
|
||||||
|
if [ "$?" != "0" ]; then
|
||||||
|
echo "Adding dotnet3.1-internal to the packageSources."
|
||||||
|
PackageSourcesNodeFooter="</packageSources>"
|
||||||
|
PackageSourceTemplate="${TB}<add key=\"dotnet3.1-internal\" value=\"https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3.1-internal/nuget/v2\" />"
|
||||||
|
|
||||||
PackageSourcesNodeFooter="</packageSources>"
|
sed -i.bak "s|$PackageSourcesNodeFooter|$PackageSourceTemplate${NL}$PackageSourcesNodeFooter|" $ConfigFile
|
||||||
PackageSourceTemplate="${TB}<add key=\"dotnet3-internal-transport\" value=\"https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3-internal-transport/nuget/v2\" />"
|
fi
|
||||||
|
PackageSources+=('dotnet3.1-internal')
|
||||||
|
|
||||||
sed -i.bak "s|$PackageSourcesNodeFooter|$PackageSourceTemplate${NL}$PackageSourcesNodeFooter|" NuGet.config
|
grep -i "<add key=\"dotnet3.1-internal-transport\">" $ConfigFile
|
||||||
|
if [ "$?" != "0" ]; then
|
||||||
|
echo "Adding dotnet3.1-internal-transport to the packageSources."
|
||||||
|
PackageSourcesNodeFooter="</packageSources>"
|
||||||
|
PackageSourceTemplate="${TB}<add key=\"dotnet3.1-internal-transport\" value=\"https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3.1-internal-transport/nuget/v2\" />"
|
||||||
|
|
||||||
|
sed -i.bak "s|$PackageSourcesNodeFooter|$PackageSourceTemplate${NL}$PackageSourcesNodeFooter|" $ConfigFile
|
||||||
|
fi
|
||||||
|
PackageSources+=('dotnet3.1-internal-transport')
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# I want things split line by line
|
# I want things split line by line
|
||||||
PrevIFS=$IFS
|
PrevIFS=$IFS
|
||||||
IFS=$'\n'
|
IFS=$'\n'
|
||||||
PackageSources=$(grep -oh '"darc-int-[^"]*"' $ConfigFile | tr -d '"')
|
PackageSources+="$IFS"
|
||||||
|
PackageSources+=$(grep -oh '"darc-int-[^"]*"' $ConfigFile | tr -d '"')
|
||||||
IFS=$PrevIFS
|
IFS=$PrevIFS
|
||||||
|
|
||||||
PackageSources+=('dotnet3-internal')
|
|
||||||
PackageSources+=('dotnet3-internal-transport')
|
|
||||||
|
|
||||||
for FeedName in ${PackageSources[@]} ; do
|
for FeedName in ${PackageSources[@]} ; do
|
||||||
# Check if there is no existing credential for this FeedName
|
# Check if there is no existing credential for this FeedName
|
||||||
grep -i "<$FeedName>" $ConfigFile
|
grep -i "<$FeedName>" $ConfigFile
|
||||||
|
@ -112,6 +144,6 @@ for FeedName in ${PackageSources[@]} ; do
|
||||||
PackageSourceCredentialsNodeFooter="</packageSourceCredentials>"
|
PackageSourceCredentialsNodeFooter="</packageSourceCredentials>"
|
||||||
NewCredential="${TB}${TB}<$FeedName>${NL}<add key=\"Username\" value=\"dn-bot\" />${NL}<add key=\"ClearTextPassword\" value=\"$CredToken\" />${NL}</$FeedName>"
|
NewCredential="${TB}${TB}<$FeedName>${NL}<add key=\"Username\" value=\"dn-bot\" />${NL}<add key=\"ClearTextPassword\" value=\"$CredToken\" />${NL}</$FeedName>"
|
||||||
|
|
||||||
sed -i.bak "s|$PackageSourceCredentialsNodeFooter|$NewCredential${NL}$PackageSourceCredentialsNodeFooter|" NuGet.config
|
sed -i.bak "s|$PackageSourceCredentialsNodeFooter|$NewCredential${NL}$PackageSourceCredentialsNodeFooter|" $ConfigFile
|
||||||
fi
|
fi
|
||||||
done
|
done
|
|
@ -3,6 +3,6 @@
|
||||||
"dotnet": "3.1.100-preview1-014459"
|
"dotnet": "3.1.100-preview1-014459"
|
||||||
},
|
},
|
||||||
"msbuild-sdks": {
|
"msbuild-sdks": {
|
||||||
"Microsoft.DotNet.Arcade.Sdk": "1.0.0-beta.19577.5"
|
"Microsoft.DotNet.Arcade.Sdk": "1.0.0-beta.19603.16"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue