Keep Docker builds from thrashing on same server 11/43511/2
authorTrevor Bramwell <tbramwell@linuxfoundation.org>
Thu, 28 Sep 2017 18:54:23 +0000 (11:54 -0700)
committerTrevor Bramwell <tbramwell@linuxfoundation.org>
Fri, 29 Sep 2017 18:05:16 +0000 (11:05 -0700)
commit0850024f0ea0fbe81efefae9d4a49dcf9521a73e
treec6f0ca4c8afb555da90278e8a8b3719097919d2f
parentcc6ebc086d10e708b2f33769b7e23ef6473e0542
Keep Docker builds from thrashing on same server

There is a possiblity of multiple docker builds of a docker repo being
scheduled on the same host:

1) Patch is merged
2) Docker build is triggered
3) New patch is merged before the Docker build/push finishes triggering
   a second build
4) First build fails as second build starts by cleaning image from
   first build

Reintroducing the check for builds in progress, but specific to the
Docker repo, should allow mulitiple Docker builds on a node to run,
while keeping multiple builds on a per-repo basis from thrashing each
other.

JIRA: RELENG-315

Change-Id: I74c01850a036c831b93a8cd5fa8522337abb9ff4
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
jjb/releng/opnfv-docker.sh