NuGet Deployment Environment push fails

chris.eldredge's Avatar

chris.eldredge

18 Jun, 2014 02:17 PM

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.

  1. Support Staff 1 Posted by Feodor Fitsner on 18 Jun, 2014 05:47 PM

    Feodor Fitsner's Avatar

    How do you push those artifacts with back slash in their path?

  2. 2 Posted by chris.eldredge on 18 Jun, 2014 06:22 PM

    chris.eldredge's Avatar

    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.

  3. Support Staff 3 Posted by Feodor Fitsner on 18 Jun, 2014 07:03 PM

    Feodor Fitsner's Avatar

    I mean you are pushing those artifacts using appveyor command line or PowerShell?

  4. 4 Posted by chris.eldredge on 18 Jun, 2014 07:07 PM

    chris.eldredge's Avatar

    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.

  5. Support Staff 5 Posted by Feodor Fitsner on 18 Jun, 2014 07:50 PM

    Feodor Fitsner's Avatar

    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. 6 Posted by chris.eldredge on 20 Jun, 2014 07:41 PM

    chris.eldredge's Avatar

    Looks like this is fixed now. Thanks!

  7. chris.eldredge closed this discussion on 20 Jun, 2014 07:41 PM.

  8. chris.eldredge re-opened this discussion on 30 Jun, 2014 01:50 PM

  9. 7 Posted by chris.eldredge on 30 Jun, 2014 01:51 PM

    chris.eldredge's Avatar

    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.

  10. Support Staff 8 Posted by Feodor Fitsner on 30 Jun, 2014 01:57 PM

    Feodor Fitsner's Avatar

    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.

  11. 9 Posted by chris.eldredge on 30 Jun, 2014 02:00 PM

    chris.eldredge's Avatar

    I'm not specifying a push URL so the default (NuGet Gallery) should be used. Deployment log:

    Downloading artifact build/artifacts/Lucene.Net.Linq.3.3.1.nupkg to temporary location
    nuget push "C:\Resources\directory\414464e4bda24612b1f57a8e0b52a7f6.Appveyor.Worker.Temp\1aoelaoj\build/artifacts/Lucene.Net.Linq.3.3.1.nupkg" -ApiKey ...
    The system cannot find the file specified
    
  12. Support Staff 10 Posted by Feodor Fitsner on 30 Jun, 2014 02:18 PM

    Feodor Fitsner's Avatar

    I see, sorry, mixed up with another case. Will fix that issue and deploy update shortly.

  13. Support Staff 11 Posted by Feodor Fitsner on 03 Jul, 2014 10:56 AM

    Feodor Fitsner's Avatar

    The issue has been fixed and update deployed. Thanks for your patience.

  14. 12 Posted by chris.dostert on 19 Jul, 2014 05:31 AM

    chris.dostert's Avatar

    looks like this is broken again?

  15. Support Staff 13 Posted by Feodor Fitsner on 19 Jul, 2014 05:42 AM

    Feodor Fitsner's Avatar

    What error are you getting?

  16. 14 Posted by chris.dostert on 19 Jul, 2014 06:37 AM

    chris.dostert's Avatar
    <!-- .hmmessage P { margin:0px; padding:0px } body.hmmessage { font-size: 12pt; font-family:Calibri } -->
     
     



    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)
    What error are you getting?
    On Sat, Jul 19 at 05:31 AM, Chris Dostert wrote:
    looks like this is broken again?

    Having trouble reading this? View this discussion online: NuGet Deployment Environment push fails.

    Reply with #ignore to stop receiving notifications for this discussion.

  17. Support Staff 15 Posted by Feodor Fitsner on 19 Jul, 2014 07:47 AM

    Feodor Fitsner's Avatar

    Will fix and deploy update shortly.

  18. Support Staff 16 Posted by Feodor Fitsner on 19 Jul, 2014 03:19 PM

    Feodor Fitsner's Avatar

    Just deployed an update fixing that issue. Give it another try.

  19. 17 Posted by chris.dostert on 19 Jul, 2014 08:42 PM

    chris.dostert's Avatar

    Working beautifully again. You're the man! Thx -CD

  20. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:46 AM.

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

Recent Discussions

20 Mar, 2019 11:39 PM
20 Mar, 2019 09:03 PM
20 Mar, 2019 08:55 PM
20 Mar, 2019 08:48 PM
20 Mar, 2019 08:02 PM