I am using stash add-on 'Stash Webhook to Jenkins' to trigger Jenkins build when developer push his code to feature branch.
I want to reset to the previous commit if Jenkins build fail and if build succeed then only push should take place. Is there any add-on available for this or any other way?
Your opinion and help on this will really be appreciated.
Recommended Learning For You
Level up your skills with Atlassian learning
Learning Path
Apply agile practices
Transform how you manage your work with agile practices, including kanban and scrum frameworks.
Learning Path
Configure agile boards for Jira projects
Learn how to create and configure agile Jira boards so you can plan, prioritize, and estimate upcoming work.
Jira Essentials with Agile Mindset
Suitable for beginners, this live instructor-led full-day course will set up your whole team to understand how to use Jira with an agile methodology.