Is there a way to use webhook only, is there a click on a particular branch?

I want to start jenkins only when a specific git branch is clicked, but unfortunately I can not find anything. Thanks.

+5
source share
1 answer

In the section "Managing source codes" you would choose the Git option, there is the option "Branches" to create a mention only about the branch that you want to build, for example. Foo

enter image description here

In addition, Jenkins has a GitHub Branch plugin that allows you to add branch restrictions and provides greater control over branches and how to create specific branches, you can find this option in trigger events → Branch restrictions

enter image description here

Hope this helps :)

0
source

All Articles