You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kibble.apache.org by df...@apache.org on 2023/02/13 19:03:08 UTC

[kibble-scanners] 01/01: Revert "updating buildbot api url"

This is an automated email from the ASF dual-hosted git repository.

dfoulks pushed a commit to branch revert-8-christ/buildbot_scanner
in repository https://gitbox.apache.org/repos/asf/kibble-scanners.git

commit 01f57a37271f05116026ec8f455111bf2ce0e581
Author: dfoulks1 <48...@users.noreply.github.com>
AuthorDate: Mon Feb 13 13:03:02 2023 -0600

    Revert "updating buildbot api url"
---
 src/plugins/scanners/buildbot.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/plugins/scanners/buildbot.py b/src/plugins/scanners/buildbot.py
index b99f5bf..607d0be 100644
--- a/src/plugins/scanners/buildbot.py
+++ b/src/plugins/scanners/buildbot.py
@@ -48,7 +48,7 @@ def scanJob(KibbleBit, source, job, creds):
     parseIt = False
     found = KibbleBit.exists('cijob', dhash)
     
-    jobURL = "%s/api/v2/builders/%s/builds" % (source['sourceURL'], job)
+    jobURL = "%s/json/builders/%s/builds/_all" % (source['sourceURL'], job)
     KibbleBit.pprint(jobURL)
     jobjson = plugins.utils.jsonapi.get(jobURL, auth = creds)
     
@@ -186,7 +186,7 @@ def scan(KibbleBit, source):
         # Get the job list
         sURL = source['sourceURL']
         KibbleBit.pprint("Getting job list...")
-        builders = plugins.utils.jsonapi.get("%s/api/v2/builders" % sURL , auth = creds)
+        builders = plugins.utils.jsonapi.get("%s/json/builders" % sURL , auth = creds)
         
         # Save queue snapshot
         NOW = int(datetime.datetime.utcnow().timestamp())