Automatic builds for multi-branch GitHub organization projects

17 views
Skip to first unread message

Jan Kosecki

unread,
Oct 30, 2019, 7:12:57 AM10/30/19
to jenkins...@googlegroups.com
Hi, 
I have a multi-branch GitHub organization project, that I'm trying to configure to correctly automate builds on all PR, merges to master and new QA/release tags. 
For that I'm trying to use Build strategies form Branch API plugin configured as following:
Screenshot 2019-10-30 at 10.47.43.png

However, this configuration itself doesn't trigger any automatic builds on webhook requests.
What was missing was a regular expression in "Automatic branch project triggering" configuration. When I set it to allow anything `.*` my PR and QA releases started triggering automatic builds. Unfortunately, with this configuration, when I do Scan Repository Now, it not only detects branches specified in strategies but basically all branches and tags (also older than 7 days). It feels like `Automatic branch project triggering` takes priority over strategies. However, without `Automatic branch project triggering` nothing really builds.
How should it be configured to work correctly? Why the plugin provides both options?

I'm using latest jenkins image: 2.190.2 and Basic Branch Build Strategies 1.3.2

Thanks,
Jan
Reply all
Reply to author
Forward
0 new messages