jenkins-cli icon indicating copy to clipboard operation
jenkins-cli copied to clipboard

Need a way to kill a job

Open natsen opened this issue 3 years ago • 0 comments

Is your feature request related to a problem? Please describe. In a pipeline job that contains blocking running steps (such as build) jcli stop would not terminate the build. need a jcli kill option to abort running pipeline steps and terminate the build forcibly. Describe the solution you'd like jenkins job has a kill api that does this- {jenkins_url)/job/(build_number)/kill would like a jcli job kill <buildnumber> that uses this api to Hard kill the build. Describe alternatives you've considered Alternative is to post to the {jenkins_url)/job/(build_number)/kill api. Additional context using jcli job stop does the following without terminating the build. Aborted by xxx [Click here to forcibly terminate running steps]

natsen avatar Feb 04 '22 20:02 natsen