Git | merge two branches in third branch | Debian | git-buildpackage

377 views
Skip to first unread message

Denny Fuchs

unread,
May 12, 2016, 3:54:04 PM5/12/16
to Jenkins Users
hi,

I want to build Debian packages with git-buildpackage and learned a lot the last days, to manage Debian sources with Git.

My project has three branches:

master  -> project sources
debian -> all debian/ related files
release -> merge from master and debian

So my actual workflow is:

  1. Do some work on the sources (git checkout master ... git commit)
  2. Edit debian/changelog  ... and other debian files (git checkout debian ... git commit )
  3. git checkout release && git merge debian master
  4. git-buildpackage -uc -us --git-tag --git-ignore-new --git-ignore-branch --git-tag --git-cleaner='git clean -dfx' (which uses the debian/changelog file to add the tags)


my gbp.conf:


[DEFAULT]
upstream-branch = master
debian-branch = release


[git-buildpackage]
export-dir = ../build-area/
tarball-dir = ../tarballs/
upstream-branch = master
debian-branch = release
sign-tags = False
upstream-tag = v%(version)s

[import-orig]
# Filter out unwanted files/dirs from upstream
filter = [
    '*egg.info',
    '.bzr',
    '.hg',
    '.hgtags',
    '.svn',
    'CVS',
    '*/debian/*',
    'debian/*'
    ]

filter-pristine-tar = True


[git-import-dsc]
filter = [
    'CVS',
    '.cvsignore',
    '.hg',
    '.hgignore',
    '.bzr',
    '.bzrignore',
    '.gitignore'
    ]

[git-dch]
# ignore merge commit messages
git-log = --no-merges


So, now I want to integrate the merge and build parts into Jenkins. There exists a lot of very old HOWTOS for Jenkins and Debian and also some for merging one branch into master ... but how should I configure the merges from master and debian, in the branch "release" ?


cu denny


Reply all
Reply to author
Forward
0 new messages