hudson.plugins.git
Class GitSCM
java.lang.Object
hudson.scm.SCM
hudson.plugins.git.GitSCM
- All Implemented Interfaces:
- hudson.ExtensionPoint, hudson.model.Describable<hudson.scm.SCM>, java.io.Serializable
public class GitSCM
- extends hudson.scm.SCM
- implements java.io.Serializable
Git SCM.
- Author:
- Nigel Magnay
- See Also:
- Serialized Form
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Fields inherited from class hudson.scm.SCM |
PERMISSIONS, TAG |
|
Constructor Summary |
GitSCM(java.util.List<org.spearce.jgit.transport.RemoteConfig> repositories,
java.util.List<BranchSpec> branches,
PreBuildMergeOptions mergeOptions,
boolean doGenerateSubmoduleConfigurations,
java.util.Collection<SubmoduleConfig> submoduleCfg,
boolean clean,
java.lang.String choosingStrategy,
GitWeb browser)
|
|
Method Summary |
void |
buildEnvVars(hudson.model.AbstractBuild build,
java.util.Map<java.lang.String,java.lang.String> env)
|
boolean |
checkout(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.BuildListener listener,
java.io.File changelogFile)
|
hudson.scm.ChangeLogParser |
createChangeLogParser()
|
java.util.List<BranchSpec> |
getBranches()
|
GitWeb |
getBrowser()
|
BuildData |
getBuildData(hudson.model.Run build,
boolean clone)
Look back as far as needed to find a valid BuildData. |
java.lang.String |
getChoosingStrategy()
|
boolean |
getClean()
|
GitSCM.DescriptorImpl |
getDescriptor()
|
boolean |
getDoGenerate()
|
PreBuildMergeOptions |
getMergeOptions()
|
java.util.List<org.spearce.jgit.transport.RemoteConfig> |
getRepositories()
|
java.util.Collection<SubmoduleConfig> |
getSubmoduleCfg()
|
org.spearce.jgit.transport.RemoteConfig |
getSubmoduleRepository(org.spearce.jgit.transport.RemoteConfig orig,
java.lang.String name)
|
boolean |
pollChanges(hudson.model.AbstractProject project,
hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.TaskListener listener)
|
java.lang.Object |
readResolve()
|
void |
setSubmoduleCfg(java.util.Collection<SubmoduleConfig> submoduleCfg)
|
| Methods inherited from class hudson.scm.SCM |
_for, all, createEmptyChangeLog, getEffectiveBrowser, getModuleRoot, getModuleRoots, nullify, processWorkspaceBeforeDeletion, requiresWorkspaceForPolling, supportsPolling |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT
public static final java.lang.String DEFAULT
- See Also:
- Constant Field Values
GERRIT
public static final java.lang.String GERRIT
- See Also:
- Constant Field Values
GIT_BRANCH
public static final java.lang.String GIT_BRANCH
- See Also:
- Constant Field Values
GitSCM
@DataBoundConstructor
public GitSCM(java.util.List<org.spearce.jgit.transport.RemoteConfig> repositories,
java.util.List<BranchSpec> branches,
PreBuildMergeOptions mergeOptions,
boolean doGenerateSubmoduleConfigurations,
java.util.Collection<SubmoduleConfig> submoduleCfg,
boolean clean,
java.lang.String choosingStrategy,
GitWeb browser)
getSubmoduleCfg
public java.util.Collection<SubmoduleConfig> getSubmoduleCfg()
setSubmoduleCfg
public void setSubmoduleCfg(java.util.Collection<SubmoduleConfig> submoduleCfg)
readResolve
public java.lang.Object readResolve()
getBrowser
public GitWeb getBrowser()
- Overrides:
getBrowser in class hudson.scm.SCM
getClean
public boolean getClean()
getChoosingStrategy
public java.lang.String getChoosingStrategy()
getRepositories
public java.util.List<org.spearce.jgit.transport.RemoteConfig> getRepositories()
pollChanges
public boolean pollChanges(hudson.model.AbstractProject project,
hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.TaskListener listener)
throws java.io.IOException,
java.lang.InterruptedException
- Specified by:
pollChanges in class hudson.scm.SCM
- Throws:
java.io.IOException
java.lang.InterruptedException
getSubmoduleRepository
public org.spearce.jgit.transport.RemoteConfig getSubmoduleRepository(org.spearce.jgit.transport.RemoteConfig orig,
java.lang.String name)
throws java.net.URISyntaxException
- Throws:
java.net.URISyntaxException
checkout
public boolean checkout(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.BuildListener listener,
java.io.File changelogFile)
throws java.io.IOException,
java.lang.InterruptedException
- Specified by:
checkout in class hudson.scm.SCM
- Throws:
java.io.IOException
java.lang.InterruptedException
buildEnvVars
public void buildEnvVars(hudson.model.AbstractBuild build,
java.util.Map<java.lang.String,java.lang.String> env)
- Overrides:
buildEnvVars in class hudson.scm.SCM
createChangeLogParser
public hudson.scm.ChangeLogParser createChangeLogParser()
- Specified by:
createChangeLogParser in class hudson.scm.SCM
getDescriptor
public GitSCM.DescriptorImpl getDescriptor()
- Specified by:
getDescriptor in interface hudson.model.Describable<hudson.scm.SCM>- Overrides:
getDescriptor in class hudson.scm.SCM
getDoGenerate
public boolean getDoGenerate()
getBranches
public java.util.List<BranchSpec> getBranches()
getMergeOptions
public PreBuildMergeOptions getMergeOptions()
getBuildData
public BuildData getBuildData(hudson.model.Run build,
boolean clone)
- Look back as far as needed to find a valid BuildData. BuildData
may not be recorded if an exception occurs in the plugin logic.
- Parameters:
build - clone -
- Returns:
- the last recorded build data
Copyright © 2010. All Rights Reserved.