[Jenkins][ci skip]: Fix return value of git fail
Merge pull request #6173 from lmskater/fix-git-fail-return-value

[Jenkins][ci skip]: Modified the return value when git fails, it's used for `ci rebuild`