X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=jenkins%2FUI%2Fstart_build;h=a103aa8296e80338b2186667957582a8fec93613;hb=b215152e814ebf725655ac9f00dbe203cd3e7576;hp=772a3c2ee52cf282f0923b7690619ad65f0f4a07;hpb=c589cc94648320e13f826a27172b2058ac2bc539;p=osm%2Fdevops.git diff --git a/jenkins/UI/start_build b/jenkins/UI/start_build index 772a3c2e..a103aa82 100755 --- a/jenkins/UI/start_build +++ b/jenkins/UI/start_build @@ -25,24 +25,15 @@ OSM_JENKINS=$(dirname $HERE) # SET YOU MDG repository name here export OSM_MDG=UI OSM_load_config +OSM_git_checkout "$@" +trap 'WARNING "INTERRUPT"; exit 1' INT -# Here is an example for how to handle an incremental build -if [ -d $OSM_MDG ]; then - INFO "reusing existing workspace" - cd $OSM_MDG - git pull -else - INFO "cloning MDG $OSM_MDG from $OSM_GIT_URL/$OSM_MDG" - git clone $OSM_GIT_URL/$OSM_MDG - cd $OSM_MDG -fi INFO "starting build" +make clean || FATAL "Make clean failed" +./BUILD.sh -make -j16 || FATAL "Make failed" -sudo make install || FATAL "Make install Failed" - -RC=0 +RC=$? INFO "done, RC=$RC" exit $RC