Skip to content

Commit c7e0318

Browse files
committed
fix stop command
1 parent 314877c commit c7e0318

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
@@ -241,7 +241,7 @@ def builds(self, args):
241241

242242
def stop(self, args):
243243
job_name = self._check_job(args.job_name)
244-
info = self.jenkins.get_job_info(job_name)
244+
info = self.jenkins.get_job_info(job_name, 1)
245245
build_number = info['lastBuild'].get('number')
246246
if build_number and info['lastBuild'].get('building'):
247247
stop_status = self.jenkins.stop_build(job_name, build_number)

0 commit comments

Comments
 (0)