-
Notifications
You must be signed in to change notification settings - Fork 21
Invalid build url generated for appveyor when account name is not same as repository account #81
Comments
Unfortunately no, that variable is for the repository itself in the format of The actual code for detecting the appveyor build slug is done here: Which I also see on you build that it gets picked correctly, which is shown in the job query value on the url From what I can see on your build, everything is correctly set in the url used to ping codecov. @stevepeak Are you able to share some light of why the link to the appveyor build uses an incorrect appveyor build slug? |
Gotcha. I've used the same config in two other projects, and they work fine - be it that they have a simpler project name. Just for extra info, reason I went digging a little is because none of the reports worked, only this specific commit I did a local upload. F.ex. the commit afterwards did not even get linked to a CI build, and jsut reports an error: https://codecov.io/gh/skwasjer/Rebus.Correlate/commit/8a9c30efc5a388709a7a276c6d0ac491cb5d434d [edit] I just noticed coverage did not collect any results :|
|
So yea, forgot one tiny detail ^^ skwasjer/Rebus.Correlate@4734a73 However, the build link still is not working. |
I have been trying to figure out why the build url is incorrect. As such, I do believe this is an issue on the server itself, and that would mean you would need to use the official support contact information on the website to get the incorrect build url resolved. I only manage this program, which is only a community provided tool and not a true officially supported one (only supported by me and the rest of the community). |
@AdmiringWorm thanks for the time troubleshooting, I will sent a ticket to the support address |
Let us keep this issue open. At least until you have gotten a response from the codecov.io support team. |
I believe I have found a way for the build url to be fixed during upload. While I do still believe this is an upstream issue, I will look into submitting the correct url during upload to the servers. I just need to figure how to build said url. |
Temporarily you can try setting the The format for the mentioned should be similar to the following: powershell $env:CI_BUILD_URL = "https://ci.appveyor.com/project/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/build/job/$env:APPVEYOR_JOB_ID" sh export CI_BUILD_URL="https://ci.appveyor.com/project/$APPVEYOR_ACCOUNT_NAME/$APPVEYOR_PROJECT_SLUG/build/job/$APPVEYOR_JOB_ID" |
Thanks to the awesome folks over at AppVeyor I now know what I can use to build the url correctly. |
* bugfix/appveyor-build-url: Revert "(build) Disabled ubuntu build on appveyor temporarily" (build) Disabled ubuntu build on appveyor temporarily Revert "(build) Output the project slug from appveyor" Revert "(build) Testing setting build url enviroment variable" (build) Clear variable used during unit tests (build) added bugfix branches as valid branch on travis (GH-81) Fixed build url not being passed to codecov.io (build) Testing setting build url enviroment variable (build) Removed manual exit after environment variable output (build) Output the project slug from appveyor
* hotfix/1.7.2: (GH-87) Added missing tag aquiral on travis ci (GH-86) Added generation of build url to travis parser Revert "(build) Disabled ubuntu build on appveyor temporarily" (build) Disabled ubuntu build on appveyor temporarily Revert "(build) Output the project slug from appveyor" Revert "(build) Testing setting build url enviroment variable" (build) Clear variable used during unit tests (build) added bugfix branches as valid branch on travis (GH-81) Fixed build url not being passed to codecov.io (build) Testing setting build url enviroment variable (build) Removed manual exit after environment variable output (build) Output the project slug from appveyor
Version 1.7.2 is now available on nuget (and chocolatey). This build includes the fixes so the url on codecov.io should be correct now if you submit reports with the new version. |
I am running into an issue where codecov links to a CI build url with incorrect slug:
For example:
https://codecov.io/gh/skwasjer/Rebus.Correlate/commit/ab9ca67ee25f9c927ba8b474c2091fda10ac6178/builds
On this page the uploaded codecov report
5crrqoxx7dlc2awa
points to the AppVeyor build URI https://ci.appveyor.com/project/skwasjer/Rebus.Correlate/build/job/5crrqoxx7dlc2awaHowever the
Rebus.Correlate
portion in this URI should be the AppVeyor slugrebus-correlate
, then it works.In https://github.com/codecov/codecov-exe/blob/master/Source/Codecov/Services/ContinuousIntegrationServers/Appveyor.cs#L14
should this not be
APPVEYOR_PROJECT_SLUG
?The text was updated successfully, but these errors were encountered: