From: Holger Levsen Date: Tue, 24 Jan 2012 17:49:15 +0000 (+0100) Subject: set distribution to dev_$GIT_BRANCH_NAME for _dev branches X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=c13206df2566daf99f7df1d392c08eca6c95a387;p=profitbricks%2Fjenkins-build-scripts.git set distribution to dev_$GIT_BRANCH_NAME for _dev branches --- diff --git a/debian_build.py b/debian_build.py index 409dbf8..c7884ce 100755 --- a/debian_build.py +++ b/debian_build.py @@ -363,13 +363,18 @@ if __name__ == '__main__': new_log = 'Generated by jenkins build of %s' % git_helper.git_get_commit_id() + if GIT_BRANCH_NAME == 'experimental' or GIT_BRANCH_NAME.startswith('feature/') or GIT_BRANCH_NAME.startswith('poc/') or GIT_BRANCH_NAME.startswith('bugfix/'): + changelog_distro ='dev_'+ GIT_BRANCH_NAME.replace("/","_") + else: + changelog_distro = options.distribution + cmd = [ '/usr/bin/dch', '--newversion', '%s' %(version), '--force-bad-version', '--distribution', - '%s' %(options.distribution), + '%s' %(changelog_distro), '--preserve', '--no-auto-nmu', '--',