Skip to content

Commit a83c58d

Browse files
authored
Update owner of artifacts staging directory for offline builds (#45489)
1 parent a98621f commit a83c58d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

eng/pipelines/templates/jobs/vmr-build.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,13 @@ jobs:
432432
displayName: Build
433433
workingDirectory: $(sourcesPath)
434434
435+
- ${{ if ne(parameters.runOnline, 'True' )}}:
436+
- script: |
437+
set -ex
438+
# Update the owner of the staging directory to the current user
439+
sudo chown -R $(whoami) $(artifactsStagingDir)
440+
displayName: Update owner of artifacts staging directory
441+
435442
# Only run tests if enabled
436443
- ${{ if eq(parameters.runTests, 'True') }}:
437444
# Setup the NuGet sources used by the tests to use private feeds. This is necessary when testing internal-only product

0 commit comments

Comments
 (0)