I am using the Stash add-on 'Stash Webhook to Jenkins' to trigger a Jenkins build when a developer pushes his code to a feature branch.
I want to reset to the previous commit if the Jenkins build fails. Only if the build succeeds the push should take place. Is there any add-on available for this or any other way?