This plugin helps building debian (.deb) packages

Cloudbees link: https://jenkins.ci.cloudbees.com/job/plugins/job/debian-package-builder-plugin/


Basic usage


Installing this plugin contributes following:


The plugin uses global GPG key to build and sign .deb packages. It is configured in the Debian package builder section of the global configuration. The parameter names are pretty much self-descriptive:

Debian package publisher section configures available debian repositories to publish packages to:

The Advanced section configures SSH key to be used with SCPB method and extra SSH options (like -o StrictHostKeyChecking=no)


The Build debian package step has a main configuration parameter "Path to 'debian' catalog" that should point to a catalog that contains debian catalog.

For example, if checkout has structure like $WORKSPACE/myproject/util/debian/ you should use myproject/util as a configuration value.

By default, the build step will install all the requirements on its own, use pbuilder-satisfy-depends to install build-deps of a package and then use debuild to actually build package.

The package .deb will be added as a build artifact and badge with a version per backage built will be applied to the build:


The Publish debian packages post-build step uses debrealease to publish package and according .changes to the selected repository. The dupload.conf will be automatically generated with configured GPG account data and used keys.

Automatic version manipulation

Plugin is capable of automatically starting new package version upon build, recording recent changes and commiting it back to SCM.

However, the only supported SCM so far is Subversion due to the absence of commit capabilities in Jenkins SCM core classes.

To use it, check the "Generate changelog" box on the build step and "Commit changes back to repository" on the post-build step.

Upon build, it will:

To better handle failed builds, use 'Checkout fresh copy' SVN option (or similar for other SCM).

Known issues

Spaces in path

In versions prior to 1.3 there were issues with spaces in path, causing all kinds of errors. Problems in the plugin itself are fixed, however there are certain troubles in the debian build systems themselves, namely CDBS. See this issue on debian.org: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=306941.


Version 1.6.6 (Dec 26, 2014)

Thanks to the https://github.com/roadrunner2 for PR

Version 1.6.5 (Nov 06, 2014)

Version 1.6.2 (Aug 13, 2014)

Version 1.6.1 (Aug 11, 2014)

Thanks to the https://github.com/itIGO and https://github.com/guilhem for PR

Version 1.6.0 (May 16, 2014)

Thanks to the https://github.com/itIGO for PR

Version 1.5.7 (May 14, 2014)

Thanks to the https://github.com/raizdepi and https://github.com/jacksoncage for PRs

Version 1.5.3 (January 17, 2014)

Thanks to the https://github.com/itIGO for PRs

Version 1.5.2 (August 8, 2013)

Version 1.5.1 (August 8, 2013)

Version 1.4.2 (March 21, 2013)

Version 1.4 (Nov 7, 2012)

Version 1.3 (Oct 26, 2012)

Version 1.2 (Oct 22, 2012)