X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=jenkins%2Fosmclient%2Fstart_build;h=155fefab6850028b4a4f6c8164aec60e480b728f;hb=21ba9cee5d08c89b1f48c6fdfc83e04ec192f6a6;hp=df4fc27ac4735abf5fa88ad13f2a0342de477934;hpb=9829cae3e6c071bde28a69d5411bb895d967f010;p=osm%2Fdevops.git diff --git a/jenkins/osmclient/start_build b/jenkins/osmclient/start_build index df4fc27a..155fefab 100755 --- a/jenkins/osmclient/start_build +++ b/jenkins/osmclient/start_build @@ -34,8 +34,12 @@ fi OSM_git_checkout "$@" -apt update -apt install -y docker.io +apt-get update +apt-get 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"