logger.exception(error)
exit_error()
- # build out-of-tree kernel module binary packages for all defined
- # flavours (if the package is a oot-source package)
- FLAVOURS_FILE=os.path.join(GIT_TARGET_WORKSPACE, GIT_REPO_NAME, "debian/pb_flavours")
- if os.path.exists(FLAVOURS_FILE):
- FLAVOURS_FILE=os.path.join(GIT_TARGET_WORKSPACE, GIT_REPO_NAME, "debian/pb_flavours")
- fh = open(FLAVOURS_FILE, 'r')
-
-
- for flavour in fh.readlines():
- flavour=flavour.strip()
- LINUX_FLAVOUR_REPO_PATH = '/srv/git/r+i/linux-%s.git' % flavour
- urlencode_expansion_dict = {
- 'flavour': 'linux-%s' % flavour
- }
- url = HudsonUrl()
- data = urllib.urlencode(
- (
- ('GIT_REPO_PATH', LINUX_FLAVOUR_REPO_PATH),
- ('GIT_BRANCH_NAME', GIT_BRANCH_NAME),
- ('DISTRIBUTION', pb_suite),
- ('delay', JOB_DELAY)
- )
- )
- ret = url.open(JOB_URL %(urlencode_expansion_dict) + '%s' %(data))
-
- if ret.code == 200:
- logger.info('jenkins url %s called successfully. ' % JOB_URL %(urlencode_expansion_dict) + '%s' %(data))
- else:
- logger.info('URL was %s' % JOB_URL %(urlencode_expansion_dict) + '%s' %(data))
- logger.info('jenkins sends the following: %s' %(ret.read()) )
- exit_error()
- fh.close()
-
exit_ok()