Addressing issue/221 - changing depth=1
authorDavid Johansen <djohansen@twitter.com>
Wed, 5 Feb 2014 06:54:45 +0000 (22:54 -0800)
committerDavid Johansen <djohansen@twitter.com>
Wed, 5 Feb 2014 06:54:45 +0000 (22:54 -0800)
  - only thing that depth=2 adds is the
  "fingerprint":[] item, which turns a
  600KB request to a 180M request on a
  large repo.

jenkinsapi/build.py

index acf023cb89a43c83f0e9ae2b0d7348b3c13aacf0..7405c28fb065dda0cf65cbf53061a0aea46c99b8 100644 (file)
@@ -42,7 +42,7 @@ class Build(JenkinsBase):
     def _poll(self):
         #For build's we need more information for downstream and upstream builds
         #so we override the poll to get at the extra data for build objects
-        url = self.python_api_url(self.baseurl) + '?depth=2'
+        url = self.python_api_url(self.baseurl) + '?depth=1'
         return self.get_data(url)
 
     def __str__(self):