Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[master] Update dependencies from dotnet/arcade #7256

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions eng/Version.Details.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<ProductDependencies>
</ProductDependencies>
<ToolsetDependencies>
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="1.0.0-beta.19367.8">
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="1.0.0-beta.19368.7">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>2359dc4184133defa27c8f3072622270b71b4ecf</Sha>
<Sha>eecde8a8751dbe7fdb17ba4dfbd032e26f4cae7d</Sha>
</Dependency>
</ToolsetDependencies>
</Dependencies>
82 changes: 76 additions & 6 deletions eng/common/pipeline-logging-functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ function Write-PipelineTaskError {
return
fi

message_type="error"
sourcepath=''
linenumber=''
columnnumber=''
error_code=''
local message_type="error"
local sourcepath=''
local linenumber=''
local columnnumber=''
local error_code=''

while [[ $# -gt 0 ]]; do
opt="$(echo "${1/#--/-}" | awk '{print tolower($0)}')"
Expand Down Expand Up @@ -76,7 +76,7 @@ function Write-PipelineTaskError {
shift
done

message="##vso[task.logissue"
local message="##vso[task.logissue"

message="$message type=$message_type"

Expand All @@ -100,3 +100,73 @@ function Write-PipelineTaskError {
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
}
19 changes: 8 additions & 11 deletions eng/common/tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -146,14 +146,10 @@ function InitializeDotNetCli {

# Add dotnet to PATH. This prevents any bare invocation of dotnet in custom
# 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
# Make Sure that our bootstrapped dotnet cli is available in future steps of the Azure Pipelines build
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
Write-PipelineSetVariable -name "DOTNET_MULTILEVEL_LOOKUP" -value "0"
Write-PipelineSetVariable -name "DOTNET_SKIP_FIRST_TIME_EXPERIENCE" -value "1"

# return value
_InitializeDotNetCli="$dotnet_root"
Expand Down Expand Up @@ -387,7 +383,8 @@ mkdir -p "$toolset_dir"
mkdir -p "$temp_dir"
mkdir -p "$log_dir"

if [[ $ci == true ]]; then
export TEMP="$temp_dir"
export TMP="$temp_dir"
fi
Write-PipelineSetVariable -name "Artifacts" -value "$artifacts_dir"
Write-PipelineSetVariable -name "Artifacts.Toolset" -value "$toolset_dir"
Write-PipelineSetVariable -name "Artifacts.Log" -value "$log_dir"
Write-PipelineSetVariable -name "Temp" -value "$temp_dir"
Write-PipelineSetVariable -name "TMP" -value "$temp_dir"
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
}
},
"msbuild-sdks": {
"Microsoft.DotNet.Arcade.Sdk": "1.0.0-beta.19367.8",
"Microsoft.DotNet.Arcade.Sdk": "1.0.0-beta.19368.7",
"Microsoft.DotNet.Helix.Sdk": "2.0.0-beta.19069.2"
}
}