polling jenkins each time Jobs is initialized
authorjpiron <jpiron@pagesjaunes.fr>
Thu, 13 Mar 2014 17:11:00 +0000 (18:11 +0100)
committerjpiron <jpiron@pagesjaunes.fr>
Thu, 13 Mar 2014 17:11:00 +0000 (18:11 +0100)
jenkinsapi/jobs.py

index c7fcd9a..1e560d0 100644 (file)
@@ -18,6 +18,7 @@ class Jobs(object):
     """
     def __init__(self, jenkins):
         self.jenkins = jenkins
+        self.jenkins.poll()
 
     def __len__(self):
         return len(self.keys)