Jenkins在分支的特定提交消息上触发构建 [英] Jenkins trigger build on specific commit message of branch

查看:802
本文介绍了Jenkins在分支的特定提交消息上触发构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对此问题进行了一些搜索和谷歌搜索,但是大多数帖子都与如何隔离(使用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屋!

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