Skip to content

Commit e1acbd2

Browse files
benhillisBen HillisCopilot
authored
Fix NuGet package path validation in nuget-stage pipeline (#40293)
Use absolute paths for artifact download and packagesToPush so that the NuGet validation step can verify the package location. The relative path 'drop/nuget/...' was not recognized as being under the expected parent directory. Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 7e67e01 commit e1acbd2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.pipelines/nuget-stage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ stages:
3434
displayName: Download nuget artifacts
3535
inputs:
3636
artifact: "drop_wsl_package"
37-
path: drop
37+
path: $(Build.SourcesDirectory)\drop
3838

3939
# Note: this task might fail if there's been no commits between two nightly pipelines, which is fine.
4040
- ${{ each package in parameters.nugetPackages }}:
4141
- task: NuGetCommand@2
4242
displayName: Push nuget/${{ package }}.$(WSL_NUGET_PACKAGE_VERSION).nupkg
4343
inputs:
4444
command: 'push'
45-
packagesToPush: drop/nuget/${{ package }}.$(WSL_NUGET_PACKAGE_VERSION).nupkg
45+
packagesToPush: $(Build.SourcesDirectory)\drop\nuget\${{ package }}.$(WSL_NUGET_PACKAGE_VERSION).nupkg
4646
nuGetFeedType: 'internal'
4747
publishVstsFeed: wsl
4848
allowPackageConflicts: ${{ parameters.isNightly }}

0 commit comments

Comments
 (0)