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
19 changes: 14 additions & 5 deletions .vsts-dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ parameters:
displayName: Optional OptProfDrop Override
type: string
default: 'default'
- name: EnableOptProf
displayName: Enable OptProf data collection for this build
type: boolean
default: true

variables:
# if OptProfDrop is not set, string '$(OptProfDrop)' will be passed to the build script.
Expand All @@ -33,6 +37,10 @@ variables:
value: ${{parameters.OptProfDropName}}
- name: SourceBranch
value: ''
# Override SkipApplyOptimizationData to true when disabling OptProf data collection
- ${{ if eq(parameters.EnableOptProf, false) }}:
- name: SkipApplyOptimizationData
value: true
- name: EnableReleaseOneLocBuild
value: true # Enable loc for vs17.14
- name: Codeql.Enabled
Expand Down Expand Up @@ -164,6 +172,7 @@ extends:
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 @@ -199,7 +208,7 @@ extends:
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 @@ -210,7 +219,7 @@ extends:
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 @@ -222,7 +231,7 @@ extends:
/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 @@ -231,7 +240,7 @@ extends:
ArtifactName: MicroBuildOutputs
ArtifactType: Container
displayName: 'OptProf - Publish Artifact: MicroBuildOutputs'
condition: succeeded()
condition: and(succeeded(), ${{ parameters.EnableOptProf }})

- task: 1ES.PublishBuildArtifacts@1
displayName: 'Publish Artifact: logs'
Expand Down Expand Up @@ -293,7 +302,7 @@ extends:
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>17.14.15</VersionPrefix>
<VersionPrefix>17.14.16</VersionPrefix>
<DotNetFinalVersionKind>release</DotNetFinalVersionKind>
<PackageValidationBaselineVersion>17.13.9</PackageValidationBaselineVersion>
<AssemblyVersion>15.1.0.0</AssemblyVersion>
Expand Down
Loading