Add GPG keys to the maven-publish job
Change-Id: I0d243f9fdff434202484adc5c6fb6ad48cce0dc8
diff --git a/jjb/maven.yaml b/jjb/maven.yaml
index 06ad8ee..d39c1f6 100644
--- a/jjb/maven.yaml
+++ b/jjb/maven.yaml
@@ -110,6 +110,12 @@
choosing-strategy: gerrit
jenkins-ssh-credential: '{jenkins-ssh-credential}'
+ wrappers:
+ - credentials-binding:
+ - file:
+ credential-id: 'gpg-creds-maven'
+ variable: 'GNUPG'
+
builders:
# Set JDK version
- shell: |
@@ -119,6 +125,8 @@
sudo update-java-alternatives -s $jdkDistro
echo "Java Version:"
java -version
+ echo "Unpacking GPG Keys"
+ tar -xvf $GNUPG -C ~
- maven-target:
pom: pom.xml