X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=jenkins%2FUI%2Fstart_build;h=50b2e06d744c7f642da60f8ea37e62ba96e22260;hb=8f83069696a74f3fc9272a5c65d5e75e923e7ff9;hp=b05a7e26b182f8dcd3ae973caf0965197228f740;hpb=9713ede3423f7f53bc52cc8b8c7f6eb601b6d30b;p=osm%2Fdevops.git diff --git a/jenkins/UI/start_build b/jenkins/UI/start_build index b05a7e26..50b2e06d 100755 --- a/jenkins/UI/start_build +++ b/jenkins/UI/start_build @@ -25,36 +25,15 @@ OSM_JENKINS=$(dirname $HERE) # SET YOU MDG repository name here export OSM_MDG=UI OSM_load_config +OSM_git_checkout "$@" -# 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 - -if [ $# -gt 0 ]; then - INFO "Code to compile: gerrit refspec '$1', commit-id: '$2'" - git fetch origin $1 || FATAL "git fetch origin '$1' didn't work" - git checkout -f $2 || FATAL "git checkout -f '$2' didn't work" -else - INFO "Code to compile: master" - git checkout master -fi - INFO "starting build" make clean || FATAL "Make clean failed" make -j16 || FATAL "Make failed" sudo make install || FATAL "Make install Failed" -RC=0 - -INFO "done, RC=$RC" -exit $RC +INFO "build done" +exit 0