Permalink
Browse files

Allow Jenkins CI attach build number

Without this patch manual builds break automated releases

Change-Id: I41c8e77243f17679095826b49bbf93000ed0973b
Reviewed-on: http://review.couchbase.org/18760
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
  • Loading branch information...
1 parent b965f43 commit 64a667e17c9570700d6e9255a3f23edcc3e31060 @avsej avsej committed Jul 24, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 packaging/deb/package.mk
@@ -49,7 +49,8 @@ dist-deb: dist
cp $(PACKAGE)-$(VERSION).tar.gz $(DEB_WORKSPACE)/$(PACKAGE)_$(DEB_VERSION).orig.tar.gz
(cd $(DEB_WORKSPACE); tar zxvf $(PACKAGE)_$(DEB_VERSION).orig.tar.gz)
(cd $(DEB_DIR); \
- dch --no-auto-nmu --newversion "$(DEB_VERSION)-1" "Released debian package for version $(DEB_VERSION)" && \
+ if [ "x$${DEB_SUFFIX}" = "x" ]; then DEB_SUFFIX=1; fi; \
+ dch --no-auto-nmu --newversion "$(DEB_VERSION)-$${DEB_SUFFIX}" "Released debian package for version $(DEB_VERSION)" && \
dpkg-buildpackage -rfakeroot ${DEB_FLAGS})
mv $(DEB_WORKSPACE)/*.{changes,deb,dsc,tar.gz} `pwd`
rm -rf $(DEB_WORKSPACE)

0 comments on commit 64a667e

Please sign in to comment.