I am running batch of collections via newman out of which few are failing due to assertion error. So I expect jenkins job to have unstable status at the end because of assertion failures but instead jenkins job is throwing success status.
How can I update Jenkins status to provide unstable status if any collection fails due to assertion error.