codecov / codecov-exe

.exe report uploader for Codecov https://codecov.io
MIT License
25 stars 21 forks source link

Support uploading to v2 endpoint #38

Closed stevepeak closed 5 years ago

stevepeak commented 6 years ago

For enterprise customers there are cases when v4 endpoint is not available. Please add the v2 endpoint as a backup for 405 errors to v4.

Directions are here: https://github.com/codecov/codecov-bash/blob/master/codecov#L1524-L1538

Thanks!

AdmiringWorm commented 6 years ago

Just trying to figure out what really is needed to change from the v4 url.

Is the above correct, or have I missed something?

stevepeak commented 6 years ago

Hey @AdmiringWorm 👋 I do believe you have it correct 👍

snaggled commented 5 years ago

+1

AdmiringWorm commented 5 years ago

This have now finally been implemented in the codebase, and will be part of the next release (1.6.0).

It will try the v2 url when the v4 url fails, no matter the response code returned when trying to use the v4 url. (A major restructuring would be needed to be able to implement the fallback only if server returns status code 405).