hudson.plugins.googlecode.scm
Class GoogleCodeSCM

java.lang.Object
  extended by hudson.scm.SCM
      extended by hudson.plugins.googlecode.scm.GoogleCodeSCM
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.scm.SCM>

public class GoogleCodeSCM
extends hudson.scm.SCM

Source code manager that is auto configured from the GoogleCodeProjectProperty. It will create a Subversion SCM field and use it for all SCM methods. The SVN url is built using the name of the project.

Author:
Erik Ramfelt

Nested Class Summary
static class GoogleCodeSCM.DescriptorImpl
           
 
Field Summary
 
Fields inherited from class hudson.scm.SCM
PERMISSIONS, TAG
 
Constructor Summary
GoogleCodeSCM(java.lang.String directory)
           
 
Method Summary
 void buildEnvVars(hudson.model.AbstractBuild build, java.util.Map<java.lang.String,java.lang.String> env)
           
 boolean checkout(hudson.model.AbstractBuild arg0, hudson.Launcher arg1, hudson.FilePath arg2, hudson.model.BuildListener arg3, java.io.File arg4)
           
 hudson.scm.ChangeLogParser createChangeLogParser()
           
 hudson.scm.RepositoryBrowser getBrowser()
           
 hudson.scm.SCMDescriptor<?> getDescriptor()
           
 java.lang.String getDirectory()
          Returns the directory that will retrieved from the SVN repository.
 hudson.FilePath getModuleRoot(hudson.FilePath workspace)
           
 hudson.FilePath[] getModuleRoots(hudson.FilePath workspace)
           
 boolean pollChanges(hudson.model.AbstractProject arg0, hudson.Launcher arg1, hudson.FilePath arg2, hudson.model.TaskListener arg3)
           
 boolean requiresWorkspaceForPolling()
           
 boolean supportsPolling()
           
 
Methods inherited from class hudson.scm.SCM
createEmptyChangeLog, getEffectiveBrowser, nullify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GoogleCodeSCM

@DataBoundConstructor
public GoogleCodeSCM(java.lang.String directory)
Method Detail

getDirectory

public java.lang.String getDirectory()
Returns the directory that will retrieved from the SVN repository. Default is "trunk"

Returns:
the directory

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

getBrowser

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

getModuleRoot

public hudson.FilePath getModuleRoot(hudson.FilePath workspace)
Overrides:
getModuleRoot in class hudson.scm.SCM

getModuleRoots

public hudson.FilePath[] getModuleRoots(hudson.FilePath workspace)
Overrides:
getModuleRoots in class hudson.scm.SCM

requiresWorkspaceForPolling

public boolean requiresWorkspaceForPolling()
Overrides:
requiresWorkspaceForPolling in class hudson.scm.SCM

supportsPolling

public boolean supportsPolling()
Overrides:
supportsPolling in class hudson.scm.SCM

checkout

public boolean checkout(hudson.model.AbstractBuild arg0,
                        hudson.Launcher arg1,
                        hudson.FilePath arg2,
                        hudson.model.BuildListener arg3,
                        java.io.File arg4)
                 throws java.io.IOException,
                        java.lang.InterruptedException
Specified by:
checkout in class hudson.scm.SCM
Throws:
java.io.IOException
java.lang.InterruptedException

pollChanges

public boolean pollChanges(hudson.model.AbstractProject arg0,
                           hudson.Launcher arg1,
                           hudson.FilePath arg2,
                           hudson.model.TaskListener arg3)
                    throws java.io.IOException,
                           java.lang.InterruptedException
Specified by:
pollChanges 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 hudson.scm.SCMDescriptor<?> getDescriptor()
Specified by:
getDescriptor in interface hudson.model.Describable<hudson.scm.SCM>
Overrides:
getDescriptor in class hudson.scm.SCM


Copyright © 2008. All Rights Reserved.