hudson.plugins.git
Class GitSCM

java.lang.Object
  extended by hudson.scm.SCM
      extended by 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 Class Summary
static class GitSCM.DescriptorImpl
           
 
Field Summary
 
Fields inherited from class hudson.scm.SCM
PERMISSIONS, TAG
 
Constructor Summary
GitSCM(java.lang.String source, java.lang.String branch, boolean doMerge, boolean doGenerateSubmoduleConfigurations, java.lang.String mergeTarget, java.util.List<RemoteRepository> repositories, java.util.Collection<SubmoduleConfig> submoduleCfg, GitWeb browser)
           
 
Method Summary
 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.lang.String getBranch()
          In-repository branch to follow.
 GitWeb getBrowser()
           
 GitSCM.DescriptorImpl getDescriptor()
           
 boolean getDoGenerate()
           
 boolean getDoMerge()
           
 java.lang.String getMergeTarget()
           
 java.lang.String getRemoteMergeTarget()
           
 java.util.List<RemoteRepository> getRepositories()
           
 java.lang.String getSource()
          Gets the source repository path.
 java.util.Collection<SubmoduleConfig> getSubmoduleCfg()
           
 boolean pollChanges(hudson.model.AbstractProject project, hudson.Launcher launcher, hudson.FilePath workspace, hudson.model.TaskListener listener)
           
 void setSubmoduleCfg(java.util.Collection<SubmoduleConfig> submoduleCfg)
           
 
Methods inherited from class hudson.scm.SCM
buildEnvVars, 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
 

Constructor Detail

GitSCM

@DataBoundConstructor
public GitSCM(java.lang.String source,
                                   java.lang.String branch,
                                   boolean doMerge,
                                   boolean doGenerateSubmoduleConfigurations,
                                   java.lang.String mergeTarget,
                                   java.util.List<RemoteRepository> repositories,
                                   java.util.Collection<SubmoduleConfig> submoduleCfg,
                                   GitWeb browser)
Method Detail

getSubmoduleCfg

public java.util.Collection<SubmoduleConfig> getSubmoduleCfg()

setSubmoduleCfg

public void setSubmoduleCfg(java.util.Collection<SubmoduleConfig> submoduleCfg)

getSource

public java.lang.String getSource()
Gets the source repository path. Either URL or local file path.


getBranch

public java.lang.String getBranch()
In-repository branch to follow. Null indicates "default".


getBrowser

public GitWeb getBrowser()
Overrides:
getBrowser in class hudson.scm.SCM

getRepositories

public java.util.List<RemoteRepository> 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

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

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

getDoMerge

public boolean getDoMerge()

getDoGenerate

public boolean getDoGenerate()

getMergeTarget

public java.lang.String getMergeTarget()

getRemoteMergeTarget

public java.lang.String getRemoteMergeTarget()


Copyright © 2008. All Rights Reserved.