From: Mike Marchetti Date: Mon, 19 Jun 2017 21:20:42 +0000 (-0400) Subject: cleanup deb pre-existing builds X-Git-Tag: v2.0.2~8 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=7a74772ace6ca83bd7795d3251960ba16c57f90d;p=osm%2Fdevops.git cleanup deb pre-existing builds Change-Id: Ic91ef2d5fd65b3a45e449c84afe9d5877d065720 Signed-off-by: Mike Marchetti --- 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"