User story #8889
closed
Update JGit to version > 4.0 to support pre-commit hook on configuration repository
Added by François ARMAND about 8 years ago.
Updated about 8 years ago.
Category:
System integration
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.
- Category set to System integration
- Priority changed from N/A to 3
- Target version set to 3.1.13
- Status changed from New to In progress
- Assignee set to François ARMAND
- 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
- Status changed from Pending technical review to Pending release
- % Done changed from 50 to 100
- 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.
This is also a feature users might like, is it intended to be used outside of your CI?
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 :-)
Also available in: Atom
PDF