Skip to content

Commit 80d1922

Browse files
authored
[Backport 17.12] Use pipeline parameters (#81298)
backport of #80336 & #81271 [Test run](https://dev.azure.com/dnceng/internal/_build/results?buildId=2841191&view=results) (microsoft)
1 parent 23122a2 commit 80d1922

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

azure-pipelines-official.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ schedules:
4141
- cron: "0 8 23-29 * 0"
4242
displayName: "Monthly smoke test"
4343
branches:
44-
include:
44+
include:
4545
- main
4646
- release/*
47-
exclude:
47+
exclude:
4848
- ""
4949
always: true # Run even if there have been no source code changes since the last successful scheduled run
5050
batch: false # Do not run the pipeline if the previously scheduled run is in-progress
@@ -276,13 +276,13 @@ extends:
276276

277277
- task: MicroBuildSigningPlugin@4
278278
inputs:
279-
signType: $(SignType)
279+
signType: ${{ parameters.SignType }}
280280
zipSources: false
281281
feedSource: https://dnceng.pkgs.visualstudio.com/_packaging/MicroBuildToolset/nuget/v3/index.json
282282
# Set ConnectedPMEServiceName if the build is a CI build, otherwise it is not needed
283283
${{ if eq(variables['Build.Reason'], 'IndividualCI') }}:
284284
ConnectedPMEServiceName: 248d384a-b39b-46e3-8ad5-c2c210d5e7ca
285-
condition: and(succeeded(), in(variables['SignType'], 'test', 'real'))
285+
condition: and(succeeded(), in('${{ parameters.SignType }}', 'test', 'real'))
286286

287287
- task: PowerShell@2
288288
displayName: Build
@@ -298,14 +298,14 @@ extends:
298298
-binaryLog
299299
-configuration $(BuildConfiguration)
300300
-officialBuildId $(Build.BuildNumber)
301-
-officialSkipTests $(SkipTests)
302-
-officialSkipApplyOptimizationData $(SkipApplyOptimizationData)
301+
-officialSkipTests ${{ parameters.SkipTests }}
302+
-officialSkipApplyOptimizationData ${{ parameters.SkipApplyOptimizationData }}
303303
-officialSourceBranchName $(SourceBranchName)
304-
-officialIbcDrop $(IbcDrop)
304+
-officialIbcDrop ${{ parameters.IbcDrop }}
305305
-officialVisualStudioDropAccessToken $(_DevDivDropAccessToken)
306306
/p:RepositoryName=$(Build.Repository.Name)
307307
/p:VisualStudioDropName=$(VisualStudio.DropName)
308-
/p:DotNetSignType=$(SignType)
308+
/p:DotNetSignType=${{ parameters.SignType }}
309309
/p:DotnetPublishUsingPipelines=true
310310
/p:IgnoreIbcMergeErrors=true
311311
/p:GenerateSbom=true
@@ -341,7 +341,7 @@ extends:
341341
testResultsFiles: '$(Build.SourcesDirectory)\artifacts\TestResults\$(BuildConfiguration)\*.xml'
342342
mergeTestResults: true
343343
testRunTitle: 'Unit Tests'
344-
condition: and(succeededOrFailed(), ne(variables['SkipTests'], 'true'))
344+
condition: and(succeededOrFailed(), ${{ not(parameters.SkipTests) }})
345345

346346
# Publish to Build Asset Registry
347347
- template: /eng/common/templates-official/job/publish-build-assets.yml@self

0 commit comments

Comments
 (0)