Ensure docker prunning can be done 35/59735/1
authorCristina Pauna <cristina.pauna@enea.com>
Thu, 12 Jul 2018 08:52:50 +0000 (11:52 +0300)
committerCristina Pauna <cristina.pauna@enea.com>
Thu, 12 Jul 2018 08:57:40 +0000 (11:57 +0300)
commit46a61e84fa16374a0973f57a78c6e512a048e15d
tree7efe2196a19c1c3a31885ae1a7cf5d292038ed13
parentbe49a5c9b7a9e1c5977f16eb84465b367277563f
Ensure docker prunning can be done

Sometimes the docker build fails and the docker process hangs on a container,
withouth being able to stop it. This causes spurious failures on other builds
that shouldn't fail. The prune job should cleanup the hanging containers and
images, but it fails when the docker process is hanged.

This change adds a docker restart to the prune job, in order to assure that the
hanged container is shut down and can be removed.

JIRA: ARMBAND-358

Change-Id: I9d04fa1099a6fc53bf773a2eba33be89db7d0aa1
Signed-off-by: Cristina Pauna <cristina.pauna@enea.com>
jjb/releng/opnfv-utils.yaml