Changes in RO jenkins jobs to support compilation of a specific GIT_COMMIT from gerrit
Change-Id: Idb0f8fa7a0ed2739349a4c7784583f2405a08e87
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
diff --git a/jenkins/RO/start_build b/jenkins/RO/start_build
index abcf789..b633679 100755
--- a/jenkins/RO/start_build
+++ b/jenkins/RO/start_build
@@ -33,14 +33,19 @@
git clone $OSM_GIT_URL/$OSM_MDG
cd $OSM_MDG
fi
+if [ $# -gt 0 ]; then
+ git checkout $1
+fi
+
INFO "starting build"
### for start_build
### put your commands here to
### build, test and produce coverage reports
-#RC=0
-RC=`python -m py_compile *.py`
+rm *.pyc
+python -m py_compile *.py
+RC=$?
INFO "done, RC=$RC"
exit $RC