From: Holger Levsen Date: Wed, 2 Nov 2011 17:31:38 +0000 (+0100) Subject: better debug X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=eb3d4e29e9d2bbac0dbb2173378b3be7ea924a9d;p=profitbricks%2Fjenkins-build-scripts.git better debug --- diff --git a/debian_build.py b/debian_build.py index e84b0a7..6c23ba1 100755 --- a/debian_build.py +++ b/debian_build.py @@ -503,7 +503,7 @@ if __name__ == '__main__': 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( @@ -517,9 +517,7 @@ if __name__ == '__main__': 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()) )