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
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from class hudson.scm.SCM
PERMISSIONS, TAG
 
Constructor Summary
GoogleCodeSCM(String directory)
           
 
Method Summary
 void buildEnvVars(hudson.model.AbstractBuild<?,?> build, Map<String,String> env)
           
 hudson.scm.SCMRevisionState calcRevisionsFromBuild(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.TaskListener listener)
           
 boolean checkout(hudson.model.AbstractBuild arg0, hudson.Launcher arg1, hudson.FilePath arg2, hudson.model.BuildListener arg3, File arg4)
           
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()
           
 hudson.scm.RepositoryBrowser getBrowser()
           
 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
_calcRevisionsFromBuild, _for, all, createEmptyChangeLog, getApi, getDescriptor, getEffectiveBrowser, getModuleRoot, getModuleRoots, getType, nullify, poll, processWorkspaceBeforeDeletion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GoogleCodeSCM

@DataBoundConstructor
public GoogleCodeSCM(String directory)
Method Detail

getDirectory

public 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,
                         Map<String,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

calcRevisionsFromBuild

public hudson.scm.SCMRevisionState calcRevisionsFromBuild(hudson.model.AbstractBuild<?,?> build,
                                                          hudson.Launcher launcher,
                                                          hudson.model.TaskListener listener)
                                                   throws IOException,
                                                          InterruptedException
Specified by:
calcRevisionsFromBuild in class hudson.scm.SCM
Throws:
IOException
InterruptedException

compareRemoteRevisionWith

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
Specified by:
compareRemoteRevisionWith in class hudson.scm.SCM
Throws:
IOException
InterruptedException

checkout

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

pollChanges

public boolean pollChanges(hudson.model.AbstractProject arg0,
                           hudson.Launcher arg1,
                           hudson.FilePath arg2,
                           hudson.model.TaskListener arg3)
                    throws IOException,
                           InterruptedException
Overrides:
pollChanges in class hudson.scm.SCM
Throws:
IOException
InterruptedException

createChangeLogParser

public hudson.scm.ChangeLogParser createChangeLogParser()
Specified by:
createChangeLogParser in class hudson.scm.SCM


Copyright © 2004-2012. All Rights Reserved.