[master] Update dependencies from dotnet/arcade (#3314)
* Update dependencies from https://github.com/dotnet/arcade build 20190717.8 - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19367.8 * Update dependencies from https://github.com/dotnet/arcade build 20190718.7 - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19368.7
This commit is contained in:
parent
35a1c71040
commit
6fa4b0bcd0
8 changed files with 91 additions and 22 deletions
|
@ -65,9 +65,9 @@
|
||||||
</Dependency>
|
</Dependency>
|
||||||
</ProductDependencies>
|
</ProductDependencies>
|
||||||
<ToolsetDependencies>
|
<ToolsetDependencies>
|
||||||
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="1.0.0-beta.19366.4">
|
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="1.0.0-beta.19368.7">
|
||||||
<Uri>https://github.com/dotnet/arcade</Uri>
|
<Uri>https://github.com/dotnet/arcade</Uri>
|
||||||
<Sha>0dd5e2025f0049c133a8706f40e4463b193e5d17</Sha>
|
<Sha>eecde8a8751dbe7fdb17ba4dfbd032e26f4cae7d</Sha>
|
||||||
</Dependency>
|
</Dependency>
|
||||||
</ToolsetDependencies>
|
</ToolsetDependencies>
|
||||||
</Dependencies>
|
</Dependencies>
|
||||||
|
|
|
@ -71,7 +71,7 @@ function ReadGlobalJsonNativeTools {
|
||||||
local native_tools_list=$(echo $native_tools_section | awk -F"[{}]" '{print $2}')
|
local native_tools_list=$(echo $native_tools_section | awk -F"[{}]" '{print $2}')
|
||||||
native_tools_list=${native_tools_list//[\" ]/}
|
native_tools_list=${native_tools_list//[\" ]/}
|
||||||
native_tools_list=${native_tools_list//,/$'\n'}
|
native_tools_list=${native_tools_list//,/$'\n'}
|
||||||
native_tools_list="$(echo -e "${native_tools_list}" | tr -d '[:space:]')"
|
native_tools_list="$(echo -e "${native_tools_list}" | tr -d '[[:space:]]')"
|
||||||
|
|
||||||
local old_IFS=$IFS
|
local old_IFS=$IFS
|
||||||
while read -r line; do
|
while read -r line; do
|
||||||
|
|
|
@ -39,11 +39,11 @@ function Write-PipelineTaskError {
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
message_type="error"
|
local message_type="error"
|
||||||
sourcepath=''
|
local sourcepath=''
|
||||||
linenumber=''
|
local linenumber=''
|
||||||
columnnumber=''
|
local columnnumber=''
|
||||||
error_code=''
|
local error_code=''
|
||||||
|
|
||||||
while [[ $# -gt 0 ]]; do
|
while [[ $# -gt 0 ]]; do
|
||||||
opt="$(echo "${1/#--/-}" | awk '{print tolower($0)}')"
|
opt="$(echo "${1/#--/-}" | awk '{print tolower($0)}')"
|
||||||
|
@ -76,7 +76,7 @@ function Write-PipelineTaskError {
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
|
||||||
message="##vso[task.logissue"
|
local message="##vso[task.logissue"
|
||||||
|
|
||||||
message="$message type=$message_type"
|
message="$message type=$message_type"
|
||||||
|
|
||||||
|
@ -100,3 +100,73 @@ function Write-PipelineTaskError {
|
||||||
echo "$message"
|
echo "$message"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function Write-PipelineSetVariable {
|
||||||
|
if [[ "$ci" != true ]]; then
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
|
local name=''
|
||||||
|
local value=''
|
||||||
|
local secret=false
|
||||||
|
local as_output=false
|
||||||
|
local is_multi_job_variable=true
|
||||||
|
|
||||||
|
while [[ $# -gt 0 ]]; do
|
||||||
|
opt="$(echo "${1/#--/-}" | awk '{print tolower($0)}')"
|
||||||
|
case "$opt" in
|
||||||
|
-name|-n)
|
||||||
|
name=$2
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
-value|-v)
|
||||||
|
value=$2
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
-secret|-s)
|
||||||
|
secret=true
|
||||||
|
;;
|
||||||
|
-as_output|-a)
|
||||||
|
as_output=true
|
||||||
|
;;
|
||||||
|
-is_multi_job_variable|-i)
|
||||||
|
is_multi_job_variable=$2
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
|
||||||
|
value=${value/;/%3B}
|
||||||
|
value=${value/\\r/%0D}
|
||||||
|
value=${value/\\n/%0A}
|
||||||
|
value=${value/]/%5D}
|
||||||
|
|
||||||
|
local message="##vso[task.setvariable variable=$name;isSecret=$secret;isOutput=$is_multi_job_variable]$value"
|
||||||
|
|
||||||
|
if [[ "$as_output" == true ]]; then
|
||||||
|
$message
|
||||||
|
else
|
||||||
|
echo "$message"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
function Write-PipelinePrependPath {
|
||||||
|
local prepend_path=''
|
||||||
|
|
||||||
|
while [[ $# -gt 0 ]]; do
|
||||||
|
opt="$(echo "${1/#--/-}" | awk '{print tolower($0)}')"
|
||||||
|
case "$opt" in
|
||||||
|
-path|-p)
|
||||||
|
prepend_path=$2
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
|
||||||
|
export PATH="$prepend_path:$PATH"
|
||||||
|
|
||||||
|
if [[ "$ci" == true ]]; then
|
||||||
|
echo "##vso[task.prependpath]$prepend_path"
|
||||||
|
fi
|
||||||
|
}
|
|
@ -84,6 +84,7 @@ stages:
|
||||||
/p:AzureStorageAccountName=$(ProxyBackedFeedsAccountName)
|
/p:AzureStorageAccountName=$(ProxyBackedFeedsAccountName)
|
||||||
/p:AzureStorageAccountKey=$(dotnetfeed-storage-access-key-1)
|
/p:AzureStorageAccountKey=$(dotnetfeed-storage-access-key-1)
|
||||||
/p:AzureDevOpsFeedsBaseUrl=$(dotnetfeed-internal-private-feed-url)
|
/p:AzureDevOpsFeedsBaseUrl=$(dotnetfeed-internal-private-feed-url)
|
||||||
|
/p:StaticInternalFeed=$(dotnetfeed-internal-nonstable-feed-url)
|
||||||
/p:NugetPath=$(Agent.BuildDirectory)\Nuget\NuGet.exe
|
/p:NugetPath=$(Agent.BuildDirectory)\Nuget\NuGet.exe
|
||||||
/p:BARBuildId=$(BARBuildId)
|
/p:BARBuildId=$(BARBuildId)
|
||||||
/p:MaestroApiEndpoint='https://maestro-prod.westus2.cloudapp.azure.com'
|
/p:MaestroApiEndpoint='https://maestro-prod.westus2.cloudapp.azure.com'
|
||||||
|
|
|
@ -84,6 +84,7 @@ stages:
|
||||||
/p:AzureStorageAccountName=$(ProxyBackedFeedsAccountName)
|
/p:AzureStorageAccountName=$(ProxyBackedFeedsAccountName)
|
||||||
/p:AzureStorageAccountKey=$(dotnetfeed-storage-access-key-1)
|
/p:AzureStorageAccountKey=$(dotnetfeed-storage-access-key-1)
|
||||||
/p:AzureDevOpsFeedsBaseUrl=$(dotnetfeed-internal-private-feed-url)
|
/p:AzureDevOpsFeedsBaseUrl=$(dotnetfeed-internal-private-feed-url)
|
||||||
|
/p:StaticInternalFeed=$(dotnetfeed-internal-nonstable-feed-url)
|
||||||
/p:NugetPath=$(Agent.BuildDirectory)\Nuget\NuGet.exe
|
/p:NugetPath=$(Agent.BuildDirectory)\Nuget\NuGet.exe
|
||||||
/p:BARBuildId=$(BARBuildId)
|
/p:BARBuildId=$(BARBuildId)
|
||||||
/p:MaestroApiEndpoint='https://maestro-prod.westus2.cloudapp.azure.com'
|
/p:MaestroApiEndpoint='https://maestro-prod.westus2.cloudapp.azure.com'
|
||||||
|
|
|
@ -169,7 +169,7 @@ 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) { $installScript = GetDotNetInstallScript $dotnetRoot
|
function InstallDotNet([string] $dotnetRoot, [string] $version, [string] $architecture = "", [string] $runtime = "", [bool] $skipNonVersionedFiles = $false) {
|
||||||
$installScript = GetDotNetInstallScript $dotnetRoot
|
$installScript = GetDotNetInstallScript $dotnetRoot
|
||||||
$installParameters = @{
|
$installParameters = @{
|
||||||
Version = $version
|
Version = $version
|
||||||
|
|
|
@ -146,14 +146,10 @@ function InitializeDotNetCli {
|
||||||
|
|
||||||
# Add dotnet to PATH. This prevents any bare invocation of dotnet in custom
|
# Add dotnet to PATH. This prevents any bare invocation of dotnet in custom
|
||||||
# build steps from using anything other than what we've downloaded.
|
# build steps from using anything other than what we've downloaded.
|
||||||
export PATH="$dotnet_root:$PATH"
|
Write-PipelinePrependPath -path "$dotnet_root"
|
||||||
|
|
||||||
if [[ $ci == true ]]; then
|
Write-PipelineSetVariable -name "DOTNET_MULTILEVEL_LOOKUP" -value "0"
|
||||||
# Make Sure that our bootstrapped dotnet cli is available in future steps of the Azure Pipelines build
|
Write-PipelineSetVariable -name "DOTNET_SKIP_FIRST_TIME_EXPERIENCE" -value "1"
|
||||||
echo "##vso[task.prependpath]$dotnet_root"
|
|
||||||
echo "##vso[task.setvariable variable=DOTNET_MULTILEVEL_LOOKUP]0"
|
|
||||||
echo "##vso[task.setvariable variable=DOTNET_SKIP_FIRST_TIME_EXPERIENCE]1"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# return value
|
# return value
|
||||||
_InitializeDotNetCli="$dotnet_root"
|
_InitializeDotNetCli="$dotnet_root"
|
||||||
|
@ -387,7 +383,8 @@ mkdir -p "$toolset_dir"
|
||||||
mkdir -p "$temp_dir"
|
mkdir -p "$temp_dir"
|
||||||
mkdir -p "$log_dir"
|
mkdir -p "$log_dir"
|
||||||
|
|
||||||
if [[ $ci == true ]]; then
|
Write-PipelineSetVariable -name "Artifacts" -value "$artifacts_dir"
|
||||||
export TEMP="$temp_dir"
|
Write-PipelineSetVariable -name "Artifacts.Toolset" -value "$toolset_dir"
|
||||||
export TMP="$temp_dir"
|
Write-PipelineSetVariable -name "Artifacts.Log" -value "$log_dir"
|
||||||
fi
|
Write-PipelineSetVariable -name "Temp" -value "$temp_dir"
|
||||||
|
Write-PipelineSetVariable -name "TMP" -value "$temp_dir"
|
||||||
|
|
|
@ -3,6 +3,6 @@
|
||||||
"dotnet": "3.0.100-preview6-012264"
|
"dotnet": "3.0.100-preview6-012264"
|
||||||
},
|
},
|
||||||
"msbuild-sdks": {
|
"msbuild-sdks": {
|
||||||
"Microsoft.DotNet.Arcade.Sdk": "1.0.0-beta.19366.4"
|
"Microsoft.DotNet.Arcade.Sdk": "1.0.0-beta.19368.7"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue