title: How to trigger a job, If the currently running job failed?
body: <p>In my task I need to trigger a same job if its current build failed. 
  I don't want the trigger if the build got succeeded.</p>
  
  <p>Is there any plugins or any other method available to do this task?</p>