repo = git.repo.Repo()
#if GIT_BRANCH_NAME != 'master':
- git_helper.git_new_branch_from(
- GIT_BRANCH_NAME,
- os.path.join('origin', GIT_BRANCH_NAME)
- )
+ localname = GIT_BRANCH_NAME
+ remotename = os.path.join('origin', GIT_BRANCH_NAME)
+ if not git_helper.git_new_branch_from(localname,remotename):
+ raise Exception('Checkout of %s was not successfull.' %( remotename ))
# we need to make sure our jenkins config is used, so let's delete any
# other config available in repository that might be prefered