From: Holger Levsen Date: Sat, 17 Sep 2011 17:48:25 +0000 (+0200) Subject: dont build if no changes X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=948d1c7cef176fe6e51a9aed18e6230f1f1a2817;p=profitbricks%2Fjenkins-build-scripts.git dont build if no changes --- diff --git a/debian_build.py b/debian_build.py index 7a5d6c0..a3dd089 100755 --- a/debian_build.py +++ b/debian_build.py @@ -371,6 +371,10 @@ if __name__ == '__main__': ) logger.info('debian/changelog written') + if git_log.stdout == '': + logger.info('git log since yesterday is empty, aborting build.') + sys.exit(0) + # we need to commit here else git-buildpackage will use the existing debian/changelog... # TODO: Later we should investigate why the "--ignore-new" trick # did not work!