X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=jenkins%2Fosmclient%2Fstart_build;h=155fefab6850028b4a4f6c8164aec60e480b728f;hb=fc82cca2839aa68966cf3a14d25f91cad391c88b;hp=df4fc27ac4735abf5fa88ad13f2a0342de477934;hpb=6acd4dc92567bc7b4fab71399cb800afd10c6dea;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"