File tree 1 file changed +7
-0
lines changed
eng/common/pipelines/templates/steps
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ parameters:
11
11
- name : TargetPath
12
12
type : string
13
13
default : $(Build.SourcesDirectory)
14
+ - name : WorkingDirectory
15
+ type : string
16
+ default : $(Build.SourcesDirectory)
14
17
- name : ScriptDirectory
15
18
type : string
16
19
default : eng/common/scripts
36
39
-ArtifactPath '${{ parameters.DiffDirectory }}'
37
40
-ExcludePaths ('${{ convertToJson(parameters.ExcludePaths) }}' | ConvertFrom-Json)
38
41
pwsh : true
42
+ WorkingDirectory : ' ${{ parameters.WorkingDirectory }}'
39
43
40
44
# When running in PR mode, we want the detected changed services to be attached to the build as tags.
41
45
# However, the public identity does not have the permissions to attach tags to the build.
49
53
Write-Host '##vso[task.addattachment type=AdditionalTags;name=AdditionalTags;]$(System.DefaultWorkingDirectory)/tags.json'
50
54
}
51
55
displayName: Upload tags.json with changed services
56
+ WorkingDirectory: '${{ parameters.WorkingDirectory }}'
52
57
53
58
- task : Powershell@2
54
59
displayName : Save package properties filtered for PR
58
63
-PrDiff '${{ parameters.DiffDirectory }}/diff.json'
59
64
-OutDirectory '${{ parameters.PackageInfoDirectory }}'
60
65
pwsh : true
66
+ WorkingDirectory : ' ${{ parameters.WorkingDirectory }}'
61
67
- ${{ else }} :
62
68
- task : Powershell@2
63
69
displayName : Save package properties
68
74
-OutDirectory '${{ parameters.PackageInfoDirectory }}'
69
75
-AddDevVersion:($env:SETDEVVERSION -eq 'true')
70
76
pwsh : true
77
+ WorkingDirectory : ' ${{ parameters.WorkingDirectory }}'
You can’t perform that action at this time.
0 commit comments