Skip to content
This repository has been archived by the owner on Oct 3, 2018. It is now read-only.

Commit

Permalink
Switch coro between build triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
bersace committed Feb 20, 2017
1 parent 31bdb78 commit c90e639
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jenkins_epo/extensions/jenkins.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ def run(self):
rebuild_failed=self.current.rebuild_failed
)
queue_empty = JENKINS.is_queue_empty()
yield from switch_coro()
toqueue_contexts = []
for context in not_built:
logger.debug("Computing new status for %s.", spec)
Expand All @@ -99,6 +100,7 @@ def run(self):
target_url=job.baseurl,
)
)
yield from switch_coro()

def status_for_new_context(self, job, context, queue_empty):
new_status = CommitStatus(target_url=job.baseurl, context=context)
Expand Down

0 comments on commit c90e639

Please sign in to comment.