Allow release build job to upload javadocs

Set up the proper credentials for uploading javadocs to
api.onosproject.org

Change-Id: I3cbcbf95c8a8eae5735c79b4bebc4b20c9b246f6
diff --git a/jjb/onos/onos-release-build.sh b/jjb/onos/onos-release-build.sh
index 55c5cd9..0b2bf46 100644
--- a/jjb/onos/onos-release-build.sh
+++ b/jjb/onos/onos-release-build.sh
@@ -21,5 +21,12 @@
 mkdir -p ~/.m2
 mv settings.xml ~/.m2/settings.xml
 
+# stage the SSH key
+cp id_rsa.pub ~/.ssh
+
+# set user to use for uploading javadocs
+WIKI_USER="jenkins"
+export WIKI_USER
+
 # run the build
 onos-build-and-upload ${ONOS_VERSION} ${ONOS_NEXT_VERSION} ${GERRIT_BRANCH}
diff --git a/jjb/onos/onos-verify.yaml b/jjb/onos/onos-verify.yaml
index 10536a9..e8cd489 100644
--- a/jjb/onos/onos-verify.yaml
+++ b/jjb/onos/onos-verify.yaml
@@ -291,6 +291,9 @@
             - file-id: 'release-build-maven-settings'
               target: 'settings.xml'
               variable: 'MAVEN_SETTINGS'
+            - file-id: 'api-onosproject-ssh-key'
+              target: 'id_rsa.pub'
+              variable: 'API_ONOSPROJECT_SSH_KEY'
 
     #put shell scripts in file then make sure shell check is installed on verify vms
       - shell: !include-raw-escape: onos-release-build.sh