Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,30 @@ steps:
workingDirectory: '${{ parameters.WorkingDirectory }}'

- ${{ else }}:
# Split into two variants gated by a runtime condition on the SetDevVersion
# pipeline variable. This avoids passing a parenthesized $env: expression in
# 'arguments:', which the ADO agent argument sanitizer flags (aka.ms/ado/75787).
# Exactly one variant runs, preserving the original
# -AddDevVersion:($env:SETDEVVERSION -eq 'true') behavior.
- task: Powershell@2
displayName: Save package properties
Comment on lines 79 to 80
condition: and(succeeded(), ne(variables['SetDevVersion'], 'true'))
inputs:
filePath: ${{ parameters.ScriptDirectory }}/Save-Package-Properties.ps1
arguments: >
-ServiceDirectory '${{parameters.ServiceDirectory}}'
-OutDirectory '${{ parameters.PackageInfoDirectory }}'
-AddDevVersion:($env:SETDEVVERSION -eq 'true')
pwsh: true
workingDirectory: '${{ parameters.WorkingDirectory }}'

- task: Powershell@2
Comment on lines 84 to +90
displayName: Save package properties (with dev version)
Comment on lines +90 to +91
condition: and(succeeded(), eq(variables['SetDevVersion'], 'true'))
inputs:
filePath: ${{ parameters.ScriptDirectory }}/Save-Package-Properties.ps1
arguments: >
-ServiceDirectory '${{parameters.ServiceDirectory}}'
-OutDirectory '${{ parameters.PackageInfoDirectory }}'
-AddDevVersion
Comment on lines +95 to +98
pwsh: true
workingDirectory: '${{ parameters.WorkingDirectory }}'
Loading