]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
add debian branch checkout
authorRobin Wittler <robin.wittler@profitbricks.com>
Wed, 3 Aug 2011 12:16:29 +0000 (14:16 +0200)
committerRobin Wittler <robin.wittler@profitbricks.com>
Wed, 3 Aug 2011 12:16:29 +0000 (14:16 +0200)
testgit_build.py

index 0c9736c37ea0e379a8105f77b0076babff2d822f..b666c452ba3630b58ade7ac4f70c8aeeedead98e 100755 (executable)
@@ -129,6 +129,7 @@ if __name__ == '__main__':
         exit_error()
     atexit.register(remove_git_target_workspace)
     os.chdir(GIT_TARGET_DIR)
+    git_helper.git_checkout_branch(GIT_DEBIAN_BRANCH)
     repo = git.repo.Repo()
     if not GIT_COMMITTER_EMAIL:
         # if the GIT_COMMIT_EMAIL is not set,
@@ -136,6 +137,9 @@ if __name__ == '__main__':
         for commit in repo.commits():
             if commit.id == GIT_NEW_ID:
                 GIT_COMMITTER_EMAIL = commit.committer.email
+                logger.debug(
+                        'Found "%s" in commit-id "%s" at "%s"'
+                        %(GIT_COMMITTER_EMAIL, commit.id, 
         else:
             raise Exception('No git_committer_email found')
     logger.info('Directory Listing: %s' %(os.listdir(GIT_TARGET_DIR)))