set -ex
-# Jenkins will set $RELEASE as a parameter in the job configuration.
-if $RELEASE ; then
- # This is a formal release. Sign it with the release key.
- export GNUPGHOME=/home/jenkins-build/build/gnupg.ceph-release/
- export KEYID=460F3994
-else
- # This is an automatic build. Sign it with the autobuild key.
- export GNUPGHOME=/home/jenkins-build/build/gnupg.autobuild/
- export KEYID=03C3951A
-fi
-
HOST=$(hostname --short)
echo "Building on ${HOST}"
echo " DIST=${DIST}"
echo " BPTAG=${BPTAG}"
-echo " KEYID=${KEYID}"
echo " WS=$WORKSPACE"
echo " PWD=$(pwd)"
ls -l
BP_VERSION=${DEB_VERSION}${BPTAG}
DEBEMAIL="adeza@redhat.com" dch -D $DIST --force-distribution -b -v "$BP_VERSION" "$comment"
dpkg-source -b .
- dpkg-buildpackage -k$KEYID
+ # we no longer sign the .dsc or .changes files (done by default with
+ # the `-k$KEYID` flag), so explicitly tell the tool not to sign them
+ dpkg-buildpackage -uc -us
RC=$?
if [ $RC -eq 0 ] ; then
cd $WORKSPACE