jenkins-zh/jenkins-cli

Need a way to kill a job

Opened this issue · 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]