User story #8889
closedUpdate JGit to version > 4.0 to support pre-commit hook on configuration repository
Description
For integration needs, it would be handy to have access to git hooks on configuration-repository.
Unfortunatly, JGit doesn't supports them until recently, and even now (jgit 4.2), it supports only three (http://zaunerc.blogspot.fr/2015/11/git-hooks-currently-supported-by-jgit.html): pre-commit, prepare-commit-msg, pre-push
These are not the most usefull for Rudder, but at least they exists.
Exceptionnaly, this feature will be introduced in LTS branch (3.1), because it is low risk, does not impact existing behaviour, and have nothing to do with node config.
Updated by François ARMAND about 8 years ago
- Category set to System integration
- Priority changed from N/A to 3
- Target version set to 3.1.13
Updated by François ARMAND about 8 years ago
- Status changed from New to In progress
- Assignee set to François ARMAND
Updated by François ARMAND about 8 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from François ARMAND to Jonathan CLARKE
- Pull Request set to https://github.com/Normation/rudder-parent-pom/pull/27
Updated by François ARMAND about 8 years ago
- Status changed from Pending technical review to Pending release
- % Done changed from 50 to 100
Applied in changeset parent-pom|08f07118a632b80a6f2ef6faa77e95919df0d55b.
Updated by Vincent MEMBRÉ about 8 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 3.1.13 and 3.2.6 which were released today.
- 3.1: Announce Changelog
- 3.2: Announce Changelog
- Download: https://www.rudder-project.org/site/get-rudder/downloads/
Updated by Florian Heigl about 8 years ago
This is also a feature users might like, is it intended to be used outside of your CI?
Updated by Jonathan CLARKE about 8 years ago
Florian Heigl wrote:
This is also a feature users might like, is it intended to be used outside of your CI?
It is not intended to be used in our CI at all :)
The JGit module is a Java library used by the Rudder Scala application to manage the git repository in /var/rudder/configuration-repository. The pre-commit hook referred to is that one - on any and all Rudder installations.
So yes, it is a feature for users :-)