]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
jenkins: support autobuild key or release key 152/head
authorKen Dreyer <ken.dreyer@inktank.com>
Fri, 10 Jan 2014 00:24:04 +0000 (17:24 -0700)
committerKen Dreyer <ken.dreyer@inktank.com>
Fri, 10 Jan 2014 00:27:47 +0000 (17:27 -0700)
We need Jenkins to build ceph-deploy more often so we can have more
testing, but we don't want to sign these "unofficial" builds with the
official release key.

Conditionally select the release key or the autobuild key based upon the
$RELEASE environment variable. Jenkins will set this variable using a
parameter when it runs each ceph-deploy build. For formal releases, we
will set the parameter to "true".

Signed-off-by: Ken Dreyer <ken.dreyer@inktank.com>
scripts/jenkins-build

index e2643e2ba04dfa3d04bc14a610f4066ac281506d..9d7a68173c126f86a7fe1cc75d0631599d507941 100755 (executable)
@@ -5,8 +5,17 @@
 
 set -x
 
-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}"