Skip to content
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
7 changes: 7 additions & 0 deletions .vsts-dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ parameters:
displayName: Optional OptProfDrop Override
type: string
default: 'default'
- name: enableOptProf
displayName: Enable OptProf data collection for this build
# vs16.11 is in servicing and no longer collects fresh OptProf data: the VS
# bootstrapper build (required only for OptProf collection) is disabled by default.
type: boolean
default: false
- name: enableSigningValidation
displayName: Enable Signing Validation
type: boolean
Expand Down Expand Up @@ -77,6 +83,7 @@ extends:
isExperimental: false
enableComponentGovernance: true
signTypeParameter: ${{ parameters.signTypeParameter }}
enableOptProf: ${{ parameters.enableOptProf }}

- template: /eng/common/templates-official/post-build/post-build.yml@self
parameters:
Expand Down
15 changes: 10 additions & 5 deletions azure-pipelines/.vsts-dotnet-build-jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ parameters:
- name: signTypeParameter
type: string
default: 'test'
- name: enableOptProf
type: boolean
default: false

jobs:
- job: Windows_NT
Expand Down Expand Up @@ -61,6 +64,7 @@ jobs:
AccessToken: '$(System.AccessToken)'
feedSource: 'https://devdiv.pkgs.visualstudio.com/DefaultCollection/_packaging/MicroBuildToolset/nuget/v3/index.json'
displayName: 'Install OptProf Plugin'
condition: and(succeeded(), ${{ parameters.enableOptProf }})

# Required by MicroBuildBuildVSBootstrapper
- task: MicroBuildSwixPlugin@4
Expand Down Expand Up @@ -104,7 +108,7 @@ jobs:
toLowerCase: false
usePat: true
displayName: 'OptProf - Publish to Artifact Services - ProfilingInputs'
condition: succeeded()
condition: and(succeeded(), ${{ parameters.enableOptProf }})

# Build VS bootstrapper
# Generates $(Build.StagingDirectory)\MicroBuild\Output\BootstrapperInfo.json
Expand All @@ -115,7 +119,7 @@ jobs:
manifests: $(VisualStudio.SetupManifestList)
outputFolder: '$(Build.SourcesDirectory)\artifacts\VSSetup\$(BuildConfiguration)\Insertion'
displayName: 'OptProf - Build VS bootstrapper'
condition: succeeded()
condition: and(succeeded(), ${{ parameters.enableOptProf }})

# Publish run settings
- task: PowerShell@2
Expand All @@ -127,7 +131,7 @@ jobs:
/p:BootstrapperInfoPath=$(Build.StagingDirectory)\MicroBuild\Output\BootstrapperInfo.json
/p:VisualStudioIbcTrainingSettingsPath=$(Build.SourcesDirectory)\eng\config\OptProf.runsettings
displayName: 'OptProf - Build IBC training settings'
condition: succeeded()
condition: and(succeeded(), ${{ parameters.enableOptProf }})

# Publish bootstrapper info
- task: 1ES.PublishBuildArtifacts@1
Expand All @@ -136,7 +140,8 @@ jobs:
ArtifactName: MicroBuildOutputs
ArtifactType: Container
displayName: 'OptProf - Publish Artifact: MicroBuildOutputs'
condition: succeeded()
# Only produced when the OptProf bootstrapper runs; skip when OptProf collection is disabled.
condition: and(succeeded(), ${{ parameters.enableOptProf }})

- task: 1ES.PublishBuildArtifacts@1
displayName: 'Publish Artifact: logs'
Expand Down Expand Up @@ -205,7 +210,7 @@ jobs:
displayName: Tag build as ready for optimization training
inputs:
tags: 'ready-for-training'
condition: succeeded()
condition: and(succeeded(), ${{ parameters.enableOptProf }})

- task: ms-vseng.MicroBuildTasks.521a94ea-9e68-468a-8167-6dcf361ea776.MicroBuildCleanup@1
displayName: Execute cleanup tasks
Expand Down
2 changes: 1 addition & 1 deletion eng/Versions.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the MIT license. See License.txt in the project root for full license information. -->
<Project>
<PropertyGroup>
<VersionPrefix>16.11.20</VersionPrefix>
<VersionPrefix>16.11.21</VersionPrefix>
<DotNetFinalVersionKind>release</DotNetFinalVersionKind>
<AssemblyVersion>15.1.0.0</AssemblyVersion>
<PreReleaseVersionLabel>preview</PreReleaseVersionLabel>
Expand Down
Loading