Hi folks

The API responses seem bizarre, inconsistent, and appear to change format 
regularly. As a result our builds that depend on the API fail randomly 
sometimes.

For instance, in one of our test-running jobs, we're grabbing 
/jenkins/{build-job}/{id}/api/json and looping through response['actions'] 
to look for an item with a 'buildsByBranchName' key. It's in a different 
item every time, which is crazy, and I have no idea what this sequence of 
items means, but it was working okay until last night, when for some reason 
no such item existed. It's back again now, but again I have no idea why or 
when it would be there and when it wouldn't.

So, can anyone link me to any vaguely helpful documentation on the JSON or 
XML APIs? I am aware that you can add `/api` to a job page and see a brief 
summary of the API endpoint, but it doesn't explain anything in depth (e.g. 
it doesn't even mention any of the above), so is of limited use.

Thanks

Craig de Stigter

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to