title: Additional feature for Post build task Jenkins
body: <p>Is there a way to check the error log and, in particular, the number of consecutive failures and then integrate the post build task in the Jenkins job? </p>
  
  <p>I want to integrate the <strong>Pagerduty</strong> plugin after my job failure under some specific conditions.</p>