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
Plan, prioritize, and estimate upcoming work by creating and configuring agile Jira boards for company-managed projects.
Learning Path
Registered Scrum Basics™
Manage work more effectively by learning scrum basics from a global leader in agile transformation and training—and get credentialed by Scrum Inc.®