Skip to content

Commit 4793e45

Browse files
azure-sdkchidozieononiwu
authored and
Rena Chen
committed
use working directory in eng\common\pipelines\templates\steps\save-package-properties.yml (#40781)
Co-authored-by: Chidozie Ononiwu <[email protected]>
1 parent 8dfd050 commit 4793e45

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

eng/common/pipelines/templates/steps/save-package-properties.yml

+7
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ parameters:
1111
- name: TargetPath
1212
type: string
1313
default: $(Build.SourcesDirectory)
14+
- name: WorkingDirectory
15+
type: string
16+
default: $(Build.SourcesDirectory)
1417
- name: ScriptDirectory
1518
type: string
1619
default: eng/common/scripts
@@ -36,6 +39,7 @@ steps:
3639
-ArtifactPath '${{ parameters.DiffDirectory }}'
3740
-ExcludePaths ('${{ convertToJson(parameters.ExcludePaths) }}' | ConvertFrom-Json)
3841
pwsh: true
42+
WorkingDirectory: '${{ parameters.WorkingDirectory }}'
3943

4044
# When running in PR mode, we want the detected changed services to be attached to the build as tags.
4145
# However, the public identity does not have the permissions to attach tags to the build.
@@ -49,6 +53,7 @@ steps:
4953
Write-Host '##vso[task.addattachment type=AdditionalTags;name=AdditionalTags;]$(System.DefaultWorkingDirectory)/tags.json'
5054
}
5155
displayName: Upload tags.json with changed services
56+
WorkingDirectory: '${{ parameters.WorkingDirectory }}'
5257
5358
- task: Powershell@2
5459
displayName: Save package properties filtered for PR
@@ -58,6 +63,7 @@ steps:
5863
-PrDiff '${{ parameters.DiffDirectory }}/diff.json'
5964
-OutDirectory '${{ parameters.PackageInfoDirectory }}'
6065
pwsh: true
66+
WorkingDirectory: '${{ parameters.WorkingDirectory }}'
6167
- ${{ else }}:
6268
- task: Powershell@2
6369
displayName: Save package properties
@@ -68,3 +74,4 @@ steps:
6874
-OutDirectory '${{ parameters.PackageInfoDirectory }}'
6975
-AddDevVersion:($env:SETDEVVERSION -eq 'true')
7076
pwsh: true
77+
WorkingDirectory: '${{ parameters.WorkingDirectory }}'

0 commit comments

Comments
 (0)