Skip to content

Commit 7ff4311

Browse files
committed
Change sleep position to print the last lines of the interactive console
1 parent 0a74058 commit 7ff4311

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

jenkins_cli/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,8 @@ def console(self, args):
308308
if new_line_num > last_line_num:
309309
print("\n".join(console_out[last_line_num:]))
310310
last_line_num = new_line_num
311-
sleep(args.interval)
312311
build_info = self.jenkins.get_build_info(job_name, build_number)
312+
sleep(args.interval)
313313

314314
def building(self, args):
315315
args.a = True

0 commit comments

Comments
 (0)