X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=jenkins%2Fosmclient%2Fstart_build;h=df4fc27ac4735abf5fa88ad13f2a0342de477934;hb=79df97b6ba5e23a5969c2a2fc271f089786514a3;hp=2aaeadc9050c510c0f669b00c28f58aecfb426a1;hpb=46cac1a1f0dbdf2d6c2d7e0089d3cc099019f4a0;p=osm%2Fdevops.git diff --git a/jenkins/osmclient/start_build b/jenkins/osmclient/start_build index 2aaeadc9..df4fc27a 100755 --- a/jenkins/osmclient/start_build +++ b/jenkins/osmclient/start_build @@ -34,11 +34,17 @@ fi OSM_git_checkout "$@" -apt-get update -apt-get install -y make -make build_tools -make test -make package +apt update +apt install -y docker.io + +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"