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