Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.
/ git-cmd Public archive
forked from ashwanthkumar/git-cmd

Common module that all Go CD plugins to poll Git repository can use.

Notifications You must be signed in to change notification settings

myhelix/git-cmd

 
 

Repository files navigation

❗ This repository is no longer maintained and may contain vulnerable code. If you wish to revive it, please request a security review.

git-cmd

Maven Central

Fork of srinivasupadhya/git-cmd, maintaining it so that I can publish this to maven.


Common module that all Go CD plugins to poll Git repository can use.

Usage: Inside git-cmd project:

$ mvn clean install -DskipTests

Add Dependency (to plugin project):

<dependency>
    <groupId>in.ashwanthkumar</groupId>
    <artifactId>git-cmd</artifactId>
    <version>1.0</version>
</dependency>

Use:

GitHelper git = HelperFactory.git(gitConfig, new File(flyweightFolder));
git.cloneOrFetch();
...

HelperFactory.git(gitConfig, new File(flyweightFolder)); detects & uses git if installed else falls back on jgit implementation.

About

Common module that all Go CD plugins to poll Git repository can use.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%