Jenkins在分支的特定提交消息上触发构建 [英] Jenkins trigger build on specific commit message of branch
问题描述
我对此问题进行了一些搜索和谷歌搜索,但是大多数帖子都与如何隔离(使用git插件等)有关.
I did a little search and googling for this issue, but most of the posts are related on how to isolate (by using git plugin etc.)
我想知道的是,有一种方法可以配置jenkins作业以在我指定的分支上触发特定提交消息(例如,如果它包含"build")上的构建.
What I'm wondering is there a way to configure a jenkins job to trigger a build on specific commit message (let's say if it contains "build") on the branch I specified.
谢谢,
推荐答案
You can use Commit Message Trigger Plugin to achieve this.
安装此插件后,转到作业配置页面,然后在Build Environment
部分下检查Enable Commit Message Trigger
,然后添加将导致作业触发的关键字.
Once you install this plugin, go to your job configuration page and under Build Environment
section check Enable Commit Message Trigger
,then add the keyword that will cause the job to trigger.
这篇关于Jenkins在分支的特定提交消息上触发构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!