X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=jenkins%2Fosmclient%2Fstart_build;h=155fefab6850028b4a4f6c8164aec60e480b728f;hb=85dc239b834cfe437455d0bb815c667ca905edc6;hp=2aaeadc9050c510c0f669b00c28f58aecfb426a1;hpb=46cac1a1f0dbdf2d6c2d7e0089d3cc099019f4a0;p=osm%2Fdevops.git diff --git a/jenkins/osmclient/start_build b/jenkins/osmclient/start_build index 2aaeadc9..155fefab 100755 --- a/jenkins/osmclient/start_build +++ b/jenkins/osmclient/start_build @@ -35,10 +35,20 @@ fi OSM_git_checkout "$@" apt-get update -apt-get install -y make -make build_tools -make test -make package +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" + +if [ -n "$NOTEST" ]; then + docker run $DOCKER_ARGS /bin/bash -c "./docker_command.sh $(id -u -n) $(id -g -n) tox" +fi + +docker run $DOCKER_ARGS /bin/bash -c "./docker_command.sh $(id -u -n) $(id -g -n) tox -e build" RC=$? INFO "done, RC=$RC"