aboutsummaryrefslogtreecommitdiff
path: root/buildbot-client.el
diff options
context:
space:
mode:
Diffstat (limited to 'buildbot-client.el')
-rw-r--r--buildbot-client.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/buildbot-client.el b/buildbot-client.el
index afc1a69..e979368 100644
--- a/buildbot-client.el
+++ b/buildbot-client.el
@@ -10,7 +10,7 @@
(defun buildbot-api-logs (stepid)
(buildbot-url-fetch-json
(format
- "%s/api/v2/steps/%s/logs"
+ "%s/api/v2/steps/%d/logs"
buildbot-host stepid)))
(defun buildbot-api-builders ()
@@ -46,6 +46,9 @@
(= (alist-get 'builderid builder) builderid))
buildbot-builders))
+(defun buildbot-get-logs-by-stepid (stepid)
+ (alist-get 'logs (buildbot-api-logs stepid)))
+
(defun buildbot-get-builder-name-by-id (id)
(alist-get 'name (buildbot-builder-by-id id)))