]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
nice changelog for daily builds
authorHolger Levsen <holger@layer-acht.org>
Thu, 1 Sep 2011 16:06:16 +0000 (18:06 +0200)
committerHolger Levsen <holger@layer-acht.org>
Thu, 1 Sep 2011 16:06:16 +0000 (18:06 +0200)
build.py

index ab821f338d446fec7d0faf7487135b13dc7fe8af..c7c7f9f169e76b31cc23587c03b19dcc212ca8c9 100755 (executable)
--- a/build.py
+++ b/build.py
@@ -286,7 +286,7 @@ if __name__ == '__main__':
         daily_date = datetime.datetime.now().strftime('%Y%m%d%H%M%S')
         version = '%s~%s' %(pb_version, daily_date)
         os.unlink('debian/changelog')
-        cmd = ['/usr/bin/git', 'log', '-n', '50']
+        cmd = ['/usr/bin/git', 'log', '--since=yesterday', '--abbrev-commit', '--format=format:"%cD -- %aN%n[%h] %s%n"']
         git_log = subprocess.Popen(
                 cmd,
                 shell=False,