]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
debian_build: Fix tagged_commit to tagged_commit_hexsha.
authorBenjamin Drung <benjamin.drung@profitbricks.com>
Wed, 5 Mar 2014 12:34:44 +0000 (13:34 +0100)
committerBenjamin Drung <benjamin.drung@profitbricks.com>
Wed, 5 Mar 2014 12:34:44 +0000 (13:34 +0100)
debian_build.py

index 004c3acb0f9dfc68a6a1468118513a66a4fbf07c..15830ce5ec3dcb84d91b3a89419f292540ac95bf 100755 (executable)
@@ -214,7 +214,7 @@ if __name__ == '__main__':
                 if tagged_commit_hexsha == curr_commit_hexsha:
                     message = 'Tag {name} was already created for commit {sha}.'.format(
                         name=remote_tag[0].name,
-                        sha=tagged_commit[0:7],
+                        sha=tagged_commit_hexsha[0:7],
                     )
                     logger.debug(message)
                     do_tagging = False
@@ -222,7 +222,7 @@ if __name__ == '__main__':
                 else:
                     logger.error('Tag {name} was already created for commit {sha}.'.format(
                         name=remote_tag[0].name,
-                        sha=tagged_commit[0:7],
+                        sha=tagged_commit_hexsha[0:7],
                     ))
                     exit_error()
             else: