Artifact not published although it is created - DNX library
This discussion is public.
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:
- https://ci.appveyor.com/project/justinyoo/entity-context-library/bu...
- https://ci.appveyor.com/project/justinyoo/entity-context-library/bu...
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:
- https://github.com/aliencube/Entity-Context-Library/blob/release/al...
- https://github.com/aliencube/Entity-Context-Library/blob/release/al...
- https://github.com/aliencube/Entity-Context-Library/blob/release/al...
Could you let me know what I was missing?
Kind regards,
Justin
Comments are currently closed for this discussion. You can start a new one.
Support Staff 1
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
justin.yoojh
on 30 Mar, 2016 03:17 AM
Oh, I deleted the branch. Sorry for that.
Here's the command to create package:
Support Staff 3
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
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.
Support Staff 5
Feodor Fitsner
on 30 Mar, 2016 04:20 AM
OK, try adding something like:
Support Staff 6
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
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
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.
Support Staff 9
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
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 afterrun-tests.ps1
in thetest_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
justin.yoojh
on 30 Mar, 2016 11:44 AM
Found out what was wrong. It was a typo. Thanks for your help!
justin.yoojh closed this discussion on 30 Mar, 2016 02:13 PM.