]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
debian_build: show more details of your tag checks
authorMathias Klette <mathias.klette@profitbricks.com>
Fri, 21 Jun 2013 15:32:48 +0000 (17:32 +0200)
committerMathias Klette <mathias.klette@profitbricks.com>
Fri, 21 Jun 2013 15:32:48 +0000 (17:32 +0200)
debian_build.py

index 2e7af6ae8355b1ee4085e894375eac7c530a78b1..9d85c1dbd6343f9ae85018c1314b1e981fa1b8e2 100755 (executable)
@@ -197,10 +197,16 @@ if __name__ == '__main__':
             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.')
+                    logger.debug('Tag {name} was already created for commit {sha}.'.format(
+                        name=remote_tag[0].name,
+                        sha=remote_tag[0].commit.id[0:7],
+                    ))
                     do_tagging = False
                 else:
-                    logger.error('Tag was already created for another commit.')
+                    logger.error('Tag {name} was already created for commit {sha}.'.format(
+                        name=remote_tag[0].name,
+                        sha=remote_tag[0].commit.id[0:7],
+                    ))
                     exit_error()
             else:
                 do_tagging = True