In case of build error, the unittest fail, but the junit-report with the set-exit-code flag on returns status code 0. This commit will make it return the right status code.