SmartGit:如果 jenkins 构建失败如何防止合并

问题描述 投票:0回答:0

我创建了一个 jenkins 管道配置,其工作方式如下:

1.Clones the repository
2.Does the Build
3.Sends notification to the person who made the changes if build was succesful or not. 

问题:

  • Jenkins 构建在任务分支合并回 master 时触发,现在我认为如果构建失败则阻止合并已经晚了。如果 jenkins 构建失败,我可以做些什么来重组管道配置,以防止合并回 master?。

提前谢谢你。

我没有尝试太多,因为所有这些对我来说看起来真的很复杂。

jenkins smartgit
© www.soinside.com 2019 - 2024. All rights reserved.