NuGet deployment step not working

Manas Talukdar's Avatar

Manas Talukdar

28 Oct, 2015 06:45 PM

I am seeing "No packages were pushed." for the deployment step for reasons unclear to me.

Build: https://ci.appveyor.com/project/manastalukdar/csharp-helper/build/job/08k65cgm8ehy2wje

Can someone please help with this issue?

  1. Support Staff 1 Posted by Feodor Fitsner on 28 Oct, 2015 09:01 PM

    Feodor Fitsner's Avatar

    NuGet deployment provider deploys from build artifacts which are empty in your case. You should push nuget packages to artifacts to make them available for deployment: http://www.appveyor.com/docs/packaging-artifacts

  2. 2 Posted by Manas Talukdar on 28 Oct, 2015 09:29 PM

    Manas Talukdar's Avatar

    I do have section to push nuget packages to artifacts:
    artifacts:
      - path: csharp.Helper.%CONFIGURATION%Symbols.zip
        name: csharp.Helper.%CONFIGURATION%Symbols
      - path: '**\*.nupkg'

    My full appveyor.yml file: https://github.com/manastalukdar/csharp.Helper/blob/master/appveyor.yml

  3. Support Staff 3 Posted by Feodor Fitsner on 28 Oct, 2015 09:42 PM

    Feodor Fitsner's Avatar

    OK, I see. You are creating nuget package after tests are done, however automatic artifacts packaging occurs after build phase and before tests one. Otherwise, you can push artifact using command.

  4. 4 Posted by Manas Talukdar on 28 Oct, 2015 10:26 PM

    Manas Talukdar's Avatar

    Thanks. I put the creation of the nuget package in after_test instead of before_deploy and the native artifacts uploading section worked.

  5. Manas Talukdar closed this discussion on 28 Oct, 2015 10:26 PM.

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