Artifact not published although it is created - DNX library

This discussion is public.

justin.yoojh's Avatar

justin.yoojh

30 Mar, 2016 12:22 AM

Hi, Team.

I can't publish artifact to either GitHub or NuGet. I wonder if I miss something or not. Please look for the following two logs:

I confirm that in both logs, an artifact was created. However, they are not published into GitHub. I also tried to publish it into NuGet, it was still not successful. In the first log (alpha-41), the package was generated between (after) build and (before) test and, in the second log (alpha-42), the package was generated after test.

My appveyor.yml settings are:

environment:
  project_name: Aluencube.EntityContextLibrary
  github_auth_token:
    secure: *****
...
artifacts:
- path: artifacts\bin\$(proejct_name)\Release\*.nupkg
  name: Aliencube.EntityContextLibrary
deploy:
- provider: GitHub
  tag: v$(appveyor_build_version)
  description: $(project_name)-v$(appveyor_build_version) has been released
  auth_token:
    secure: *****
  artifact: Aliencube.EntityContextLibrary
  on:
    branch: release/all
    platform: Any CPU
    configuration: Release

It's a DNX library package, so all build, test and test is done by PowerShell scripts:

Could you let me know what I was missing?

Kind regards,

Justin

  1. Support Staff 1 Feodor Fitsner's Avatar Feodor Fitsner on 30 Mar, 2016 02:11 AM

    Hi Justin,

    Where is a command listing nuget packages here: https://ci.appveyor.com/project/justinyoo/entity-context-library/bu... Have you used environment variables there?

  2. 2 justin.yoojh's Avatar justin.yoojh on 30 Mar, 2016 03:17 AM

    Oh, I deleted the branch. Sorry for that.

    Here's the command to create package:

  3. Support Staff 3 Feodor Fitsner's Avatar Feodor Fitsner on 30 Mar, 2016 03:24 AM

    I mean the line where you list nuget packages. Is it this one: https://github.com/aliencube/Entity-Context-Library/blob/dev/publis... ?

  4. 4 justin.yoojh's Avatar justin.yoojh on 30 Mar, 2016 04:10 AM

    Yes, that's the one. It ensures me if the package has been correctly generated or not.

  5. Support Staff 5 Feodor Fitsner's Avatar Feodor Fitsner on 30 Mar, 2016 04:20 AM

    OK, try adding something like:

    dir ".\artifacts\bin\$env:project_name\$env:configuration"
    
  6. Support Staff 6 Feodor Fitsner's Avatar Feodor Fitsner on 30 Mar, 2016 04:21 AM

    Alternatively, try pushing those artifacts with script: http://www.appveyor.com/docs/packaging-artifacts#pushing-artifacts-...

  7. 7 justin.yoojh's Avatar justin.yoojh on 30 Mar, 2016 05:39 AM

    I've tried the first approach and got an error like:

    https://ci.appveyor.com/project/justinyoo/entity-context-library/bu...

    Seems that the artifact disappeared. Now, I'm running the second approach. Will let you know the result.

  8. 8 justin.yoojh's Avatar justin.yoojh on 30 Mar, 2016 06:28 AM

    The second approach didn't succeed in publishing artifact to GitHub, either.

    https://ci.appveyor.com/project/justinyoo/entity-context-library/bu...

    Seems that the artifact disappeared, too.

  9. Support Staff 9 Feodor Fitsner's Avatar Feodor Fitsner on 30 Mar, 2016 06:40 AM

    I'm looking at appveyor.yml for that build's commit: https://github.com/aliencube/Entity-Context-Library/blob/f3cec670e7... - can you help me to find a place where publish-package.ps1 is called?

  10. 10 justin.yoojh's Avatar justin.yoojh on 30 Mar, 2016 08:54 AM

    I haven't used appveyor.yml for this. But I just updated it for you.

    https://github.com/aliencube/Entity-Context-Library/blob/dev/appvey...

    When you look at this line, it calls the publish-package.ps1. This is called after run-tests.ps1 in the test_script section.

    Interestingly, those two last builds have generated artifacts but didn't publish them:

    These two are the build after your suggestion to push artifacts.

  11. 11 justin.yoojh's Avatar justin.yoojh on 30 Mar, 2016 11:44 AM

    Found out what was wrong. It was a typo. Thanks for your help!

  12. justin.yoojh closed this discussion on 30 Mar, 2016 02:13 PM.

Comments are currently closed for this discussion. You can start a new one.