CircleCI-Archived / api-preview-docs

In-progress docs about the pre-release preview of CircleCI API v2
72 stars 39 forks source link

Cannot access job output #80

Closed nbedos closed 4 years ago

nbedos commented 4 years ago

I can't seem to find a way to access job logs using API V2.

For v1.1 the following query returns the job including all actions with their "output_url" attribute. Perfect!

curl -H 'Content-Type: application/json' "https://circleci.com/api/v1.1/project/gh/nbedos/citop/37?circle-token=$CIRCLECI_API_TOKEN"

However the corresponding query using API V2 returns much less information. No job step, no action, no "output_url".

curl -H 'Content-Type: application/json' "https://circleci.com/api/2/project/gh%2Fnbedos%2Fcitop/job/37?circle-token=$CIRCLECI_API_TOKEN"

Am I missing something? How can I get the log of a job using API V2? I tried a few other endpoints without success.

Thanks

nbedos commented 4 years ago

@jama22 Any thoughts on this? Is this an intended breaking change?

plimpton commented 2 years ago

This is still needed. Should not have been auto closed