You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 6, 2024. It is now read-only.
Currently we use Zeus hook URLs to upload artifacts. It would be much better to use the API for this. We already have user-based and repository-based tokens which can be used for authorization.
The current endpoint also does not include the provider id and might potentially collide on external ids. For now, this will not happen as Travis and AppVeyor use different ID schemas.
Ideally, we'd split the current endpoint in two requests:
Obtain the job by external build and job ID: GET /api/repos/provider/<p>/<o>/<r>/jobs?build_xid=<BUILD_ID>&job_xid=<JOB_ID>
Push an artifact to the job: POST /api/repos/provider/<p>/<o>/<r>/builds/<b>/jobs/<j>/artifacts
Both requests require bearer authorization. The CLI would obtain a token from ZEUS_TOKEN and then run both requests in sequence.
The text was updated successfully, but these errors were encountered:
It automatically binds and restricts authentication on a per-repository scope. With that, it doesn't actually require authentication as the URL itself is considered authenticated.
It is coupled to the provider, which means theres no concern of interacting with different systems in different ways.
I don't think its appropriate to try and replace it with a harder to use API, but thats not to say we couldn't use the API in other cases.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Currently we use Zeus hook URLs to upload artifacts. It would be much better to use the API for this. We already have user-based and repository-based tokens which can be used for authorization.
The current endpoint also does not include the provider id and might potentially collide on external ids. For now, this will not happen as Travis and AppVeyor use different ID schemas.
Ideally, we'd split the current endpoint in two requests:
GET /api/repos/provider/<p>/<o>/<r>/jobs?build_xid=<BUILD_ID>&job_xid=<JOB_ID>
POST /api/repos/provider/<p>/<o>/<r>/builds/<b>/jobs/<j>/artifacts
Both requests require bearer authorization. The CLI would obtain a token from
ZEUS_TOKEN
and then run both requests in sequence.The text was updated successfully, but these errors were encountered: