I've trying to find some simple examples of how to use Jenkins git client plugin without much luck. I am not importing the git-client-plugin properly when I run execute a groovy script (using the groovy plugin).
import org.jenkinsci.plugins.gitclient; import hudson.EnvVars; import hudson.util.StreamTaskListener; StreamTaskListener stl = new StreamTaskListener(); EnvVars env = new EnvVars(); GitClient git = Git.with(stl, env) .in('tbd') .getClient(); This is the error I am getting when I run the groovy script. The classes in hudson are being imported fine.
startup failed: Script1.groovy: 1: unable to resolve class org.jenkinsci.plugins.gitclient @ line 1, column 1. import org.jenkinsci.plugins.gitclient; ^ What changes would I need to make to import git client?
org.jenkinsci.plugins.gitclientis only the beginning of some package.import org.jenkinsci.plugins.gitclient.GitClient.