Creating tools to aid in ONOS release process.

Change-Id: I6fba9c6cfbd943fead7005fa09eba2d7af6ac821
diff --git a/tools/build/onos-upload-docs b/tools/build/onos-upload-docs
new file mode 100755
index 0000000..550895e
--- /dev/null
+++ b/tools/build/onos-upload-docs
@@ -0,0 +1,21 @@
+#!/bin/bash
+# -----------------------------------------------------------------------------
+# Uploads ONOS Java API docs.
+# -----------------------------------------------------------------------------
+
+[ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1
+. $ONOS_ROOT/tools/build/envDefaults
+
+user=${1:-jenkins}
+remote=$user@wiki.onosproject.org
+
+scp $ONOS_ROOT/docs/target/onos-apidocs-$ONOS_VERSION.tar.gz $remote:/tmp
+ssh $remote "
+    mkdir -p /var/www/api/$ONOS_VERSION
+    cd /var/www/api/$ONOS_VERSION
+    tar zxf /tmp/onos-apidocs-$ONOS_VERSION.tar.gz
+    mv onos-apidocs-$ONOS_VERSION/* .
+    rm -rf onos-apidocs-$ONOS_VERSION
+
+    # TODO: optionally bump /var/www/api/index.html
+"