no need to buck build twice; include the onos build credentials
Change-Id: Ia47cec1c3d08f97f7ad71d57a5c28c797f7d5324
diff --git a/jjb/onos/onos-docker-build.sh b/jjb/onos/onos-docker-build.sh
index db209e3..aa2b431 100644
--- a/jjb/onos/onos-docker-build.sh
+++ b/jjb/onos/onos-docker-build.sh
@@ -10,13 +10,12 @@
ONOS_ROOT=`pwd`
. tools/build/envDefaults
+# set up release build credentials
+. onos-build-credentials
+
# get the sources
git checkout $GERRIT_BRANCH
-# run the build
-onos-buck build onos
-
-# build and deploy the Docker image
# build and deploy the Docker image
$DOCKER build -t onosproject/onos:${ONOS_VERSION} .
$DOCKER login --username ${DOCKERHUB_USERNAME} --password ${DOCKERHUB_PASSWORD}