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>
Ben Hillis committed
Apr 24, 2026 at 14:12 UTC
e1acbd2845c15e01c561414cd8a8282f902d3a31
1 file changed
+2
-2
.pipelines/nuget-stage.yml
+2
-2
@@ -34,7 +34,7 @@ stages:
34
displayName: Download nuget artifacts
35
inputs:
36
artifact: "drop_wsl_package"
37
- path: drop
37
+ path: $(Build.SourcesDirectory)\drop
38
39
# Note: this task might fail if there's been no commits between two nightly pipelines, which is fine.
40
- ${{ each package in parameters.nugetPackages }}:
@@ -42,7 +42,7 @@ stages:
42
displayName: Push nuget/${{ package }}.$(WSL_NUGET_PACKAGE_VERSION).nupkg
43
inputs:
44
command: 'push'
45
- packagesToPush: drop/nuget/${{ package }}.$(WSL_NUGET_PACKAGE_VERSION).nupkg
45
+ packagesToPush: $(Build.SourcesDirectory)\drop\nuget\${{ package }}.$(WSL_NUGET_PACKAGE_VERSION).nupkg
46
nuGetFeedType: 'internal'
47
publishVstsFeed: wsl
48
allowPackageConflicts: ${{ parameters.isNightly }}
\ No newline at end of file