[SEBA-479] Correctly running migrations for the core

Change-Id: Ic50e3c8a3ef967b9ed54dcbed901dcd301bc23eb
diff --git a/jjb/shell/xos-unit.sh b/jjb/shell/xos-unit.sh
index 9203a62..8ddc9d9 100644
--- a/jjb/shell/xos-unit.sh
+++ b/jjb/shell/xos-unit.sh
@@ -36,7 +36,11 @@
 fi
 
 echo "Checking Migrations"
-xos-migrate -r $WORKSPACE/cord -s $GERRIT_PROJECT --check -v
+if [ "$GERRIT_PROJECT" = 'xos' ] ; then
+  xos-migrate -r $WORKSPACE/cord -s core --check
+else
+  xos-migrate -r $WORKSPACE/cord -s $GERRIT_PROJECT --check
+fi
 
 echo "Performing nose2 tests"
 nose2 --verbose --coverage-report xml --coverage-report term --junit-xml