]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
better debug
authorHolger Levsen <holger@layer-acht.org>
Wed, 2 Nov 2011 17:31:38 +0000 (18:31 +0100)
committerHolger Levsen <holger@layer-acht.org>
Wed, 2 Nov 2011 17:31:38 +0000 (18:31 +0100)
debian_build.py

index e84b0a7a861c43b1c9a6c7bb83afc82b20955d12..6c23ba19073fcd6c1d7616ce7d7537436fb7794f 100755 (executable)
@@ -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())
                     )