8 jenkins-job-builder=={env:JJB_VERSION:5.0.2}
10 jenkins-jobs {posargs:--help}
12 [testenv:pre-commit-install]
17 pre-commit install --hook-type commit-msg
19 [testenv:pre-commit-uninstall]
24 pre-commit uninstall --hook-type commit-msg
31 pre-commit run --all-files --show-diff-on-failure
32 pre-commit run gitlint --hook-stage commit-msg --commit-msg-filename .git/COMMIT_EDITMSG
33 # Gitlint only proposes a pre-commit configuration for the commit-msg stage but none for the commit stage.
34 # Its default arguments --passed and --msg-filename are different from CI recommandations.
35 # As a result, the line above is always skipped in jenkins CI since there cannot be a .git/COMMIT_EDITMSG file.