I've trying to find some simple examples of how to use Jenkins git client
plugin without much luck.
Git client is installed, but I am not importing the git-client-plugin
properly when I run execute a system groovy script (using the groovy
plugin).
import org.jenkinsci.plugins.gitclient.GitClient; //Problem
import hudson.EnvVars;
import hudson.util.StreamTaskListener;
StreamTaskListener stl = new StreamTaskListener();
EnvVars env = new EnvVars();
GitClient gitTest = Git.with(tl, env)
.in('tbd')
.using(gitExe) // only if you want to use Git CLI
.getClient();
The error I am getting is "Script1.groovy: 1: unable to resolve class
org.jenkinsci.plugins.gitclient.GitClient".
How do I import it properly?
Are there any examples I can follow?
Thanks for your time!
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.