问题
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