Regex Jenkins-排除的提交消息正则表达式不工作

Regex Jenkins-排除的提交消息正则表达式不工作,regex,jenkins,continuous-integration,Regex,Jenkins,Continuous Integration,在Jenkins中,当发现以下提交消息时,我有一个作业不想触发生成: [REBASE] Rebasing with the integration commit that was just made in rev.123456789 提交消息中唯一更改的是字符串末尾的数字值 为了防止生成,我使用了作业配置页面的“排除提交消息”字段。在该字段中,我放置了以下正则表达式: /Rebasing with the integration commit that was just made in rev

在Jenkins中,当发现以下提交消息时,我有一个作业不想触发生成:

[REBASE] Rebasing with the integration commit that was just made in rev.123456789
提交消息中唯一更改的是字符串末尾的数字值

为了防止生成,我使用了作业配置页面的“排除提交消息”字段。在该字段中,我放置了以下正则表达式:

/Rebasing with the integration commit that was just made in rev.\d+/


但该作业仍在触发构建

有人知道我的正则表达式是否不好,或者Jenkins是否需要一些我不知道的正则表达式的特殊语法吗

谢谢


Jeff

首先需要删除正则表达式分隔符

然后,一个点应该转义,因为它是一个特殊的正则表达式字符,表示除换行符以外的任何符号

因此,您需要使用

Rebasing with the integration commit that was just made in rev\.\d+

您是否尝试删除分隔符并转义圆点<代码>使用刚刚在rev\中进行的集成提交重新设置基址。\d+?@Stribizev看起来成功了!非常感谢!作为答复张贴。