line_counter += 1
if line_counter == 3:
print ' * Generated by jenkins build of %s' % git_helper.git_get_commit_id()
- print line.strip()
+ print line.rstrip('\n')
# we need to commit here else git-buildpackage will use the existing debian/changelog...
# TODO: Later we should investigate why "--ignore-new" does not work!
if line.startswith(' --'):
line_counter += 1
if line_counter <= 2:
- print('debian/changelog: %s' %(line.strip()))
+ print('debian/changelog: %s' %(line.rstrip('\n')))
# let's test if we can tag this build, so we can fail early if we cannot tag it later
if GIT_BRANCH_NAME == 'master' or GIT_BRANCH_NAME.startswith('hotfix/'):