From 702ebe191a5252ef5a9cb246f08a47c3f1a5f2fc Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Mon, 9 Feb 2015 14:57:44 -0500 Subject: [PATCH] make sure the right key is used when releasing Signed-off-by: Alfredo Deza --- radosgw-agent/build/build | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/radosgw-agent/build/build b/radosgw-agent/build/build index cb13f68b..42b68b63 100644 --- a/radosgw-agent/build/build +++ b/radosgw-agent/build/build @@ -3,9 +3,18 @@ set -ex date -#export GNUPGHOME=/home/jenkins-build/build/gnupg.autobuild/ -export GNUPGHOME=/home/jenkins-build/build/gnupg.ceph-release/ -export KEYID=17ED316D + +# 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=17ED316D +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}" -- 2.39.5