From 2ae608e46af0eab84a20a33951116719efe0c3b8 Mon Sep 17 00:00:00 2001 From: Joey Robichaud Date: Mon, 17 Nov 2025 10:12:45 -0800 Subject: [PATCH] Use pipeline parameters --- azure-pipelines-official.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/azure-pipelines-official.yml b/azure-pipelines-official.yml index eef6561bbf3db..9ddb1c209275f 100644 --- a/azure-pipelines-official.yml +++ b/azure-pipelines-official.yml @@ -41,10 +41,10 @@ schedules: - cron: "0 8 23-29 * 0" displayName: "Monthly smoke test" branches: - include: + include: - main - release/* - exclude: + exclude: - "" always: true # Run even if there have been no source code changes since the last successful scheduled run batch: false # Do not run the pipeline if the previously scheduled run is in-progress @@ -276,13 +276,13 @@ extends: - task: MicroBuildSigningPlugin@4 inputs: - signType: $(SignType) + signType: ${{ parameters.SignType }} zipSources: false feedSource: https://dnceng.pkgs.visualstudio.com/_packaging/MicroBuildToolset/nuget/v3/index.json # Set ConnectedPMEServiceName if the build is a CI build, otherwise it is not needed ${{ if eq(variables['Build.Reason'], 'IndividualCI') }}: ConnectedPMEServiceName: 248d384a-b39b-46e3-8ad5-c2c210d5e7ca - condition: and(succeeded(), in(variables['SignType'], 'test', 'real')) + condition: and(succeeded(), in('${{ parameters.SignType }}', 'test', 'real')) - task: PowerShell@2 displayName: Build @@ -298,14 +298,14 @@ extends: -binaryLog -configuration $(BuildConfiguration) -officialBuildId $(Build.BuildNumber) - -officialSkipTests $(SkipTests) - -officialSkipApplyOptimizationData $(SkipApplyOptimizationData) + -officialSkipTests ${{ parameters.SkipTests }} + -officialSkipApplyOptimizationData ${{ parameters.SkipApplyOptimizationData }} -officialSourceBranchName $(SourceBranchName) - -officialIbcDrop $(IbcDrop) + -officialIbcDrop ${{ parameters.IbcDrop }} -officialVisualStudioDropAccessToken $(_DevDivDropAccessToken) /p:RepositoryName=$(Build.Repository.Name) /p:VisualStudioDropName=$(VisualStudio.DropName) - /p:DotNetSignType=$(SignType) + /p:DotNetSignType=${{ parameters.SignType }} /p:DotnetPublishUsingPipelines=true /p:IgnoreIbcMergeErrors=true /p:GenerateSbom=true @@ -341,7 +341,7 @@ extends: testResultsFiles: '$(Build.SourcesDirectory)\artifacts\TestResults\$(BuildConfiguration)\*.xml' mergeTestResults: true testRunTitle: 'Unit Tests' - condition: and(succeededOrFailed(), ne(variables['SkipTests'], 'true')) + condition: and(succeededOrFailed(), ${{ not(parameters.SkipTests) }}) # Publish to Build Asset Registry - template: /eng/common/templates-official/job/publish-build-assets.yml@self