[master] Update dependencies from dotnet/arcade (#8726)
* Update dependencies from https://github.com/dotnet/arcade build 20200924.4 Microsoft.DotNet.Build.Tasks.Installers , Microsoft.DotNet.Arcade.Sdk From Version 5.0.0-beta.20471.1 -> To Version 5.0.0-beta.20474.4 Dependency coherency updates Microsoft.WindowsDesktop.App.Ref,Microsoft.WindowsDesktop.App,Microsoft.AspNetCore.App.Ref,Microsoft.AspNetCore.App.Ref.Internal,Microsoft.AspNetCore.App.Runtime.win-x64,VS.Redist.Common.AspNetCore.TargetingPack.x64.5.0,dotnet-dev-certs,dotnet-user-secrets,dotnet-watch,Microsoft.Dotnet.WinForms.ProjectTemplates,Microsoft.WindowsDesktop.App.Runtime.win-x64,Microsoft.DotNet.Wpf.ProjectTemplates,Microsoft.FSharp.Compiler,Microsoft.NET.Test.Sdk,Microsoft.NET.ILLink.Tasks,Microsoft.Net.Compilers.Toolset,Microsoft.Build,NuGet.Build.Tasks From Version 5.0.0-rc.2.20474.5 -> To Version 5.0.0-rc.1.20417.4 (parent: Microsoft.NET.Sdk * Update dependencies from https://github.com/dotnet/arcade build 20200928.3 Microsoft.DotNet.Build.Tasks.Installers , Microsoft.DotNet.Arcade.Sdk From Version 5.0.0-beta.20471.1 -> To Version 5.0.0-beta.20478.3 Dependency coherency updates Microsoft.WindowsDesktop.App.Ref,Microsoft.WindowsDesktop.App,Microsoft.AspNetCore.App.Ref,Microsoft.AspNetCore.App.Ref.Internal,Microsoft.AspNetCore.App.Runtime.win-x64,VS.Redist.Common.AspNetCore.TargetingPack.x64.5.0,dotnet-dev-certs,dotnet-user-secrets,dotnet-watch,Microsoft.Dotnet.WinForms.ProjectTemplates,Microsoft.WindowsDesktop.App.Runtime.win-x64,Microsoft.DotNet.Wpf.ProjectTemplates,Microsoft.FSharp.Compiler,Microsoft.NET.Test.Sdk,Microsoft.NET.ILLink.Tasks,Microsoft.Net.Compilers.Toolset,Microsoft.Build,NuGet.Build.Tasks From Version 5.0.0-rc.2.20474.5 -> To Version 5.0.0-rc.1.20417.4 (parent: Microsoft.NET.Sdk * Update dependencies from https://github.com/dotnet/arcade build 20201006.7 Microsoft.DotNet.Build.Tasks.Installers , Microsoft.DotNet.Arcade.Sdk From Version 5.0.0-beta.20471.1 -> To Version 5.0.0-beta.20506.7 Dependency coherency updates Microsoft.WindowsDesktop.App.Ref,Microsoft.WindowsDesktop.App,Microsoft.AspNetCore.App.Ref,Microsoft.AspNetCore.App.Ref.Internal,Microsoft.AspNetCore.App.Runtime.win-x64,VS.Redist.Common.AspNetCore.TargetingPack.x64.5.0,dotnet-dev-certs,dotnet-user-secrets,dotnet-watch,Microsoft.Dotnet.WinForms.ProjectTemplates,Microsoft.WindowsDesktop.App.Runtime.win-x64,Microsoft.DotNet.Wpf.ProjectTemplates,Microsoft.FSharp.Compiler,Microsoft.NET.Test.Sdk,Microsoft.NET.ILLink.Tasks,Microsoft.Net.Compilers.Toolset,Microsoft.Build,NuGet.Build.Tasks,Microsoft.SourceLink.GitHub,XliffTasks From Version 5.0.0-rc.2.20474.5 -> To Version 5.0.0-rc.1.20417.4 (parent: Microsoft.NET.Sdk * Update dependencies from https://github.com/dotnet/arcade build 20201009.12 Microsoft.DotNet.Build.Tasks.Installers , Microsoft.DotNet.Arcade.Sdk From Version 5.0.0-beta.20471.1 -> To Version 6.0.0-beta.20509.12 Dependency coherency updates Microsoft.WindowsDesktop.App.Ref,Microsoft.WindowsDesktop.App,Microsoft.AspNetCore.App.Ref,Microsoft.AspNetCore.App.Ref.Internal,Microsoft.AspNetCore.App.Runtime.win-x64,VS.Redist.Common.AspNetCore.TargetingPack.x64.5.0,dotnet-dev-certs,dotnet-user-secrets,dotnet-watch,Microsoft.Dotnet.WinForms.ProjectTemplates,Microsoft.WindowsDesktop.App.Runtime.win-x64,Microsoft.DotNet.Wpf.ProjectTemplates,Microsoft.FSharp.Compiler,Microsoft.NET.Test.Sdk,Microsoft.NET.ILLink.Tasks,Microsoft.Net.Compilers.Toolset,Microsoft.Build,NuGet.Build.Tasks,Microsoft.SourceLink.GitHub,XliffTasks From Version 5.0.0-rc.2.20474.5 -> To Version 5.0.0-rc.1.20417.4 (parent: Microsoft.NET.Sdk * Update dependencies from https://github.com/dotnet/arcade build 20201020.8 Microsoft.DotNet.Build.Tasks.Installers , Microsoft.DotNet.Arcade.Sdk From Version 5.0.0-beta.20471.1 -> To Version 6.0.0-beta.20520.8 Dependency coherency updates Microsoft.SourceLink.GitHub,XliffTasks From Version 1.1.0-beta-20464-02 -> To Version 1.1.0-beta-20519-02 (parent: Microsoft.DotNet.Arcade.Sdk * Update FileInfoAssertions.cs * Update FileInfoAssertions.cs * Use tasks provided by Microsoft.DotNet.Build.Tasks.Installers when provided. Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com> Co-authored-by: Jeremy Koritzinsky <jekoritz@microsoft.com>
This commit is contained in:
parent
b45ea003fa
commit
f8eb583d40
19 changed files with 237 additions and 259 deletions
|
@ -140,25 +140,25 @@
|
||||||
</Dependency>
|
</Dependency>
|
||||||
</ProductDependencies>
|
</ProductDependencies>
|
||||||
<ToolsetDependencies>
|
<ToolsetDependencies>
|
||||||
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="5.0.0-beta.20471.1">
|
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="6.0.0-beta.20520.8">
|
||||||
<Uri>https://github.com/dotnet/arcade</Uri>
|
<Uri>https://github.com/dotnet/arcade</Uri>
|
||||||
<Sha>0365488709f58e37de6c2180e7fb243203ca0a9c</Sha>
|
<Sha>7fbf2a7703498067569d07a21776b91e599028e2</Sha>
|
||||||
</Dependency>
|
</Dependency>
|
||||||
<Dependency Name="Microsoft.DotNet.Build.Tasks.Installers" Version="5.0.0-beta.20471.1">
|
<Dependency Name="Microsoft.DotNet.Build.Tasks.Installers" Version="6.0.0-beta.20520.8">
|
||||||
<Uri>https://github.com/dotnet/arcade</Uri>
|
<Uri>https://github.com/dotnet/arcade</Uri>
|
||||||
<Sha>0365488709f58e37de6c2180e7fb243203ca0a9c</Sha>
|
<Sha>7fbf2a7703498067569d07a21776b91e599028e2</Sha>
|
||||||
</Dependency>
|
</Dependency>
|
||||||
<Dependency Name="Private.SourceBuild.ReferencePackages" Version="1.0.0-beta.20217.1">
|
<Dependency Name="Private.SourceBuild.ReferencePackages" Version="1.0.0-beta.20217.1">
|
||||||
<Uri>https://github.com/dotnet/source-build-reference-packages</Uri>
|
<Uri>https://github.com/dotnet/source-build-reference-packages</Uri>
|
||||||
<Sha>639aeb4d76c8b1a6226bf7c4edb34fbdae30e6e1</Sha>
|
<Sha>639aeb4d76c8b1a6226bf7c4edb34fbdae30e6e1</Sha>
|
||||||
</Dependency>
|
</Dependency>
|
||||||
<Dependency Name="Microsoft.SourceLink.GitHub" Version="1.1.0-beta-20464-02" CoherentParentDependency="Microsoft.DotNet.Arcade.Sdk">
|
<Dependency Name="Microsoft.SourceLink.GitHub" Version="1.1.0-beta-20519-02" CoherentParentDependency="Microsoft.DotNet.Arcade.Sdk">
|
||||||
<Uri>https://github.com/dotnet/sourcelink</Uri>
|
<Uri>https://github.com/dotnet/sourcelink</Uri>
|
||||||
<Sha>8a3edd1902dbfe3adba65f22e3bb7aa2cc73e97f</Sha>
|
<Sha>0decb380f1e0f8267259b5ae5d0d1e5102e380a1</Sha>
|
||||||
</Dependency>
|
</Dependency>
|
||||||
<Dependency Name="XliffTasks" Version="1.0.0-beta.20420.1" CoherentParentDependency="Microsoft.DotNet.Arcade.Sdk">
|
<Dependency Name="XliffTasks" Version="1.0.0-beta.20519.1" CoherentParentDependency="Microsoft.DotNet.Arcade.Sdk">
|
||||||
<Uri>https://github.com/dotnet/xliff-tasks</Uri>
|
<Uri>https://github.com/dotnet/xliff-tasks</Uri>
|
||||||
<Sha>975065e08307a459dc2649b1c852f5c4cafd2f91</Sha>
|
<Sha>339b0111cdf8bf4fd3cab63c9f9bfbf6db5325b4</Sha>
|
||||||
</Dependency>
|
</Dependency>
|
||||||
</ToolsetDependencies>
|
</ToolsetDependencies>
|
||||||
</Dependencies>
|
</Dependencies>
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<!-- Dependency from https://github.com/dotnet/arcade -->
|
<!-- Dependency from https://github.com/dotnet/arcade -->
|
||||||
<MicrosoftDotNetBuildTasksInstallersPackageVersion>5.0.0-beta.20472.36</MicrosoftDotNetBuildTasksInstallersPackageVersion>
|
<MicrosoftDotNetBuildTasksInstallersPackageVersion>6.0.0-beta.20520.8</MicrosoftDotNetBuildTasksInstallersPackageVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<!-- Dependency from https://github.com/dotnet/winforms -->
|
<!-- Dependency from https://github.com/dotnet/winforms -->
|
||||||
|
|
|
@ -329,6 +329,7 @@ elif [[ -n $__CodeName ]]; then
|
||||||
chroot $__RootfsDir apt-get -f -y install
|
chroot $__RootfsDir apt-get -f -y install
|
||||||
chroot $__RootfsDir apt-get -y install $__UbuntuPackages
|
chroot $__RootfsDir apt-get -y install $__UbuntuPackages
|
||||||
chroot $__RootfsDir symlinks -cr /usr
|
chroot $__RootfsDir symlinks -cr /usr
|
||||||
|
chroot $__RootfsDir apt clean
|
||||||
|
|
||||||
if [ $__SkipUnmount == 0 ]; then
|
if [ $__SkipUnmount == 0 ]; then
|
||||||
umount $__RootfsDir/* || true
|
umount $__RootfsDir/* || true
|
||||||
|
|
|
@ -139,6 +139,10 @@ function(add_toolchain_linker_flag Flag)
|
||||||
set("CMAKE_SHARED_LINKER_FLAGS${CONFIG_SUFFIX}" "${CMAKE_SHARED_LINKER_FLAGS${CONFIG_SUFFIX}} ${Flag}" PARENT_SCOPE)
|
set("CMAKE_SHARED_LINKER_FLAGS${CONFIG_SUFFIX}" "${CMAKE_SHARED_LINKER_FLAGS${CONFIG_SUFFIX}} ${Flag}" PARENT_SCOPE)
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
|
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||||
|
add_toolchain_linker_flag("-Wl,--rpath-link=${CROSS_ROOTFS}/lib/${TOOLCHAIN}")
|
||||||
|
add_toolchain_linker_flag("-Wl,--rpath-link=${CROSS_ROOTFS}/usr/lib/${TOOLCHAIN}")
|
||||||
|
endif()
|
||||||
|
|
||||||
if(TARGET_ARCH_NAME STREQUAL "armel")
|
if(TARGET_ARCH_NAME STREQUAL "armel")
|
||||||
if(DEFINED TIZEN_TOOLCHAIN) # For Tizen only
|
if(DEFINED TIZEN_TOOLCHAIN) # For Tizen only
|
||||||
|
|
|
@ -27,11 +27,18 @@
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<SingleAssembly Include="System.Private.Xml.dll"/>
|
<SingleAssembly Include="System.Net.WebProxy.dll"/> <!-- Approx. 10 KB as of 2020/10 -->
|
||||||
<SingleAssembly Include="System.Linq.Expressions.dll"/>
|
<SingleAssembly Include="System.Net.Http.Json.dll"/> <!-- Approx. 20 KB as of 2020/10 -->
|
||||||
<SingleAssembly Include="Microsoft.CodeAnalysis.VisualBasic.dll"/>
|
<SingleAssembly Include="System.Drawing.Primitives.dll"/> <!-- Approx. 50 KB as of 2020/10 -->
|
||||||
<SingleAssembly Include="Microsoft.CodeAnalysis.CSharp.dll"/>
|
<SingleAssembly Include="System.ServiceModel.Syndication.dll"/> <!-- Approx. 100 KB as of 2020/10 -->
|
||||||
<SingleAssembly Include="System.Private.CoreLib.dll"/>
|
<SingleAssembly Include="System.Net.Sockets.dll"/> <!-- Approx. 200 KB as of 2020/10 -->
|
||||||
|
<SingleAssembly Include="System.Linq.Expressions.dll"/> <!-- Approx. 500 KB as of 2020/10 -->
|
||||||
|
<SingleAssembly Include="System.Data.Common.dll"/> <!-- Approx. 1 MB as of 2020/10 -->
|
||||||
|
<SingleAssembly Include="Microsoft.CodeAnalysis.dll"/> <!-- Approx. 2 MB as of 2020/10 -->
|
||||||
|
<SingleAssembly Include="System.Private.Xml.dll"/> <!-- Approx. 3 MB as of 2020/10 -->
|
||||||
|
<SingleAssembly Include="Microsoft.CodeAnalysis.VisualBasic.dll"/> <!-- Approx. 4 MB as of 2020/10 -->
|
||||||
|
<SingleAssembly Include="Microsoft.CodeAnalysis.CSharp.dll"/> <!-- Approx. 4 MB as of 2020/10 -->
|
||||||
|
<SingleAssembly Include="System.Private.CoreLib.dll"/> <!-- Approx. 10 MB as of 2020/10 -->
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Composite Include="framework-r2r.dll.rsp"/>
|
<Composite Include="framework-r2r.dll.rsp"/>
|
||||||
|
@ -51,6 +58,13 @@
|
||||||
</Crossgen2WorkItem>
|
</Crossgen2WorkItem>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<Crossgen2SingleThreadedWorkItem Include="@(SingleAssembly)">
|
||||||
|
<PayloadDirectory>$(WorkItemDirectory)</PayloadDirectory>
|
||||||
|
<Command>$(Python) $(Crossgen2Directory)test.py crossgen2 --core-root $(CoreRoot) --single %(Identity) --singlethreaded True</Command>
|
||||||
|
</Crossgen2SingleThreadedWorkItem>
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<!-- Enable crossgen tests on Windows x64 and Windows x86 -->
|
<!-- Enable crossgen tests on Windows x64 and Windows x86 -->
|
||||||
<HelixWorkItem Include="@(CrossgenWorkItem -> 'Crossgen %(Identity)')" Condition="'$(AGENT_OS)' == 'Windows_NT'">
|
<HelixWorkItem Include="@(CrossgenWorkItem -> 'Crossgen %(Identity)')" Condition="'$(AGENT_OS)' == 'Windows_NT'">
|
||||||
|
@ -60,6 +74,9 @@
|
||||||
<HelixWorkItem Include="@(Crossgen2WorkItem -> 'Crossgen2 %(Identity)')" Condition="'$(Architecture)' == 'x64'">
|
<HelixWorkItem Include="@(Crossgen2WorkItem -> 'Crossgen2 %(Identity)')" Condition="'$(Architecture)' == 'x64'">
|
||||||
<Timeout>4:00</Timeout>
|
<Timeout>4:00</Timeout>
|
||||||
</HelixWorkItem>
|
</HelixWorkItem>
|
||||||
|
<HelixWorkItem Include="@(Crossgen2SingleThreadedWorkItem -> 'Crossgen2 single-threaded %(Identity)')" Condition="'$(Architecture)' == 'x64'">
|
||||||
|
<Timeout>4:00</Timeout>
|
||||||
|
</HelixWorkItem>
|
||||||
<HelixWorkItem Include="Crossgen2 Composite Framework R2R" Condition="'$(Architecture)' == 'x64'">
|
<HelixWorkItem Include="Crossgen2 Composite Framework R2R" Condition="'$(Architecture)' == 'x64'">
|
||||||
<PayloadDirectory>$(WorkItemDirectory)</PayloadDirectory>
|
<PayloadDirectory>$(WorkItemDirectory)</PayloadDirectory>
|
||||||
<Command>$(Python) $(Crossgen2Directory)test.py crossgen2 --core-root $(CoreRoot) --composite $(Crossgen2Directory)framework-r2r.dll.rsp</Command>
|
<Command>$(Python) $(Crossgen2Directory)test.py crossgen2 --core-root $(CoreRoot) --composite $(Crossgen2Directory)framework-r2r.dll.rsp</Command>
|
||||||
|
|
|
@ -211,6 +211,7 @@ if [[ "$wasm_runtime_loc" != "" ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$mono_dotnet" != "" ]] && [[ "$monointerpreter" == "true" ]]; then
|
if [[ "$mono_dotnet" != "" ]] && [[ "$monointerpreter" == "true" ]]; then
|
||||||
|
configurations="$configurations LLVM=$llvm MonoInterpreter=$monointerpreter MonoAOT=$monoaot"
|
||||||
extra_benchmark_dotnet_arguments="$extra_benchmark_dotnet_arguments --category-exclusion-filter NoInterpreter NoMono"
|
extra_benchmark_dotnet_arguments="$extra_benchmark_dotnet_arguments --category-exclusion-filter NoInterpreter NoMono"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -161,9 +161,12 @@ $ValidatePackage = {
|
||||||
function CheckJobResult(
|
function CheckJobResult(
|
||||||
$result,
|
$result,
|
||||||
$packagePath,
|
$packagePath,
|
||||||
[ref]$ValidationFailures) {
|
[ref]$ValidationFailures,
|
||||||
if ($jobResult.result -ne '0') {
|
[switch]$logErrors) {
|
||||||
Write-PipelineTelemetryError -Category 'SourceLink' -Message "$packagePath has broken SourceLink links."
|
if ($result -ne '0') {
|
||||||
|
if ($logError) {
|
||||||
|
Write-PipelineTelemetryError -Category 'SourceLink' -Message "$packagePath has broken SourceLink links."
|
||||||
|
}
|
||||||
$ValidationFailures.Value++
|
$ValidationFailures.Value++
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -228,16 +231,14 @@ function ValidateSourceLinkLinks {
|
||||||
|
|
||||||
foreach ($Job in @(Get-Job -State 'Completed')) {
|
foreach ($Job in @(Get-Job -State 'Completed')) {
|
||||||
$jobResult = Wait-Job -Id $Job.Id | Receive-Job
|
$jobResult = Wait-Job -Id $Job.Id | Receive-Job
|
||||||
CheckJobResult $jobResult.result $jobResult.packagePath ([ref]$ValidationFailures)
|
CheckJobResult $jobResult.result $jobResult.packagePath ([ref]$ValidationFailures) -LogErrors
|
||||||
Remove-Job -Id $Job.Id
|
Remove-Job -Id $Job.Id
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($Job in @(Get-Job)) {
|
foreach ($Job in @(Get-Job)) {
|
||||||
$jobResult = Wait-Job -Id $Job.Id | Receive-Job
|
$jobResult = Wait-Job -Id $Job.Id | Receive-Job
|
||||||
if ($jobResult -ne '0') {
|
CheckJobResult $jobResult.result $jobResult.packagePath ([ref]$ValidationFailures)
|
||||||
$ValidationFailures++
|
|
||||||
}
|
|
||||||
Remove-Job -Id $Job.Id
|
Remove-Job -Id $Job.Id
|
||||||
}
|
}
|
||||||
if ($ValidationFailures -gt 0) {
|
if ($ValidationFailures -gt 0) {
|
||||||
|
|
|
@ -27,6 +27,7 @@ parameters:
|
||||||
useBuildManifest: false
|
useBuildManifest: false
|
||||||
mergeTestResults: false
|
mergeTestResults: false
|
||||||
testRunTitle: ''
|
testRunTitle: ''
|
||||||
|
testResultsFormat: ''
|
||||||
name: ''
|
name: ''
|
||||||
preSteps: []
|
preSteps: []
|
||||||
runAsPublic: false
|
runAsPublic: false
|
||||||
|
@ -131,8 +132,8 @@ jobs:
|
||||||
- task: RichCodeNavIndexer@0
|
- task: RichCodeNavIndexer@0
|
||||||
displayName: RichCodeNav Upload
|
displayName: RichCodeNav Upload
|
||||||
inputs:
|
inputs:
|
||||||
languages: 'csharp'
|
languages: ${{ coalesce(parameters.richCodeNavigationLanguage, 'csharp') }}
|
||||||
environment: ${{ coalesce(parameters.richCodeNavigationEnvironment, 'prod') }}
|
environment: ${{ coalesce(parameters.richCodeNavigationEnvironment, 'production') }}
|
||||||
richNavLogOutputDirectory: $(Build.SourcesDirectory)/artifacts/bin
|
richNavLogOutputDirectory: $(Build.SourcesDirectory)/artifacts/bin
|
||||||
continueOnError: true
|
continueOnError: true
|
||||||
|
|
||||||
|
@ -202,9 +203,9 @@ jobs:
|
||||||
continueOnError: true
|
continueOnError: true
|
||||||
condition: always()
|
condition: always()
|
||||||
|
|
||||||
- ${{ if eq(parameters.enablePublishTestResults, 'true') }}:
|
- ${{ if or(eq(parameters.enablePublishTestResults, 'true'), eq(parameters.testResultsFormat, 'xunit')) }}:
|
||||||
- task: PublishTestResults@2
|
- task: PublishTestResults@2
|
||||||
displayName: Publish Test Results
|
displayName: Publish XUnit Test Results
|
||||||
inputs:
|
inputs:
|
||||||
testResultsFormat: 'xUnit'
|
testResultsFormat: 'xUnit'
|
||||||
testResultsFiles: '*.xml'
|
testResultsFiles: '*.xml'
|
||||||
|
@ -213,6 +214,17 @@ jobs:
|
||||||
mergeTestResults: ${{ parameters.mergeTestResults }}
|
mergeTestResults: ${{ parameters.mergeTestResults }}
|
||||||
continueOnError: true
|
continueOnError: true
|
||||||
condition: always()
|
condition: always()
|
||||||
|
- ${{ if or(eq(parameters.enablePublishTestResults, 'true'), eq(parameters.testResultsFormat, 'vstest')) }}:
|
||||||
|
- task: PublishTestResults@2
|
||||||
|
displayName: Publish TRX Test Results
|
||||||
|
inputs:
|
||||||
|
testResultsFormat: 'VSTest'
|
||||||
|
testResultsFiles: '*.trx'
|
||||||
|
searchFolder: '$(Build.SourcesDirectory)/artifacts/TestResults/$(_BuildConfig)'
|
||||||
|
testRunTitle: ${{ coalesce(parameters.testRunTitle, parameters.name, '$(System.JobName)') }}-trx
|
||||||
|
mergeTestResults: ${{ parameters.mergeTestResults }}
|
||||||
|
continueOnError: true
|
||||||
|
condition: always()
|
||||||
|
|
||||||
- ${{ if and(eq(parameters.enablePublishBuildAssets, true), ne(parameters.enablePublishUsingPipelines, 'true'), eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
|
- ${{ if and(eq(parameters.enablePublishBuildAssets, true), ne(parameters.enablePublishUsingPipelines, 'true'), eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
|
||||||
- task: CopyFiles@2
|
- task: CopyFiles@2
|
||||||
|
|
|
@ -67,175 +67,180 @@ parameters:
|
||||||
VSMasterChannelId: 1012
|
VSMasterChannelId: 1012
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- stage: Validate
|
- ${{ if or(and(le(parameters.publishingInfraVersion, 2), eq(parameters.inline, 'true')), eq( parameters.enableNugetValidation, 'true'), eq(parameters.enableSigningValidation, 'true'), eq(parameters.enableSourceLinkValidation, 'true'), eq(parameters.SDLValidationParameters.enable, 'true')) }}:
|
||||||
dependsOn: ${{ parameters.validateDependsOn }}
|
- stage: Validate
|
||||||
displayName: Validate Build Assets
|
dependsOn: ${{ parameters.validateDependsOn }}
|
||||||
variables:
|
displayName: Validate Build Assets
|
||||||
- template: common-variables.yml
|
|
||||||
jobs:
|
|
||||||
- template: setup-maestro-vars.yml
|
|
||||||
parameters:
|
|
||||||
BARBuildId: ${{ parameters.BARBuildId }}
|
|
||||||
PromoteToChannelIds: ${{ parameters.PromoteToChannelIds }}
|
|
||||||
|
|
||||||
- job:
|
|
||||||
displayName: Post-build Checks
|
|
||||||
dependsOn: setupMaestroVars
|
|
||||||
variables:
|
|
||||||
- name: TargetChannels
|
|
||||||
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.TargetChannels'] ]
|
|
||||||
pool:
|
|
||||||
vmImage: 'windows-2019'
|
|
||||||
steps:
|
|
||||||
- task: PowerShell@2
|
|
||||||
displayName: Maestro Channels Consistency
|
|
||||||
inputs:
|
|
||||||
filePath: $(Build.SourcesDirectory)/eng/common/post-build/check-channel-consistency.ps1
|
|
||||||
arguments: -PromoteToChannels "$(TargetChannels)"
|
|
||||||
-AvailableChannelIds ${{parameters.NetEngLatestChannelId}},${{parameters.NetEngValidationChannelId}},${{parameters.NetDev5ChannelId}},${{parameters.NetDev6ChannelId}},${{parameters.GeneralTestingChannelId}},${{parameters.NETCoreToolingDevChannelId}},${{parameters.NETCoreToolingReleaseChannelId}},${{parameters.NETInternalToolingChannelId}},${{parameters.NETCoreExperimentalChannelId}},${{parameters.NetEngServicesIntChannelId}},${{parameters.NetEngServicesProdChannelId}},${{parameters.Net5Preview8ChannelId}},${{parameters.Net5RC1ChannelId}},${{parameters.Net5RC2ChannelId}},${{parameters.NetCoreSDK313xxChannelId}},${{parameters.NetCoreSDK313xxInternalChannelId}},${{parameters.NetCoreSDK314xxChannelId}},${{parameters.NetCoreSDK314xxInternalChannelId}},${{parameters.VS166ChannelId}},${{parameters.VS167ChannelId}},${{parameters.VS168ChannelId}},${{parameters.VSMasterChannelId}}
|
|
||||||
|
|
||||||
- job:
|
|
||||||
displayName: NuGet Validation
|
|
||||||
dependsOn: setupMaestroVars
|
|
||||||
condition: eq( ${{ parameters.enableNugetValidation }}, 'true')
|
|
||||||
pool:
|
|
||||||
vmImage: 'windows-2019'
|
|
||||||
variables:
|
|
||||||
- name: AzDOProjectName
|
|
||||||
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.AzDOProjectName'] ]
|
|
||||||
- name: AzDOPipelineId
|
|
||||||
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.AzDOPipelineId'] ]
|
|
||||||
- name: AzDOBuildId
|
|
||||||
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.AzDOBuildId'] ]
|
|
||||||
steps:
|
|
||||||
- task: DownloadBuildArtifacts@0
|
|
||||||
displayName: Download Package Artifacts
|
|
||||||
inputs:
|
|
||||||
buildType: specific
|
|
||||||
buildVersionToDownload: specific
|
|
||||||
project: $(AzDOProjectName)
|
|
||||||
pipeline: $(AzDOPipelineId)
|
|
||||||
buildId: $(AzDOBuildId)
|
|
||||||
artifactName: PackageArtifacts
|
|
||||||
|
|
||||||
- task: PowerShell@2
|
|
||||||
displayName: Validate
|
|
||||||
inputs:
|
|
||||||
filePath: $(Build.SourcesDirectory)/eng/common/post-build/nuget-validation.ps1
|
|
||||||
arguments: -PackagesPath $(Build.ArtifactStagingDirectory)/PackageArtifacts/
|
|
||||||
-ToolDestinationPath $(Agent.BuildDirectory)/Extract/
|
|
||||||
|
|
||||||
- job:
|
|
||||||
displayName: Signing Validation
|
|
||||||
dependsOn: setupMaestroVars
|
|
||||||
condition: eq( ${{ parameters.enableSigningValidation }}, 'true')
|
|
||||||
variables:
|
variables:
|
||||||
- template: common-variables.yml
|
- template: common-variables.yml
|
||||||
- name: AzDOProjectName
|
jobs:
|
||||||
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.AzDOProjectName'] ]
|
- template: setup-maestro-vars.yml
|
||||||
- name: AzDOPipelineId
|
parameters:
|
||||||
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.AzDOPipelineId'] ]
|
BARBuildId: ${{ parameters.BARBuildId }}
|
||||||
- name: AzDOBuildId
|
PromoteToChannelIds: ${{ parameters.PromoteToChannelIds }}
|
||||||
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.AzDOBuildId'] ]
|
|
||||||
pool:
|
- ${{ if and(le(parameters.publishingInfraVersion, 2), eq(parameters.inline, 'true')) }}:
|
||||||
vmImage: 'windows-2019'
|
- job:
|
||||||
steps:
|
displayName: Post-build Checks
|
||||||
- ${{ if eq(parameters.useBuildManifest, true) }}:
|
dependsOn: setupMaestroVars
|
||||||
|
variables:
|
||||||
|
- name: TargetChannels
|
||||||
|
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.TargetChannels'] ]
|
||||||
|
pool:
|
||||||
|
vmImage: 'windows-2019'
|
||||||
|
steps:
|
||||||
|
- task: PowerShell@2
|
||||||
|
displayName: Maestro Channels Consistency
|
||||||
|
inputs:
|
||||||
|
filePath: $(Build.SourcesDirectory)/eng/common/post-build/check-channel-consistency.ps1
|
||||||
|
arguments: -PromoteToChannels "$(TargetChannels)"
|
||||||
|
-AvailableChannelIds ${{parameters.NetEngLatestChannelId}},${{parameters.NetEngValidationChannelId}},${{parameters.NetDev5ChannelId}},${{parameters.NetDev6ChannelId}},${{parameters.GeneralTestingChannelId}},${{parameters.NETCoreToolingDevChannelId}},${{parameters.NETCoreToolingReleaseChannelId}},${{parameters.NETInternalToolingChannelId}},${{parameters.NETCoreExperimentalChannelId}},${{parameters.NetEngServicesIntChannelId}},${{parameters.NetEngServicesProdChannelId}},${{parameters.Net5Preview8ChannelId}},${{parameters.Net5RC1ChannelId}},${{parameters.Net5RC2ChannelId}},${{parameters.NetCoreSDK313xxChannelId}},${{parameters.NetCoreSDK313xxInternalChannelId}},${{parameters.NetCoreSDK314xxChannelId}},${{parameters.NetCoreSDK314xxInternalChannelId}},${{parameters.VS166ChannelId}},${{parameters.VS167ChannelId}},${{parameters.VS168ChannelId}},${{parameters.VSMasterChannelId}}
|
||||||
|
|
||||||
|
- job:
|
||||||
|
displayName: NuGet Validation
|
||||||
|
dependsOn: setupMaestroVars
|
||||||
|
condition: eq( ${{ parameters.enableNugetValidation }}, 'true')
|
||||||
|
pool:
|
||||||
|
vmImage: 'windows-2019'
|
||||||
|
variables:
|
||||||
|
- name: AzDOProjectName
|
||||||
|
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.AzDOProjectName'] ]
|
||||||
|
- name: AzDOPipelineId
|
||||||
|
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.AzDOPipelineId'] ]
|
||||||
|
- name: AzDOBuildId
|
||||||
|
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.AzDOBuildId'] ]
|
||||||
|
steps:
|
||||||
- task: DownloadBuildArtifacts@0
|
- task: DownloadBuildArtifacts@0
|
||||||
displayName: Download build manifest
|
displayName: Download Package Artifacts
|
||||||
inputs:
|
inputs:
|
||||||
buildType: specific
|
buildType: specific
|
||||||
buildVersionToDownload: specific
|
buildVersionToDownload: specific
|
||||||
project: $(AzDOProjectName)
|
project: $(AzDOProjectName)
|
||||||
pipeline: $(AzDOPipelineId)
|
pipeline: $(AzDOPipelineId)
|
||||||
buildId: $(AzDOBuildId)
|
buildId: $(AzDOBuildId)
|
||||||
artifactName: BuildManifests
|
artifactName: PackageArtifacts
|
||||||
- task: DownloadBuildArtifacts@0
|
|
||||||
displayName: Download Package Artifacts
|
|
||||||
inputs:
|
|
||||||
buildType: specific
|
|
||||||
buildVersionToDownload: specific
|
|
||||||
project: $(AzDOProjectName)
|
|
||||||
pipeline: $(AzDOPipelineId)
|
|
||||||
buildId: $(AzDOBuildId)
|
|
||||||
artifactName: PackageArtifacts
|
|
||||||
|
|
||||||
# This is necessary whenever we want to publish/restore to an AzDO private feed
|
- task: PowerShell@2
|
||||||
# Since sdk-task.ps1 tries to restore packages we need to do this authentication here
|
displayName: Validate
|
||||||
# otherwise it'll complain about accessing a private feed.
|
inputs:
|
||||||
- task: NuGetAuthenticate@0
|
filePath: $(Build.SourcesDirectory)/eng/common/post-build/nuget-validation.ps1
|
||||||
displayName: 'Authenticate to AzDO Feeds'
|
arguments: -PackagesPath $(Build.ArtifactStagingDirectory)/PackageArtifacts/
|
||||||
|
-ToolDestinationPath $(Agent.BuildDirectory)/Extract/
|
||||||
|
|
||||||
- task: PowerShell@2
|
- job:
|
||||||
displayName: Enable cross-org publishing
|
displayName: Signing Validation
|
||||||
inputs:
|
|
||||||
filePath: eng\common\enable-cross-org-publishing.ps1
|
|
||||||
arguments: -token $(dn-bot-dnceng-artifact-feeds-rw)
|
|
||||||
|
|
||||||
# Signing validation will optionally work with the buildmanifest file which is downloaded from
|
|
||||||
# Azure DevOps above.
|
|
||||||
- task: PowerShell@2
|
|
||||||
displayName: Validate
|
|
||||||
inputs:
|
|
||||||
filePath: eng\common\sdk-task.ps1
|
|
||||||
arguments: -task SigningValidation -restore -msbuildEngine vs
|
|
||||||
/p:PackageBasePath='$(Build.ArtifactStagingDirectory)/PackageArtifacts'
|
|
||||||
/p:SignCheckExclusionsFile='$(Build.SourcesDirectory)/eng/SignCheckExclusionsFile.txt'
|
|
||||||
${{ parameters.signingValidationAdditionalParameters }}
|
|
||||||
|
|
||||||
- template: ../steps/publish-logs.yml
|
|
||||||
parameters:
|
|
||||||
StageLabel: 'Validation'
|
|
||||||
JobLabel: 'Signing'
|
|
||||||
|
|
||||||
- job:
|
|
||||||
displayName: SourceLink Validation
|
|
||||||
dependsOn: setupMaestroVars
|
|
||||||
condition: eq( ${{ parameters.enableSourceLinkValidation }}, 'true')
|
|
||||||
variables:
|
|
||||||
- template: common-variables.yml
|
|
||||||
- name: AzDOProjectName
|
|
||||||
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.AzDOProjectName'] ]
|
|
||||||
- name: AzDOPipelineId
|
|
||||||
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.AzDOPipelineId'] ]
|
|
||||||
- name: AzDOBuildId
|
|
||||||
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.AzDOBuildId'] ]
|
|
||||||
pool:
|
|
||||||
vmImage: 'windows-2019'
|
|
||||||
steps:
|
|
||||||
- task: DownloadBuildArtifacts@0
|
|
||||||
displayName: Download Blob Artifacts
|
|
||||||
inputs:
|
|
||||||
buildType: specific
|
|
||||||
buildVersionToDownload: specific
|
|
||||||
project: $(AzDOProjectName)
|
|
||||||
pipeline: $(AzDOPipelineId)
|
|
||||||
buildId: $(AzDOBuildId)
|
|
||||||
artifactName: BlobArtifacts
|
|
||||||
|
|
||||||
- task: PowerShell@2
|
|
||||||
displayName: Validate
|
|
||||||
inputs:
|
|
||||||
filePath: $(Build.SourcesDirectory)/eng/common/post-build/sourcelink-validation.ps1
|
|
||||||
arguments: -InputPath $(Build.ArtifactStagingDirectory)/BlobArtifacts/
|
|
||||||
-ExtractPath $(Agent.BuildDirectory)/Extract/
|
|
||||||
-GHRepoName $(Build.Repository.Name)
|
|
||||||
-GHCommit $(Build.SourceVersion)
|
|
||||||
-SourcelinkCliVersion $(SourceLinkCLIVersion)
|
|
||||||
continueOnError: true
|
|
||||||
|
|
||||||
- template: /eng/common/templates/job/execute-sdl.yml
|
|
||||||
parameters:
|
|
||||||
enable: ${{ parameters.SDLValidationParameters.enable }}
|
|
||||||
dependsOn: setupMaestroVars
|
dependsOn: setupMaestroVars
|
||||||
additionalParameters: ${{ parameters.SDLValidationParameters.params }}
|
condition: eq( ${{ parameters.enableSigningValidation }}, 'true')
|
||||||
continueOnError: ${{ parameters.SDLValidationParameters.continueOnError }}
|
variables:
|
||||||
artifactNames: ${{ parameters.SDLValidationParameters.artifactNames }}
|
- template: common-variables.yml
|
||||||
downloadArtifacts: ${{ parameters.SDLValidationParameters.downloadArtifacts }}
|
- name: AzDOProjectName
|
||||||
|
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.AzDOProjectName'] ]
|
||||||
|
- name: AzDOPipelineId
|
||||||
|
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.AzDOPipelineId'] ]
|
||||||
|
- name: AzDOBuildId
|
||||||
|
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.AzDOBuildId'] ]
|
||||||
|
pool:
|
||||||
|
vmImage: 'windows-2019'
|
||||||
|
steps:
|
||||||
|
- ${{ if eq(parameters.useBuildManifest, true) }}:
|
||||||
|
- task: DownloadBuildArtifacts@0
|
||||||
|
displayName: Download build manifest
|
||||||
|
inputs:
|
||||||
|
buildType: specific
|
||||||
|
buildVersionToDownload: specific
|
||||||
|
project: $(AzDOProjectName)
|
||||||
|
pipeline: $(AzDOPipelineId)
|
||||||
|
buildId: $(AzDOBuildId)
|
||||||
|
artifactName: BuildManifests
|
||||||
|
- task: DownloadBuildArtifacts@0
|
||||||
|
displayName: Download Package Artifacts
|
||||||
|
inputs:
|
||||||
|
buildType: specific
|
||||||
|
buildVersionToDownload: specific
|
||||||
|
project: $(AzDOProjectName)
|
||||||
|
pipeline: $(AzDOPipelineId)
|
||||||
|
buildId: $(AzDOBuildId)
|
||||||
|
artifactName: PackageArtifacts
|
||||||
|
|
||||||
|
# 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: PowerShell@2
|
||||||
|
displayName: Enable cross-org publishing
|
||||||
|
inputs:
|
||||||
|
filePath: eng\common\enable-cross-org-publishing.ps1
|
||||||
|
arguments: -token $(dn-bot-dnceng-artifact-feeds-rw)
|
||||||
|
|
||||||
|
# Signing validation will optionally work with the buildmanifest file which is downloaded from
|
||||||
|
# Azure DevOps above.
|
||||||
|
- task: PowerShell@2
|
||||||
|
displayName: Validate
|
||||||
|
inputs:
|
||||||
|
filePath: eng\common\sdk-task.ps1
|
||||||
|
arguments: -task SigningValidation -restore -msbuildEngine vs
|
||||||
|
/p:PackageBasePath='$(Build.ArtifactStagingDirectory)/PackageArtifacts'
|
||||||
|
/p:SignCheckExclusionsFile='$(Build.SourcesDirectory)/eng/SignCheckExclusionsFile.txt'
|
||||||
|
${{ parameters.signingValidationAdditionalParameters }}
|
||||||
|
|
||||||
|
- template: ../steps/publish-logs.yml
|
||||||
|
parameters:
|
||||||
|
StageLabel: 'Validation'
|
||||||
|
JobLabel: 'Signing'
|
||||||
|
|
||||||
|
- job:
|
||||||
|
displayName: SourceLink Validation
|
||||||
|
dependsOn: setupMaestroVars
|
||||||
|
condition: eq( ${{ parameters.enableSourceLinkValidation }}, 'true')
|
||||||
|
variables:
|
||||||
|
- template: common-variables.yml
|
||||||
|
- name: AzDOProjectName
|
||||||
|
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.AzDOProjectName'] ]
|
||||||
|
- name: AzDOPipelineId
|
||||||
|
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.AzDOPipelineId'] ]
|
||||||
|
- name: AzDOBuildId
|
||||||
|
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.AzDOBuildId'] ]
|
||||||
|
pool:
|
||||||
|
vmImage: 'windows-2019'
|
||||||
|
steps:
|
||||||
|
- task: DownloadBuildArtifacts@0
|
||||||
|
displayName: Download Blob Artifacts
|
||||||
|
inputs:
|
||||||
|
buildType: specific
|
||||||
|
buildVersionToDownload: specific
|
||||||
|
project: $(AzDOProjectName)
|
||||||
|
pipeline: $(AzDOPipelineId)
|
||||||
|
buildId: $(AzDOBuildId)
|
||||||
|
artifactName: BlobArtifacts
|
||||||
|
|
||||||
|
- task: PowerShell@2
|
||||||
|
displayName: Validate
|
||||||
|
inputs:
|
||||||
|
filePath: $(Build.SourcesDirectory)/eng/common/post-build/sourcelink-validation.ps1
|
||||||
|
arguments: -InputPath $(Build.ArtifactStagingDirectory)/BlobArtifacts/
|
||||||
|
-ExtractPath $(Agent.BuildDirectory)/Extract/
|
||||||
|
-GHRepoName $(Build.Repository.Name)
|
||||||
|
-GHCommit $(Build.SourceVersion)
|
||||||
|
-SourcelinkCliVersion $(SourceLinkCLIVersion)
|
||||||
|
continueOnError: true
|
||||||
|
|
||||||
|
- template: /eng/common/templates/job/execute-sdl.yml
|
||||||
|
parameters:
|
||||||
|
enable: ${{ parameters.SDLValidationParameters.enable }}
|
||||||
|
dependsOn: setupMaestroVars
|
||||||
|
additionalParameters: ${{ parameters.SDLValidationParameters.params }}
|
||||||
|
continueOnError: ${{ parameters.SDLValidationParameters.continueOnError }}
|
||||||
|
artifactNames: ${{ parameters.SDLValidationParameters.artifactNames }}
|
||||||
|
downloadArtifacts: ${{ parameters.SDLValidationParameters.downloadArtifacts }}
|
||||||
|
|
||||||
- ${{ if or(ge(parameters.publishingInfraVersion, 3), eq(parameters.inline, 'false')) }}:
|
- ${{ if or(ge(parameters.publishingInfraVersion, 3), eq(parameters.inline, 'false')) }}:
|
||||||
- stage: publish_using_darc
|
- stage: publish_using_darc
|
||||||
dependsOn: Validate
|
${{ if or(eq(parameters.enableNugetValidation, 'true'), eq(parameters.enableSigningValidation, 'true'), eq(parameters.enableSourceLinkValidation, 'true'), eq(parameters.SDLValidationParameters.enable, 'true')) }}:
|
||||||
|
dependsOn: Validate
|
||||||
|
${{ if and(ne(parameters.enableNugetValidation, 'true'), ne(parameters.enableSigningValidation, 'true'), ne(parameters.enableSourceLinkValidation, 'true'), ne(parameters.SDLValidationParameters.enable, 'true')) }}:
|
||||||
|
dependsOn: ${{ parameters.validateDependsOn }}
|
||||||
displayName: Publish using Darc
|
displayName: Publish using Darc
|
||||||
variables:
|
variables:
|
||||||
- template: common-variables.yml
|
- template: common-variables.yml
|
||||||
|
|
|
@ -11,7 +11,7 @@ parameters:
|
||||||
WorkItemDirectory: '' # optional -- a payload directory to zip up and send to Helix; requires WorkItemCommand; incompatible with XUnitProjects
|
WorkItemDirectory: '' # optional -- a payload directory to zip up and send to Helix; requires WorkItemCommand; incompatible with XUnitProjects
|
||||||
CorrelationPayloadDirectory: '' # optional -- a directory to zip up and send to Helix as a correlation payload
|
CorrelationPayloadDirectory: '' # optional -- a directory to zip up and send to Helix as a correlation payload
|
||||||
IncludeDotNetCli: false # optional -- true will download a version of the .NET CLI onto the Helix machine as a correlation payload; requires DotNetCliPackageType and DotNetCliVersion
|
IncludeDotNetCli: false # optional -- true will download a version of the .NET CLI onto the Helix machine as a correlation payload; requires DotNetCliPackageType and DotNetCliVersion
|
||||||
DotNetCliPackageType: '' # optional -- either 'sdk' or 'runtime'; determines whether the sdk or runtime will be sent to Helix; see https://raw.githubusercontent.com/dotnet/core/master/release-notes/releases.json
|
DotNetCliPackageType: '' # optional -- either 'sdk', 'runtime' or 'aspnetcore-runtime'; determines whether the sdk or runtime will be sent to Helix; see https://raw.githubusercontent.com/dotnet/core/master/release-notes/releases.json
|
||||||
DotNetCliVersion: '' # optional -- version of the CLI to send to Helix; based on this: https://raw.githubusercontent.com/dotnet/core/master/release-notes/releases.json
|
DotNetCliVersion: '' # optional -- version of the CLI to send to Helix; based on this: https://raw.githubusercontent.com/dotnet/core/master/release-notes/releases.json
|
||||||
EnableXUnitReporter: false # optional -- true enables XUnit result reporting to Mission Control
|
EnableXUnitReporter: false # optional -- true enables XUnit result reporting to Mission Control
|
||||||
WaitForWorkItemCompletion: true # optional -- true will make the task wait until work items have been completed and fail the build if work items fail. False is "fire and forget."
|
WaitForWorkItemCompletion: true # optional -- true will make the task wait until work items have been completed and fail the build if work items fail. False is "fire and forget."
|
||||||
|
|
|
@ -18,7 +18,7 @@ parameters:
|
||||||
XUnitRuntimeTargetFramework: '' # optional -- framework to use for the xUnit console runner
|
XUnitRuntimeTargetFramework: '' # optional -- framework to use for the xUnit console runner
|
||||||
XUnitRunnerVersion: '' # optional -- version of the xUnit nuget package you wish to use on Helix; required for XUnitProjects
|
XUnitRunnerVersion: '' # optional -- version of the xUnit nuget package you wish to use on Helix; required for XUnitProjects
|
||||||
IncludeDotNetCli: false # optional -- true will download a version of the .NET CLI onto the Helix machine as a correlation payload; requires DotNetCliPackageType and DotNetCliVersion
|
IncludeDotNetCli: false # optional -- true will download a version of the .NET CLI onto the Helix machine as a correlation payload; requires DotNetCliPackageType and DotNetCliVersion
|
||||||
DotNetCliPackageType: '' # optional -- either 'sdk' or 'runtime'; determines whether the sdk or runtime will be sent to Helix; see https://raw.githubusercontent.com/dotnet/core/master/release-notes/releases-index.json
|
DotNetCliPackageType: '' # optional -- either 'sdk', 'runtime' or 'aspnetcore-runtime'; determines whether the sdk or runtime will be sent to Helix; see https://raw.githubusercontent.com/dotnet/core/master/release-notes/releases-index.json
|
||||||
DotNetCliVersion: '' # optional -- version of the CLI to send to Helix; based on this: https://raw.githubusercontent.com/dotnet/core/master/release-notes/releases-index.json
|
DotNetCliVersion: '' # optional -- version of the CLI to send to Helix; based on this: https://raw.githubusercontent.com/dotnet/core/master/release-notes/releases-index.json
|
||||||
EnableXUnitReporter: false # optional -- true enables XUnit result reporting to Mission Control
|
EnableXUnitReporter: false # optional -- true enables XUnit result reporting to Mission Control
|
||||||
WaitForWorkItemCompletion: true # optional -- true will make the task wait until work items have been completed and fail the build if work items fail. False is "fire and forget."
|
WaitForWorkItemCompletion: true # optional -- true will make the task wait until work items have been completed and fail the build if work items fail. False is "fire and forget."
|
||||||
|
|
|
@ -540,13 +540,15 @@ function GetDefaultMSBuildEngine() {
|
||||||
|
|
||||||
function GetNuGetPackageCachePath() {
|
function GetNuGetPackageCachePath() {
|
||||||
if ($env:NUGET_PACKAGES -eq $null) {
|
if ($env:NUGET_PACKAGES -eq $null) {
|
||||||
# Use local cache on CI to ensure deterministic build,
|
# Use local cache on CI to ensure deterministic build.
|
||||||
|
# Avoid using the http cache as workaround for https://github.com/NuGet/Home/issues/3116
|
||||||
# use global cache in dev builds to avoid cost of downloading packages.
|
# use global cache in dev builds to avoid cost of downloading packages.
|
||||||
# For directory normalization, see also: https://github.com/NuGet/Home/issues/7968
|
# For directory normalization, see also: https://github.com/NuGet/Home/issues/7968
|
||||||
if ($useGlobalNuGetCache) {
|
if ($useGlobalNuGetCache) {
|
||||||
$env:NUGET_PACKAGES = Join-Path $env:UserProfile '.nuget\packages\'
|
$env:NUGET_PACKAGES = Join-Path $env:UserProfile '.nuget\packages\'
|
||||||
} else {
|
} else {
|
||||||
$env:NUGET_PACKAGES = Join-Path $RepoRoot '.packages\'
|
$env:NUGET_PACKAGES = Join-Path $RepoRoot '.packages\'
|
||||||
|
$env:RESTORENOCACHE = $true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -312,12 +312,14 @@ function InitializeBuildTool {
|
||||||
_InitializeBuildToolFramework="netcoreapp2.1"
|
_InitializeBuildToolFramework="netcoreapp2.1"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Set RestoreNoCache as a workaround for https://github.com/NuGet/Home/issues/3116
|
||||||
function GetNuGetPackageCachePath {
|
function GetNuGetPackageCachePath {
|
||||||
if [[ -z ${NUGET_PACKAGES:-} ]]; then
|
if [[ -z ${NUGET_PACKAGES:-} ]]; then
|
||||||
if [[ "$use_global_nuget_cache" == true ]]; then
|
if [[ "$use_global_nuget_cache" == true ]]; then
|
||||||
export NUGET_PACKAGES="$HOME/.nuget/packages"
|
export NUGET_PACKAGES="$HOME/.nuget/packages"
|
||||||
else
|
else
|
||||||
export NUGET_PACKAGES="$repo_root/.packages"
|
export NUGET_PACKAGES="$repo_root/.packages"
|
||||||
|
export RESTORENOCACHE=true
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"tools": {
|
"tools": {
|
||||||
"dotnet": "5.0.100-rc.1.20452.10",
|
"dotnet": "5.0.100-rc.2.20479.15",
|
||||||
"runtimes": {
|
"runtimes": {
|
||||||
"dotnet": [
|
"dotnet": [
|
||||||
"$(MicrosoftNETCoreAppInternalPackageVersion)"
|
"$(MicrosoftNETCoreAppInternalPackageVersion)"
|
||||||
|
@ -8,6 +8,6 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"msbuild-sdks": {
|
"msbuild-sdks": {
|
||||||
"Microsoft.DotNet.Arcade.Sdk": "5.0.0-beta.20472.36"
|
"Microsoft.DotNet.Arcade.Sdk": "6.0.0-beta.20520.8"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,21 +8,8 @@ using Microsoft.Build.Utilities;
|
||||||
|
|
||||||
namespace Microsoft.DotNet.Cli.Build
|
namespace Microsoft.DotNet.Cli.Build
|
||||||
{
|
{
|
||||||
public class GenerateGuidFromName : Task
|
public class GenerateGuidFromName
|
||||||
{
|
{
|
||||||
[Required]
|
|
||||||
public string Name { get; set; }
|
|
||||||
|
|
||||||
[Output]
|
|
||||||
public string OutputGuid { get; set; }
|
|
||||||
|
|
||||||
public override bool Execute()
|
|
||||||
{
|
|
||||||
OutputGuid = GenerateGuid(Name).ToString().ToUpper();
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Generate a Version 5 (SHA1 Name Based) Guid from a name.
|
// Generate a Version 5 (SHA1 Name Based) Guid from a name.
|
||||||
public static Guid GenerateGuid(string name)
|
public static Guid GenerateGuid(string name)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,41 +0,0 @@
|
||||||
// Copyright (c) .NET Foundation and contributors. All rights reserved.
|
|
||||||
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
||||||
|
|
||||||
using Microsoft.Build.Framework;
|
|
||||||
using Microsoft.Build.Utilities;
|
|
||||||
|
|
||||||
namespace Microsoft.DotNet.Cli.Build
|
|
||||||
{
|
|
||||||
public class GenerateMsiVersion : Task
|
|
||||||
{
|
|
||||||
[Required]
|
|
||||||
public int VersionRevision { get; set; }
|
|
||||||
|
|
||||||
[Required]
|
|
||||||
public int VersionMajor { get; set; }
|
|
||||||
|
|
||||||
[Required]
|
|
||||||
public int VersionMinor { get; set; }
|
|
||||||
|
|
||||||
[Required]
|
|
||||||
public int VersionPatch { get; set; }
|
|
||||||
|
|
||||||
[Output]
|
|
||||||
public string MsiVersion { get; set; }
|
|
||||||
|
|
||||||
public override bool Execute()
|
|
||||||
{
|
|
||||||
var buildVersion = new Version()
|
|
||||||
{
|
|
||||||
Major = VersionMajor,
|
|
||||||
Minor = VersionMinor,
|
|
||||||
Patch = VersionPatch,
|
|
||||||
VersionRevision = VersionRevision
|
|
||||||
};
|
|
||||||
|
|
||||||
MsiVersion = buildVersion.GenerateMsiVersion();
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -25,9 +25,7 @@
|
||||||
<UsingTask TaskName="ZipFileCreateFromDirectory" AssemblyFile="$(CoreSdkTaskDll)" />
|
<UsingTask TaskName="ZipFileCreateFromDirectory" AssemblyFile="$(CoreSdkTaskDll)" />
|
||||||
<UsingTask TaskName="ZipFileExtractToDirectory" AssemblyFile="$(CoreSdkTaskDll)" />
|
<UsingTask TaskName="ZipFileExtractToDirectory" AssemblyFile="$(CoreSdkTaskDll)" />
|
||||||
<UsingTask TaskName="TarGzFileCreateFromDirectory" AssemblyFile="$(CoreSdkTaskDll)" />
|
<UsingTask TaskName="TarGzFileCreateFromDirectory" AssemblyFile="$(CoreSdkTaskDll)" />
|
||||||
<UsingTask TaskName="GenerateMsiVersion" AssemblyFile="$(CoreSdkTaskDll)" />
|
|
||||||
<UsingTask TaskName="GenerateMsiVersionFromFullVersion" AssemblyFile="$(CoreSdkTaskDll)" />
|
<UsingTask TaskName="GenerateMsiVersionFromFullVersion" AssemblyFile="$(CoreSdkTaskDll)" />
|
||||||
<UsingTask TaskName="GenerateGuidFromName" AssemblyFile="$(CoreSdkTaskDll)" />
|
|
||||||
<UsingTask TaskName="ReplaceFileContents" AssemblyFile="$(CoreSdkTaskDll)" />
|
<UsingTask TaskName="ReplaceFileContents" AssemblyFile="$(CoreSdkTaskDll)" />
|
||||||
<UsingTask TaskName="Chmod" AssemblyFile="$(CoreSdkTaskDll)" />
|
<UsingTask TaskName="Chmod" AssemblyFile="$(CoreSdkTaskDll)" />
|
||||||
<UsingTask TaskName="DotNetDebTool" AssemblyFile="$(CoreSdkTaskDll)" />
|
<UsingTask TaskName="DotNetDebTool" AssemblyFile="$(CoreSdkTaskDll)" />
|
||||||
|
|
|
@ -103,25 +103,25 @@
|
||||||
<GeneratedInstallers Include="@(TemplatesMsiComponent->'%(MSIInstallerFile)')" />
|
<GeneratedInstallers Include="@(TemplatesMsiComponent->'%(MSIInstallerFile)')" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<GenerateMsiVersion VersionRevision="$(CombinedBuildNumberAndRevision)"
|
<GenerateMsiVersion BuildNumber="$(CombinedBuildNumberAndRevision)"
|
||||||
VersionMajor="$(VersionMajor)"
|
Major="$(VersionMajor)"
|
||||||
VersionMinor="$(VersionMinor)"
|
Minor="$(VersionMinor)"
|
||||||
VersionPatch="$(VersionFeature)">
|
Patch="$(VersionFeature)">
|
||||||
<Output TaskParameter="MsiVersion" PropertyName="MsiVersion" />
|
<Output TaskParameter="MsiVersion" PropertyName="MsiVersion" />
|
||||||
</GenerateMsiVersion>
|
</GenerateMsiVersion>
|
||||||
|
|
||||||
<GenerateGuidFromName Name="$(SdkMSIInstallerFile)">
|
<GenerateGuidFromName Name="$(SdkMSIInstallerFile)">
|
||||||
<Output TaskParameter="OutputGuid"
|
<Output TaskParameter="GeneratedGuid"
|
||||||
PropertyName="SdkInstallerUpgradeCode" />
|
PropertyName="SdkInstallerUpgradeCode" />
|
||||||
</GenerateGuidFromName>
|
</GenerateGuidFromName>
|
||||||
|
|
||||||
<GenerateGuidFromName Name="$(SdkPlaceholderMSIInstallerFile)">
|
<GenerateGuidFromName Name="$(SdkPlaceholderMSIInstallerFile)">
|
||||||
<Output TaskParameter="OutputGuid"
|
<Output TaskParameter="GeneratedGuid"
|
||||||
PropertyName="SdkPlaceholderInstallerUpgradeCode" />
|
PropertyName="SdkPlaceholderInstallerUpgradeCode" />
|
||||||
</GenerateGuidFromName>
|
</GenerateGuidFromName>
|
||||||
|
|
||||||
<GenerateGuidFromName Name="$(SdkBundleInstallerOutputGuidString)">
|
<GenerateGuidFromName Name="$(SdkBundleInstallerOutputGuidString)">
|
||||||
<Output TaskParameter="OutputGuid"
|
<Output TaskParameter="GeneratedGuid"
|
||||||
PropertyName="CombinedFrameworkSDKHostInstallerUpgradeCode" />
|
PropertyName="CombinedFrameworkSDKHostInstallerUpgradeCode" />
|
||||||
</GenerateGuidFromName>
|
</GenerateGuidFromName>
|
||||||
</Target>
|
</Target>
|
||||||
|
|
|
@ -40,16 +40,5 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
|
||||||
.FailWith($"Expected File {_fileInfo.FullName} to not exist, but it does.");
|
.FailWith($"Expected File {_fileInfo.FullName} to not exist, but it does.");
|
||||||
return new AndConstraint<FileInfoAssertions>(this);
|
return new AndConstraint<FileInfoAssertions>(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public AndWhichConstraint<FileInfoAssertions, DateTimeOffset> HaveLastWriteTimeUtc(string because = "", params object[] reasonArgs)
|
|
||||||
{
|
|
||||||
var lastWriteTimeUtc = _fileInfo.LastWriteTimeUtc;
|
|
||||||
|
|
||||||
Execute.Assertion
|
|
||||||
.ForCondition(lastWriteTimeUtc != null)
|
|
||||||
.BecauseOf(because, reasonArgs)
|
|
||||||
.FailWith($"Expected File {_fileInfo.FullName} to have a LastWriteTimeUTC, but it is null.");
|
|
||||||
return new AndWhichConstraint<FileInfoAssertions, DateTimeOffset>(this, lastWriteTimeUtc);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue