try installing the exit-status-code plugin