title: Jenkins build succeeds even if post build script fails
body: <p>I have created a jenkins build with a maven project. It build the jar using maven from a git repository and after that executes a post build script. The jar building is successful but sometimes, the post build script fails. Even after the failure of post build script, the whole jenkins build is marked as Successful. Why is it so ?</p>
  
  <p>I want the jenkins build to be marked as failure even if the post build script fails. </p>
  
  <p>Anything that I need to do ?</p>