Wannes Sels commented on Bug JENKINS-25304

The issue is in the logic that decides how to do polling, see GitSCM.requiresWorkspaceForPolling().
If you specify one repository and one branch, the wildcard in the branchname before "/" can only be expanded to the single repository.
If however you specify a wildcard in the branch name, GitAPI.getHeadRev(remoteRepoUrl, branchSpec) would return the first matching branchName instead of all matching branches.

I suppose you could change GitSCM.compareRemoteRevisionWithImpl to get all branches with GitAPI.getHeadRev(remoteRepoUrl), and check each one if it has been built.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to