From bc5e18f924bed81ad760f0e33a9fd144a9a292e6 Mon Sep 17 00:00:00 2001 From: jpiron Date: Thu, 13 Mar 2014 18:11:00 +0100 Subject: [PATCH] polling jenkins each time Jobs is initialized --- jenkinsapi/jobs.py | 1 + 1 file changed, 1 insertion(+) diff --git a/jenkinsapi/jobs.py b/jenkinsapi/jobs.py index c7fcd9a..1e560d0 100644 --- a/jenkinsapi/jobs.py +++ b/jenkinsapi/jobs.py @@ -18,6 +18,7 @@ class Jobs(object): """ def __init__(self, jenkins): self.jenkins = jenkins + self.jenkins.poll() def __len__(self): return len(self.keys) -- 2.7.4