Adding cluster-issuer annotation for TLS provisioning
[osm/devops.git] / jenkins / template / start_build
index 2b00677..43ef161 100755 (executable)
@@ -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