From: Aleksey Maksimov Date: Wed, 20 Nov 2013 02:36:16 +0000 (+0800) Subject: Made invocation.get_job_number to poll job X-Git-Tag: v0.2.23~62^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9fcf1b95a866a78c3335eb0f5f62611b2cd3bde7;p=tools%2Fpython-jenkinsapi.git Made invocation.get_job_number to poll job --- diff --git a/jenkinsapi/invocation.py b/jenkinsapi/invocation.py index cfcf992..e726374 100644 --- a/jenkinsapi/invocation.py +++ b/jenkinsapi/invocation.py @@ -50,6 +50,7 @@ class Invocation(object): """ If this job is building or complete then provide it's build-number """ + self.job.poll() self.build_number = self.job.get_last_buildnumber() return self.build_number