X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=jenkins%2Ftemplate%2Fstart_build;h=43ef161088fff5e7d78d09ada234a4baffa4cd1b;hb=90d10f5dc85d577c7cec2d608b19a23120df1281;hp=2b006771cb4b3b5cbe8ea73182181c1da7a6711b;hpb=f13ff902d8cd2046fcb19c0c6a99768055fc6105;p=osm%2Fdevops.git diff --git a/jenkins/template/start_build b/jenkins/template/start_build index 2b006771..43ef1610 100755 --- a/jenkins/template/start_build +++ b/jenkins/template/start_build @@ -25,25 +25,20 @@ OSM_JENKINS=$(dirname $HERE) # SET YOU MDG repository name here export OSM_MDG=XXXX 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 INFO "starting build" - ### for start_build ### put your commands here to ### build, test and produce coverage reports +# E.G. +#make clean || FATAL "make clean failed" +#make || FATAL "make failed" +#sudo make install || FATAL "make install failed" -INFO "done" +RC=0 +INFO "done, RC=$RC" +exit $RC