]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
debian_build: show environment, that gbp object creates, add FIXME
authorMathias Klette <mathias.klette@profitbricks.com>
Thu, 20 Jun 2013 15:56:46 +0000 (17:56 +0200)
committerMathias Klette <mathias.klette@profitbricks.com>
Thu, 20 Jun 2013 15:56:46 +0000 (17:56 +0200)
debian_build.py

index 9fde8ec8cf18c8699867c2be0a44efd9920554fe..ae16261714c1b38f3018ccad747144739ae66150 100755 (executable)
@@ -192,6 +192,7 @@ if __name__ == '__main__':
             # FIXME: tagging only works for squeeze this way, change it to make it multipledist compatible
             remote_tag = [tag for tag in gitrepo.tags if tag.name == new_tag]
             if len(remote_tag) > 0:
+                # FIXME: .id attribute but avl. in wheezy based git lib
                 if remote_tag[0].commit.id == curr_commit_id:
                     logger.debug('Tag was already created for this commit.')
                     do_tagging = False
@@ -446,9 +447,6 @@ if __name__ == '__main__':
     #
     # ACT IV: preparations are done, let's build
     #
-    logger.info('Current environment:\n\n{env}\n'.format(env=ENV))
-    logger.info('Start building ...\n')
-
     gbp = git_buildpackage.GitBuildPackage(
         upstream_branch=local_branch,
         debian_branch=local_branch,
@@ -457,6 +455,8 @@ if __name__ == '__main__':
         pb_suite=pb_suite,
         git_commit_id=curr_commit_id[0:7],
     )
+    logger.info('Current environment:\n\n{env}\n'.format(env=gbp.env))
+    logger.info('Start building ...\n')
     ret = gbp.build()
 
     # .. remove last commit (the one where we added the changelog entry)