CBQE-1406: add timeout for geting builds

Change-Id: I8d343d378f2840d72b7c98383902edf4bf274898
Reviewed-on: http://review.couchbase.org/27127
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Deepkaran Salooja <deepkaran.salooja@globallogic.com>