Jenkins立即禁用构建 [英] Jenkins disable build now

查看:272
本文介绍了Jenkins立即禁用构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在Jenkins上禁用立即构建"选项,我有工作来构建分支并将SNAPSHOT部署到服务器.我需要使用Maven版本的生产作业,该作业只能生成稳定的版本,但是对于此作业,我认为最好的方法是禁用立即构建"选项,并且仅使用Maven版本.那我可以这样做吗?

I need to disable "Build now" option on Jenkins, I have a job building a branch and deploy SNAPSHOTs to a server. I need a production Job, that generates only stable versions, using maven release, but for this job I think the best approach is disable "Build Now" option and use only Maven Release. So Can I do this?

推荐答案

使用 Job Restrictions插件,但看起来有点笨拙或根本无法胜任这项特定任务.

Use Authorization strategy plugin to disallow running the job. If configured right - no one will see "Build Now" button. Another options is Job Restrictions plugin, but it looks a bit clumsy or simply not that good for this particular task.

这篇关于Jenkins立即禁用构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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