[Jenkins] make build fail when submodule update fail

This commit is contained in:
lm 2014-03-18 14:37:23 +08:00
parent 36cfd17e7b
commit 716f480eb4
1 changed files with 3 additions and 1 deletions

View File

@ -94,7 +94,9 @@ def main():
#update submodule
git_update_submodule = "git submodule update --init --force"
os.system(git_update_submodule)
ret = os.system(git_update_submodule)
if(ret != 0):
return(1)
# Generate binding glue codes
os.system("python tools/jenkins-scripts/gen_jsb.py")