zerovm/zvm-jenkins — pull request #9 by larsbutler (2014-03-06 12:42:18+00:00)
Title: Fix pull request checkouts

Fix pull request checkouts

For jobs which explicitly checkout a pull request branch, the reference
to the PR was not available, resulting in the following type of failure:

"""
git clone -b origin/pr/26/merge \
https://github.com/zerovm/validator.git /home/ubuntu/validator \
Cloning into '/home/ubuntu/validator'... \
warning: Remote branch origin/pr/26/merge not found in upstream \
origin, using HEAD instead
"""

This change properly configures the git clone ref specs so that PRs can
be checked out and tested.

Again, there is a lot of duplication that needs to be removed from these scripts. Once things are actually working, I'll start cleaning things up.