Clone the corresponding branch of the repo according to the job branch