X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=jenkins%2FSO%2Fstart_build;h=a672e149fc35d1443ee28d4e13986eca82833295;hb=3cc0316794cc75ecffdf2b969b4ad98d0dd7e826;hp=85d2ca7c318b7325c0beaaed259134a0d0e2aecf;hpb=56ad727c350e330679fbc03a633c7f96f4ddbbc7;p=osm%2Fdevops.git diff --git a/jenkins/SO/start_build b/jenkins/SO/start_build index 85d2ca7c..a672e149 100755 --- a/jenkins/SO/start_build +++ b/jenkins/SO/start_build @@ -25,24 +25,12 @@ OSM_JENKINS=$(dirname $HERE) # SET YOU MDG repository name here export OSM_MDG=SO 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" - -### for start_build -### put your commands here to -### build, test and produce coverage reports - +make clean || FATAL "make clean failed" ./BUILD.sh RC=$?