diff --git a/jenkins-sflphone-android.sh b/jenkins-sflphone-android.sh
index 835067d2dc6d60e25c8a2dce8146914e107c8389..8fcd7d72e5a3de576ac30b2c39be59b217dd1c72 100755
--- a/jenkins-sflphone-android.sh
+++ b/jenkins-sflphone-android.sh
@@ -120,7 +120,10 @@ retrieve_screenshots() {
 
 build_sflphone_android() {
 
+
     echo "----------------- Cleaning git tree"
+    git checkout master
+    git pull
     # get rid of any local modifications to git submodule
     git submodule update
     pushd jni/sflphone