]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
jaja
authorHolger Levsen <holger@layer-acht.org>
Wed, 2 Nov 2011 16:09:23 +0000 (17:09 +0100)
committerHolger Levsen <holger@layer-acht.org>
Wed, 2 Nov 2011 16:09:23 +0000 (17:09 +0100)
kernel_inpbuilder.py

index 6bf88b1c9c7b97e93baab36ec3de61bcc5e891c2..5277e9bfa709dafff8011f4ea7cd2c6987eb59c7 100644 (file)
@@ -381,15 +381,16 @@ if __name__ == '__main__':
     os.environ['WORKSPACE']=cmd_folder  # needed by kernel_persistence
     import kernel_persistence
 
+    PB_SUITE = os.environ.get('PB_SUITE')
+
     GIT_BRANCH_NAME = (
             os.environ.get('GIT_BRANCH_NAME') or options.git_branch_name
     )
     if not GIT_BRANCH_NAME:
         # try to get it from persistence
         try:
-            PB_SUITE = os.environ.get('PB_SUITE')
             kernel_revision_obj = kernel_persistence.get_last_kernel_revision_obj(PB_SUITE)  
-            GIT_BRANCH_NAME=kernel_revision_obj.branch
+            GIT_BRANCH_NAME=kernel_revision_obj.branch_name
         except:
             logger.error('No git branch name given and no persistence for %s neither' % PB_SUITE)
             exit(ERROR)