sebasmonia / panda

Emacs package that consumes Bamboo's REST API to do useful things.
MIT License
3 stars 3 forks source link

Add the option to view build logs #13

Closed sebasmonia closed 5 years ago

sebasmonia commented 5 years ago

With the same l binding in the deployment status, show the logs.

Need to figure out the API calls to get the build log.

sebasmonia commented 5 years ago

At least in the Bamboo installation I have available, logs are not returned.

Followed the steps in the docs and online: https://docs.atlassian.com/atlassian-bamboo/REST/5.5.0/#d2e373 https://community.atlassian.com/t5/Answers-Developer-Questions/How-do-you-get-the-build-log-using-REST-API/qaq-p/485212

Need someone who gets results from the call with &expand=logEntries to help me.

sebasmonia commented 5 years ago

Turns out you do get logs but only for the jobs within the build process. I guess I would need to add that abstraction in Panda, or just iterate over the jobs and get logs for all of them. Another alternative is try to access the feature that is triggered when you click "View logs" in the UI. There must be an API call matching that.

sebasmonia commented 5 years ago

Added in 30dac32f9b18fb225ade8e56f7d9242d6c8efb35