Updating scripts with coArchi jGit lib

Started by CD, September 18, 2024, 16:54:51 PM

Previous topic - Next topic

CD

Hello,

I need to develop a script to update local scripts available on a GitLab or GitHub private project.

Knowing that the local scripts/ folder is not a Git repository, is it possible to call the git libraries present in the coArchi plugin (including the user's coArchi credentials) so that my new script can do a git clone or a git pull of the GitLab/GitHub project?

The goal is that my users do not have to install Git on the PC in order to update their scripts.

Thanking you in advance for your advices.
Kind regards
CD

Phil Beauvoir

Hi, coArchi uses JGit which is a Java implementation of Git. For your use case it wouldn't be suitable unless you really knew how to use it using Java. It would be easier to use native Git.
If you value and use Archi, please consider making a donation!
Ask your ArchiMate related questions to the ArchiMate Community's Discussion Board.