NuGet Deployment Environment push fails
I created an Environment using the NuGet Provider that should push my artifact which is built into .\build\artifacts\MyPackage.nupkg.
When I try to deploy to this environment after a successful build, the deployment fails.
Here's the log:
Downloading artifact build/artifacts/Lucene.Net.Linq.3.3.0.nupkg to temporary location
nuget push "C:\Resources\directory\414464e4bda24612b1f57a8e0b52a7f6.Appveyor.Worker.Temp\2zk0lawn\build/artifacts/Lucene.Net.Linq.3.3.0.nupkg" -ApiKey ...
The system cannot find the file specified
I think nuget.exe is not handling the forward slash as path
separators. I looked through my configuration and I don't think the
forward slashes are coming from my artifact definitions, so perhaps
the provider needs to use standard windows directory separators
(\
) instead of the forward slashes used to download
the artifact to a temporary location.
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Feodor Fitsner on 18 Jun, 2014 05:47 PM
How do you push those artifacts with back slash in their path?
2 Posted by chris.eldredge on 18 Jun, 2014 06:22 PM
Note the use of forward slashes in the last part of the path
2zk0lawn\build/artifacts/Lucene.Net.Linq.3.3.0.nupkg
(there are two of them). These relative paths should be converted to use backslashes when invoking nuget.exe, which unfortunately does not correctly handle forward slashes even though they are perfectly valid on Windows.Support Staff 3 Posted by Feodor Fitsner on 18 Jun, 2014 07:03 PM
I mean you are pushing those artifacts using
appveyor
command line or PowerShell?4 Posted by chris.eldredge on 18 Jun, 2014 07:07 PM
As I said in the original post, I created an Environment using the NuGet Provider.
If it wasn't clear, I did this using the web portal on https://ci.appveyor.com/environments
Therefore I don't have any control over how nuget.exe is invoked.
Support Staff 5 Posted by Feodor Fitsner on 18 Jun, 2014 07:50 PM
Sorry, I meant how did you push packages to "Artifacts" tab of build details. Never mind, I see there is a problem in NuGet deployment provider. Will fix that.
6 Posted by chris.eldredge on 20 Jun, 2014 07:41 PM
Looks like this is fixed now. Thanks!
chris.eldredge closed this discussion on 20 Jun, 2014 07:41 PM.
chris.eldredge re-opened this discussion on 30 Jun, 2014 01:50 PM
7 Posted by chris.eldredge on 30 Jun, 2014 01:51 PM
Looks like maybe this wasn't fixed or the fix regressed? I just tried to deploy my project (https://ci.appveyor.com/project/chriseldredge/lucene-net-linq/) and it failed with the same error as original post.
Support Staff 8 Posted by Feodor Fitsner on 30 Jun, 2014 01:57 PM
There is a new URL for pushing packages - make sure it ends with
/api/v2/package
. See "NuGet" page under account to see push command.9 Posted by chris.eldredge on 30 Jun, 2014 02:00 PM
I'm not specifying a push URL so the default (NuGet Gallery) should be used. Deployment log:
Support Staff 10 Posted by Feodor Fitsner on 30 Jun, 2014 02:18 PM
I see, sorry, mixed up with another case. Will fix that issue and deploy update shortly.
Support Staff 11 Posted by Feodor Fitsner on 03 Jul, 2014 10:56 AM
The issue has been fixed and update deployed. Thanks for your patience.
12 Posted by chris.dostert on 19 Jul, 2014 05:31 AM
looks like this is broken again?
Support Staff 13 Posted by Feodor Fitsner on 19 Jul, 2014 05:42 AM
What error are you getting?
14 Posted by chris.dostert on 19 Jul, 2014 06:37 AM
From: [email blocked]
Date: Sat, 19 Jul 2014 01:42:30 -0400
Subject: Re: NuGet Deployment Environment push fails [Problems #446]
To: [email blocked]
<!-- .ExternalClass pre { width:92%; padding:5px 2%; background:#efefef; border:1px solid #d6d6d6; } .ExternalClass blockquote { padding-left:1em; border-left:5px solid #ccc; } -->
// Please reply above this line
From: Feodor Fitsner (Support staff)==================================================
Having trouble reading this? View this discussion online: NuGet Deployment Environment push fails.
Reply with #ignore to stop receiving notifications for this discussion.
Support Staff 15 Posted by Feodor Fitsner on 19 Jul, 2014 07:47 AM
Will fix and deploy update shortly.
Support Staff 16 Posted by Feodor Fitsner on 19 Jul, 2014 03:19 PM
Just deployed an update fixing that issue. Give it another try.
17 Posted by chris.dostert on 19 Jul, 2014 08:42 PM
Working beautifully again. You're the man! Thx -CD
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:46 AM.