Disable stage3 in branch WIM
[osm/devops.git] / jenkins / SO / start_build
index 85d2ca7..a672e14 100755 (executable)
@@ -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=$?