Go to Job Configuration. Scroll down to Git section and click "Advanced..." button under "Repositories". Then set:
Name: origin
Refspec: +refs/heads/branch-0.1:refs/remotes/origin/localbranchname
Then click another "Advanced..." button and set:
Checkout/merge to local branch (optional): localbranchname
You can name local branch as you like, but destination in Refspec must match local branch name in that optional field (in this case "localbranchname"). This will attach HEAD to localbranchname like this:
HEAD -> refs/heads/localbranchname -> 7a698457751bdc043cfda631b81e3812c5361790