We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 314877c commit c7e0318Copy full SHA for c7e0318
1 file changed
jenkins_cli/cli.py
@@ -241,7 +241,7 @@ def builds(self, args):
241
242
def stop(self, args):
243
job_name = self._check_job(args.job_name)
244
- info = self.jenkins.get_job_info(job_name)
+ info = self.jenkins.get_job_info(job_name, 1)
245
build_number = info['lastBuild'].get('number')
246
if build_number and info['lastBuild'].get('building'):
247
stop_status = self.jenkins.stop_build(job_name, build_number)
0 commit comments