Details
-
Bug
-
Status: Resolved (View Workflow)
-
Minor
-
Resolution: Fixed
-
None
-
Jenkins 1.651.2
NuGet 0.5
Description
I have specified the package to publish to my NuGet feed with no wildcards, i.e.
agsimsetup.$BUILD_ID.nupkg
This works fine:
Starting agdev publication
[agsimsetup-dev] $ nuget push agsimsetup.2.2.1.0-build-69.nupkg ******** -Source https://api.bintray.com/nuget/aboutgolf/agdev -NonInteractive
Pushing agsimsetup.2.2.1.0-build-69.nupkg to 'https://api.bintray.com/nuget/aboutgolf/agdev'...
PUT https://api.bintray.com/nuget/aboutgolf/agdev/
Created https://api.bintray.com/nuget/aboutgolf/agdev/ 2021ms
Your package was pushed.
Ended agdev publication
Finished: SUCCESS
If, however, I specify a non-existing package no error is generated. For example, if the change the package to publish to:
agsimbadsetup.$BUILD_ID.nupkg
Then the publish still succeeds (though of course nothing is published):
Starting agdev publication
Ended agdev publication
Finished: SUCCESS
In this case I expect it to fail.
Attachments
Issue Links
- mentioned in
-
Page Loading...
Code changed in jenkins
User: Arnaud
Path:
src/main/java/org/jenkinsci/plugins/nuget/publishers/NugetPromotionPublisher.java
src/main/java/org/jenkinsci/plugins/nuget/publishers/NugetPublisher.java
src/main/java/org/jenkinsci/plugins/nuget/publishers/NugetPublisherCallable.java
src/main/resources/org/jenkinsci/plugins/nuget/publishers/NugetPublisher/config.jelly
http://jenkins-ci.org/commit/nuget-plugin/a5d359d1da661a06d457254ec783f7e19bb9ed0a
Log:
[FIXED JENKINS-35316] Nuget plugin publication succeeds when nupkg doesn't exist