从命令行(CLI)取消Jenkins作业 [英] Cancelling Jenkins Job from Command line (CLI)

查看:110
本文介绍了从命令行(CLI)取消Jenkins作业的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

就像'build'命令用于从Jenkins CLI启动作业一样,是否可以使用CLI或任何其他命令行技术取消长期运行的作业.我正在Windows机器中尝试此操作,我不想直接从任务管理器中终止进程或关闭詹金斯人. 请提出建议.

Just like 'build' command is used to start a job from Jenkins CLI, is there a way to cancel a long running job using CLI or any other command line technique. This I am trying in a windows machine and I am not looking to directly kill the process from task manager or shut down the jenkins. Please suggest.

推荐答案

您可以通过调用JOB_URL/lastBuild/stop

You can stop a Jenkins execution by calling JOB_URL/lastBuild/stop

这篇关于从命令行(CLI)取消Jenkins作业的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆