Jenkins立即禁用构建 [英] Jenkins disable build now
问题描述
我需要在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屋!