Skip to content
This repository was archived by the owner on Sep 23, 2024. It is now read-only.

Commit 68e5047

Browse files
committed
Document sktm.jenkins.Project.is_build_complete()
1 parent 671e73d commit 68e5047

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

sktm/jenkins.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,15 @@ def build(self, baserepo=None, ref=None, baseconfig=None,
242242
return build.get_number()
243243

244244
def is_build_complete(self, buildid):
245+
"""
246+
Check if a project build is complete.
247+
248+
Args:
249+
buildid: Jenkins build ID to get the status of.
250+
251+
Return:
252+
True if the build is complete, False if not.
253+
"""
245254
job = self.server.get_job(self.name)
246255
build = job.get_build(buildid)
247256

0 commit comments

Comments
 (0)