From 7a74772ace6ca83bd7795d3251960ba16c57f90d Mon Sep 17 00:00:00 2001 From: Mike Marchetti Date: Mon, 19 Jun 2017 17:20:42 -0400 Subject: [PATCH] cleanup deb pre-existing builds Change-Id: Ic91ef2d5fd65b3a45e449c84afe9d5877d065720 Signed-off-by: Mike Marchetti --- jenkins/osmclient/start_build | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jenkins/osmclient/start_build b/jenkins/osmclient/start_build index df4fc27a..2206a1a7 100755 --- a/jenkins/osmclient/start_build +++ b/jenkins/osmclient/start_build @@ -37,6 +37,10 @@ OSM_git_checkout "$@" apt update apt install -y docker.io +# cleanup all pre-existing builds. +# deb pkg build fails if previous build image is present +rm -rf deb_dist dist + docker build -t $OSM_MDG . DOCKER_ARGS="-v $(pwd):$(pwd) -w $(pwd) -u $(id -u):$(id -g) $OSM_MDG" -- 2.25.1