From: Bioske Date: Mon, 7 May 2012 11:52:57 +0000 (+0300) Subject: build.invoke with block=True: don't assert build succes, but build completion X-Git-Tag: v0.2.23~297^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=61bee8c8770c0e9a495411268ac48b011ccbc1a3;p=tools%2Fpython-jenkinsapi.git build.invoke with block=True: don't assert build succes, but build completion --- diff --git a/jenkinsapi/job.py b/jenkinsapi/job.py index fa1c255..1c46bdb 100644 --- a/jenkinsapi/job.py +++ b/jenkinsapi/job.py @@ -76,9 +76,7 @@ class Job(JenkinsBase): if self.is_running(): running_build = self.get_last_build() running_build.block_until_complete( delay=invoke_pre_check_delay ) - assert running_build.is_good() - else: - assert self.get_last_buildnumber() > original_build_no, "Job does not appear to have run." + assert self.get_last_buildnumber() > original_build_no, "Job does not appear to have run." else: if self.is_queued(): log.info( "%s has been queued." % self.id() )