From: Holger Levsen Date: Wed, 2 Nov 2011 12:05:35 +0000 (+0100) Subject: add debug X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=a69a651356382c0685393a8417912aab1b3bae28;p=profitbricks%2Fjenkins-build-scripts.git add debug --- diff --git a/kernel_persistence.py b/kernel_persistence.py index 1971474..2c5d5c6 100644 --- a/kernel_persistence.py +++ b/kernel_persistence.py @@ -50,6 +50,7 @@ class KernelVersion(Base): def get_last_kernel_revision_obj(branch): session = Session() logger.debug('Getting kernel revision from persistence') + if branch == 'master' or branch.startswith('hotfix'): persistence_identifier = 'master' elif branch.startswith('release'): @@ -57,6 +58,7 @@ def get_last_kernel_revision_obj(branch): else: # FIXME: feature branch handling persistence_identifier = 'develop' + logger.debug('branch = %s, persistence_identifier = %s' % (branch, persistence_identifier)) try: answ = session.query(KernelVersion).filter(