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=refs%2Fchanges%2F48%2F1948%2F1;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"