pre-commit is a great tool and id like to incorporate it into jenkins pipelines just to make sure someone didn't try to skip it during committing to the repo.
so my questions are:
- what are the best practices to initialize pre-commit? (just initialize it as i would in the repo? the website offers examples for some other CI integrations but not jenkins)
- how can i say to jenkins to stop the build if any of the tests performed by pre-commit fails? (exit code? which one would be
success
orfail
?