Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Cannot access job output #80

Closed
nbedos opened this issue Nov 25, 2019 · 2 comments
Closed

Cannot access job output #80

nbedos opened this issue Nov 25, 2019 · 2 comments

Comments

@nbedos
Copy link
Contributor

nbedos commented Nov 25, 2019

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
Copy link
Contributor Author

nbedos commented Nov 28, 2019

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

@nbedos nbedos closed this as completed Jan 28, 2020
@plimpton
Copy link

This is still needed. Should not have been auto closed

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants