repo = git.repo.Repo()
- if GIT_BRANCH_NAME != 'master':
+ #if GIT_BRANCH_NAME != 'master':
#git_helper.git_new_branch_from(
- git_helper.git_checkout_branch(
+ # FIXME: error checking... (as below)
+ git_helper.git_checkout_branch(
GIT_BRANCH_NAME) #,
# os.path.join('origin', GIT_BRANCH_NAME)
#)
#)
# now checkout the requested branch
- if git_helper.git_checkout_branch(GIT_UPSTREAM_BRANCH):
- logger.info('git checkout %s was successfull' % GIT_UPSTREAM_BRANCH)
- else:
- logger_loud_error('git checkout %s was not successfull' % GIT_UPSTREAM_BRANCH)
- exit_error()
+ #if git_helper.git_checkout_branch(GIT_UPSTREAM_BRANCH):
+ # logger.info('git checkout %s was successfull' % GIT_UPSTREAM_BRANCH)
+ #else:
+ # logger_loud_error('git checkout %s was not successfull' % GIT_UPSTREAM_BRANCH)
+ # exit_error()
# we need to make sure our jenkins config is used, so let's delete any
# other config available in repository that might be prefered