]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
make sure the right key is used when releasing
authorAlfredo Deza <adeza@redhat.com>
Mon, 9 Feb 2015 19:57:44 +0000 (14:57 -0500)
committerAlfredo Deza <adeza@redhat.com>
Mon, 9 Feb 2015 19:57:44 +0000 (14:57 -0500)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
radosgw-agent/build/build

index cb13f68bcc680d61648683803ba5a727c3ed3b2c..42b68b63b6e4c07e390f98c4266db16dddbd4f3b 100644 (file)
@@ -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}"