need to deny a pipeline made from a specified branch merge

心不动则不痛 提交于 2019-12-11 17:44:32

问题


I need help.

I have 3 branches

  • master
  • hotfix
  • feature

I want the build to occur only on the master coming from merge with the feature. How could I do this?

I am allowing the build to occur in jenkins if it comes from a merge to master made with the feature, as I will run another pipeline in the hotfix and I want it when the hotfix merge with the master nothing happens.

My regular expression today is

but I'm refusing everything from the master, in case I want to allow the master to execute just coming from a merge with the feature branch

I thought of another option too, I can release the pipeline in the master coming from merge with any branch, only when it comes from the hotfix branch.

If in the future I have more branches and want to run the pipeline to the merge with the master

来源:https://stackoverflow.com/questions/54367559/need-to-deny-a-pipeline-made-from-a-specified-branch-merge

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!