GIT_REPO_PATH = os.environ.get('GIT_REPO_PATH')
GIT_REPO_NAME = os.path.basename(GIT_REPO_PATH)
-GIT_OLD_ID = os.environ.get('GIT_OLD_ID')
-GIT_NEW_ID = os.environ.get('GIT_NEW_ID')
GIT_BRANCH_NAME = os.environ.get('GIT_BRANCH_NAME')
GIT_COMMITTER_EMAIL = os.environ.get('GIT_COMMITTER_EMAIL')
'--build-url', '%s' %(BUILD_URL),
'--git-repo-path', '%s' %(GIT_REPO_PATH),
'--git-repo-name', '%s' %(GIT_REPO_NAME),
- '--git-old-id', '%s' %(GIT_OLD_ID),
- '--git-new-id', '%s' %(GIT_NEW_ID),
'--git-branch-name', '%s' %(GIT_BRANCH_NAME),
'--revision', '%s' %(revision),
'--dist', '%s' %(dist),
help='Set the Git Repo Name. Default: %default'
)
- parser.add_option(
- '--git-old-id',
- dest='git_old_id',
- default=None,
- metavar='GIT_OLD_ID',
- help='Set the Git Old Id. Default: %default'
- )
-
- parser.add_option(
- '--git-new-id',
- dest='git_new_id',
- default=None,
- metavar='GIT_NEW_ID',
- help='Set the Git New Id. Default: %default'
- )
-
parser.add_option(
'--git-branch-name',
dest='git_branch_name',
logger.error('No git repo path given')
exit(ERROR)
- GIT_OLD_ID = os.environ.get('GIT_OLD_ID') or options.git_old_id
- if not GIT_OLD_ID:
- logger.error('No git old id given')
- exit(ERROR)
-
- GIT_NEW_ID = os.environ.get('GIT_NEW_ID') or options.git_new_id
- if not GIT_NEW_ID:
- logger.error('No git new id given')
- exit(ERROR)
-
OVERLAY_DIR = options.overlay_dir or '/usr/share/kernel-package'
# add current dir to python search path