Status: Closed (View Workflow)
Environment:Throwing in all versions that seem relevant, but I'm uncertain which codebases actually interact)
Jenkins version 2.44
Multiple SCM Plugin 0.6
Git Client Plugin 2.2.1
Git Plugin 3.0.5
GitHub Integration Plugin 0.1.0-rc19
(This process assumes you've configured an OAUTH application secret, Jenkins for GitHub webhook access, and GitHub access to Jenkins)
Run the following steps:
-Create 2 GitHub repositories: buildtest1 and foo1 (initialized with README)
-Configure their WebHook with http://your-jenkins-url:8080/github-webhook/, your secret text, etc.
-Select Just the push event for the WebHook configuration
-Add Jenkins user to Collaborators & Teams and give your Jenkins user Admin access to the buildtest1 and foo1 repositories
-Create branches in both, respectively: 1.1, 5.0
-Create Freestyle job with Git and Multiple SCM Plugin, selecting GitHub hook trigger for GITScm polling:
+Add SCM for both buildtest1 and foo1, with */master as the branch.