|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.scm.SCM
hudson.plugins.git.GitSCM
public class GitSCM
Git SCM.
| Nested Class Summary | |
|---|---|
static class |
GitSCM.DescriptorImpl
|
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
|---|
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Field Summary | |
|---|---|
static String |
GIT_BRANCH
|
static String |
GIT_COMMIT
|
static boolean |
VERBOSE
Set to true to enable more logging to build's TaskListener. |
| Fields inherited from class hudson.scm.SCM |
|---|
PERMISSIONS, TAG |
| Constructor Summary | |
|---|---|
GitSCM(List<org.spearce.jgit.transport.RemoteConfig> repositories,
List<BranchSpec> branches,
PreBuildMergeOptions mergeOptions,
boolean doGenerateSubmoduleConfigurations,
Collection<SubmoduleConfig> submoduleCfg,
boolean clean,
boolean wipeOutWorkspace,
BuildChooser buildChooser,
GitRepositoryBrowser browser,
String gitTool,
boolean authorOrCommitter,
String relativeTargetDir,
String excludedRegions,
String excludedUsers,
String localBranch,
boolean recursiveSubmodules,
boolean pruneBranches,
String gitConfigName,
String gitConfigEmail,
boolean skipTag)
|
|
GitSCM(String repositoryUrl)
A convenience constructor that sets everything to default. |
|
| Method Summary | |
|---|---|
void |
buildEnvVars(hudson.model.AbstractBuild<?,?> build,
Map<String,String> env)
|
hudson.scm.SCMRevisionState |
calcRevisionsFromBuild(hudson.model.AbstractBuild<?,?> abstractBuild,
hudson.Launcher launcher,
hudson.model.TaskListener taskListener)
|
boolean |
checkout(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.BuildListener listener,
File changelogFile)
|
protected hudson.scm.PollingResult |
compareRemoteRevisionWith(hudson.model.AbstractProject<?,?> project,
hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.TaskListener listener,
hudson.scm.SCMRevisionState baseline)
|
hudson.scm.ChangeLogParser |
createChangeLogParser()
|
boolean |
getAuthorOrCommitter()
Use either author or committer. |
List<BranchSpec> |
getBranches()
|
GitRepositoryBrowser |
getBrowser()
|
BuildChooser |
getBuildChooser()
|
BuildData |
getBuildData(hudson.model.Run build,
boolean clone)
Look back as far as needed to find a valid BuildData. |
boolean |
getClean()
|
boolean |
getDoGenerate()
|
String |
getExcludedRegions()
|
String[] |
getExcludedRegionsNormalized()
|
String |
getExcludedUsers()
|
Set<String> |
getExcludedUsersNormalized()
|
String |
getGitConfigEmail()
|
String |
getGitConfigEmailToUse()
|
String |
getGitConfigName()
|
String |
getGitConfigNameToUse()
|
String |
getGitExe(hudson.model.Node builtOn,
hudson.model.TaskListener listener)
Exposing so that we can get this from GitPublisher. |
String |
getGitTool()
|
String |
getLocalBranch()
|
PreBuildMergeOptions |
getMergeOptions()
|
List<org.spearce.jgit.transport.RemoteConfig> |
getParamExpandedRepos(hudson.model.AbstractBuild<?,?> build)
Expand parameters in remoteRepositories with the parameter values provided in the given build
and return them. |
String |
getParamLocalBranch(hudson.model.AbstractBuild<?,?> build)
|
boolean |
getPruneBranches()
|
boolean |
getRecursiveSubmodules()
|
String |
getRelativeTargetDir()
|
List<org.spearce.jgit.transport.RemoteConfig> |
getRepositories()
|
org.spearce.jgit.transport.RemoteConfig |
getRepositoryByName(String repoName)
|
boolean |
getSkipTag()
|
Collection<SubmoduleConfig> |
getSubmoduleCfg()
|
org.spearce.jgit.transport.RemoteConfig |
getSubmoduleRepository(IGitAPI parentGit,
org.spearce.jgit.transport.RemoteConfig orig,
String name)
|
boolean |
getWipeOutWorkspace()
|
Object |
readResolve()
|
void |
setSubmoduleCfg(Collection<SubmoduleConfig> submoduleCfg)
|
protected hudson.FilePath |
workingDirectory(hudson.FilePath workspace)
Given the workspace, gets the working directory, which will be the workspace if no relative target dir is specified. |
| Methods inherited from class hudson.scm.SCM |
|---|
_calcRevisionsFromBuild, _for, all, createEmptyChangeLog, getApi, getDescriptor, getEffectiveBrowser, getModuleRoot, getModuleRoot, getModuleRoots, getModuleRoots, getType, nullify, poll, pollChanges, processWorkspaceBeforeDeletion, requiresWorkspaceForPolling, supportsPolling |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String GIT_BRANCH
public static final String GIT_COMMIT
public static boolean VERBOSE
TaskListener.
Used by various classes in this package.
| Constructor Detail |
|---|
public GitSCM(String repositoryUrl)
throws IOException
repositoryUrl - Repository URL to clone from.
IOException - exception.
@DataBoundConstructor
public GitSCM(List<org.spearce.jgit.transport.RemoteConfig> repositories,
List<BranchSpec> branches,
PreBuildMergeOptions mergeOptions,
boolean doGenerateSubmoduleConfigurations,
Collection<SubmoduleConfig> submoduleCfg,
boolean clean,
boolean wipeOutWorkspace,
BuildChooser buildChooser,
GitRepositoryBrowser browser,
String gitTool,
boolean authorOrCommitter,
String relativeTargetDir,
String excludedRegions,
String excludedUsers,
String localBranch,
boolean recursiveSubmodules,
boolean pruneBranches,
String gitConfigName,
String gitConfigEmail,
boolean skipTag)
| Method Detail |
|---|
public Collection<SubmoduleConfig> getSubmoduleCfg()
public void setSubmoduleCfg(Collection<SubmoduleConfig> submoduleCfg)
public Object readResolve()
public String getExcludedRegions()
public String[] getExcludedRegionsNormalized()
public String getExcludedUsers()
public Set<String> getExcludedUsersNormalized()
public GitRepositoryBrowser getBrowser()
getBrowser in class hudson.scm.SCMpublic String getGitConfigName()
public String getGitConfigEmail()
public String getGitConfigNameToUse()
public String getGitConfigEmailToUse()
public boolean getSkipTag()
public boolean getPruneBranches()
public boolean getWipeOutWorkspace()
public boolean getClean()
public BuildChooser getBuildChooser()
public List<org.spearce.jgit.transport.RemoteConfig> getParamExpandedRepos(hudson.model.AbstractBuild<?,?> build)
remoteRepositories with the parameter values provided in the given build
and return them.
public org.spearce.jgit.transport.RemoteConfig getRepositoryByName(String repoName)
public List<org.spearce.jgit.transport.RemoteConfig> getRepositories()
public String getGitTool()
public hudson.scm.SCMRevisionState calcRevisionsFromBuild(hudson.model.AbstractBuild<?,?> abstractBuild,
hudson.Launcher launcher,
hudson.model.TaskListener taskListener)
throws IOException,
InterruptedException
calcRevisionsFromBuild in class hudson.scm.SCMIOException
InterruptedException
public org.spearce.jgit.transport.RemoteConfig getSubmoduleRepository(IGitAPI parentGit,
org.spearce.jgit.transport.RemoteConfig orig,
String name)
throws GitException
GitException
public String getGitExe(hudson.model.Node builtOn,
hudson.model.TaskListener listener)
builtOn - Node.listener - TaskListener.public boolean getAuthorOrCommitter()
public boolean checkout(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.BuildListener listener,
File changelogFile)
throws IOException,
InterruptedException
checkout in class hudson.scm.SCMIOException
InterruptedException
public void buildEnvVars(hudson.model.AbstractBuild<?,?> build,
Map<String,String> env)
buildEnvVars in class hudson.scm.SCMpublic hudson.scm.ChangeLogParser createChangeLogParser()
createChangeLogParser in class hudson.scm.SCMpublic boolean getRecursiveSubmodules()
public boolean getDoGenerate()
public List<BranchSpec> getBranches()
public PreBuildMergeOptions getMergeOptions()
public BuildData getBuildData(hudson.model.Run build,
boolean clone)
build - build.clone - is clone.
public String getLocalBranch()
public String getParamLocalBranch(hudson.model.AbstractBuild<?,?> build)
public String getRelativeTargetDir()
protected hudson.FilePath workingDirectory(hudson.FilePath workspace)
workspace -
protected hudson.scm.PollingResult compareRemoteRevisionWith(hudson.model.AbstractProject<?,?> project,
hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.TaskListener listener,
hudson.scm.SCMRevisionState baseline)
throws IOException,
InterruptedException
compareRemoteRevisionWith in class hudson.scm.SCMIOException
InterruptedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||