How to use jenkins git plugin to build from a branch include origin or not

Viewed 17986

When building from git on master jenkins fetches and uses origin/master. When building from git on a branch jenkins fetches and users mybranch not origin/mybranch and isn't picking up changes.

I switched the branch specifier to use origin/mybranch and it seems to work. Is the the standard way to handle things or am I missing a more obvious way of doing this? I don't want to add unecessary complexity.

Please let me know if jenkins should use origin/branchname instead of branchname for its Branches-To-Build field.

Thanks

Peter

2 Answers
Related