public class GitSCMProxy extends Object
GitSCM
. Uses Reflections to
implement version-dependant functions without causing compiler and/or runtime errors.Modifier and Type | Field and Description |
---|---|
static hudson.util.VersionNumber |
MINIMAL_VERSION_NUMBER |
Constructor and Description |
---|
GitSCMProxy(hudson.model.AbstractBuild<?,?> build)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
org.jenkinsci.plugins.gitclient.GitClient |
createClient(hudson.model.AbstractBuild<?,?> build,
hudson.model.BuildListener listener)
Creates and returns a new
GitClient instance. |
public static final hudson.util.VersionNumber MINIMAL_VERSION_NUMBER
public GitSCMProxy(hudson.model.AbstractBuild<?,?> build) throws IOException
build
- the build that is in progress.IOException
- if the version of the Git plugin is not supported.public org.jenkinsci.plugins.gitclient.GitClient createClient(hudson.model.AbstractBuild<?,?> build, hudson.model.BuildListener listener) throws IOException, InterruptedException
GitClient
instance.build
- the build that is in progress.listener
- can be used to send any message.GitClient
instance.IOException
- if an error occurs that causes/should cause the build to fail.InterruptedException
- if the build is interrupted during execution.Copyright © 2014–2017 Silpion IT-Solutions GmbH. All rights reserved.