X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=jenkins%2Fosmclient%2Fstart_build;h=2206a1a7fc05a9f8c20cdd1c3d4214a03b3b41dc;hb=d235f50e80677afa48fb990e0712266592549bc1;hp=df4fc27ac4735abf5fa88ad13f2a0342de477934;hpb=9829cae3e6c071bde28a69d5411bb895d967f010;p=osm%2Fdevops.git 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"