for flavour in fh.readlines():
LINUX_FLAVOUR_REPO_PATH = '/srv/git/r+i/linux-%s.git' % flavour
urlencode_expansion_dict = {
- 'flavour': os.path.splitext(os.path.basename('linux-%s' % flavour))[0]
+ 'flavour': 'linux-%s'.strip() % flavour
}
url = HudsonUrl()
data = urllib.urlencode(
if ret.code == 200:
logger.info('jenkins url called successfully.')
- elif ret.code == 404:
- logger.info('jenkins has no such job configured yet.')
- else:
+ elif
logger.info('URL was %s' % JOB_URL %(urlencode_expansion_dict) + '%s' %(data))
logger.info('jenkins sends the following: %s' %(ret.read())
)