hudson.scm
类 BlameSubversionSCM

java.lang.Object
  继承者 hudson.scm.SCM
      继承者 hudson.scm.BlameSubversionSCM
所有已实现的接口:
hudson.ExtensionPoint, hudson.model.Describable<hudson.scm.SCM>, java.io.Serializable

public class BlameSubversionSCM
extends hudson.scm.SCM
implements java.io.Serializable

Blame Subversion SCM. Modify: changed by tang

作者:
tang,Kohsuke Kawaguchi
另请参见:
序列化表格

嵌套类摘要
static class BlameSubversionSCM.DescriptorImpl
           
static class BlameSubversionSCM.ModuleLocation
          small structure to store local and remote (repository) location information of the repository.
static class BlameSubversionSCM.SvnInfo
           
 
从接口 hudson.ExtensionPoint 继承的嵌套类/接口
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
字段摘要
static int DEFAULT_TIMEOUT
          Network timeout in milliseconds.
 
从类 hudson.scm.SCM 继承的字段
PERMISSIONS, TAG
 
构造方法摘要
BlameSubversionSCM(boolean alwaysCollectSVNInfo)
           
 
方法摘要
 void buildEnvVars(hudson.model.AbstractBuild<?,?> build, java.util.Map<java.lang.String,java.lang.String> env)
          Sets the SVN_REVISION environment variable during the build.
 hudson.scm.SCMRevisionState calcRevisionsFromBuild(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.TaskListener listener)
           
 boolean checkout(hudson.model.AbstractBuild build, hudson.Launcher launcher, hudson.FilePath workspace, hudson.model.BuildListener listener, java.io.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()
           
static org.tmatesoft.svn.core.wc.SVNClientManager createSvnClientManager(hudson.model.AbstractProject context)
          Creates SVNClientManager for code running on the master.
static org.tmatesoft.svn.core.wc.SVNClientManager createSvnClientManager(org.tmatesoft.svn.core.auth.ISVNAuthenticationProvider authProvider)
          Creates SVNClientManager.
static void enableSshDebug(java.util.logging.Level level)
          Enables trace logging of Ganymed SSH library.
 boolean getAlwaysCollectSVNInfo()
           
 BlameSubversionSCM.DescriptorImpl getDescriptor()
           
 java.lang.String getExcludedCommitMessages()
           
 java.lang.String[] getExcludedCommitMessagesNormalized()
           
 java.lang.String getExcludedRegions()
           
 java.lang.String[] getExcludedRegionsNormalized()
           
 java.lang.String getExcludedRevprop()
           
 java.lang.String getExcludedUsers()
           
 java.util.Set<java.lang.String> getExcludedUsersNormalized()
           
 java.lang.String getIncludedRegions()
           
 java.lang.String[] getIncludedRegionsNormalized()
           
 BlameSubversionSCM.ModuleLocation[] getLocations()
          list of all configured svn locations
 BlameSubversionSCM.ModuleLocation[] getLocations(hudson.model.AbstractBuild<?,?> build)
          list of all configured svn locations, expanded according to build parameters values;
 hudson.FilePath getModuleRoot(hudson.FilePath workspace)
           
 hudson.FilePath[] getModuleRoots(hudson.FilePath workspace)
           
 java.lang.String getModules()
          已过时。 as of 1.91. Use getLocations() instead.
static java.io.File getRevisionFile(hudson.model.AbstractBuild build)
          Gets the file that stores the revision.
static void init()
           
 boolean isDoRevert()
           
 boolean isUseUpdate()
           
 boolean repositoryLocationsNoLongerExist(hudson.model.AbstractBuild<?,?> build, hudson.model.TaskListener listener)
           
 boolean requiresWorkspaceForPolling()
          Polling can happen on the master and does not require a workspace.
 
从类 hudson.scm.SCM 继承的方法
_calcRevisionsFromBuild, _for, all, createEmptyChangeLog, getApi, getBrowser, getEffectiveBrowser, getType, nullify, poll, pollChanges, processWorkspaceBeforeDeletion, supportsPolling
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

DEFAULT_TIMEOUT

public static int DEFAULT_TIMEOUT
Network timeout in milliseconds. The main point of this is to prevent infinite hang, so it should be a rather long value to avoid accidental time out problem.

构造方法详细信息

BlameSubversionSCM

@DataBoundConstructor
public BlameSubversionSCM(boolean alwaysCollectSVNInfo)
方法详细信息

getAlwaysCollectSVNInfo

public boolean getAlwaysCollectSVNInfo()

getModules

public java.lang.String getModules()
已过时。 as of 1.91. Use getLocations() instead.


getLocations

@Exported
public BlameSubversionSCM.ModuleLocation[] getLocations()
list of all configured svn locations

从以下版本开始:
1.91

getLocations

public BlameSubversionSCM.ModuleLocation[] getLocations(hudson.model.AbstractBuild<?,?> build)
list of all configured svn locations, expanded according to build parameters values;

参数:
build - If non-null, variable expansions are performed against the build parameters.
从以下版本开始:
1.252

isUseUpdate

@Exported
public boolean isUseUpdate()

isDoRevert

@Exported
public boolean isDoRevert()

getExcludedRegions

@Exported
public java.lang.String getExcludedRegions()

getExcludedRegionsNormalized

public java.lang.String[] getExcludedRegionsNormalized()

getIncludedRegions

@Exported
public java.lang.String getIncludedRegions()

getIncludedRegionsNormalized

public java.lang.String[] getIncludedRegionsNormalized()

getExcludedUsers

@Exported
public java.lang.String getExcludedUsers()

getExcludedUsersNormalized

public java.util.Set<java.lang.String> getExcludedUsersNormalized()

getExcludedRevprop

@Exported
public java.lang.String getExcludedRevprop()

getExcludedCommitMessages

@Exported
public java.lang.String getExcludedCommitMessages()

getExcludedCommitMessagesNormalized

public java.lang.String[] getExcludedCommitMessagesNormalized()

buildEnvVars

public void buildEnvVars(hudson.model.AbstractBuild<?,?> build,
                         java.util.Map<java.lang.String,java.lang.String> env)
Sets the SVN_REVISION environment variable during the build.

覆盖:
hudson.scm.SCM 中的 buildEnvVars

requiresWorkspaceForPolling

public boolean requiresWorkspaceForPolling()
Polling can happen on the master and does not require a workspace.

覆盖:
hudson.scm.SCM 中的 requiresWorkspaceForPolling

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
指定者:
hudson.scm.SCM 中的 checkout
抛出:
java.io.IOException
java.lang.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 java.io.IOException,
                                                             java.lang.InterruptedException
指定者:
hudson.scm.SCM 中的 compareRemoteRevisionWith
抛出:
java.io.IOException
java.lang.InterruptedException

createSvnClientManager

public static org.tmatesoft.svn.core.wc.SVNClientManager createSvnClientManager(org.tmatesoft.svn.core.auth.ISVNAuthenticationProvider authProvider)
Creates SVNClientManager.

This method must be executed on the slave where svn operations are performed.

参数:
authProvider - The value obtained from BlameSubversionSCM.DescriptorImpl.createAuthenticationProvider(AbstractProject) . If the operation runs on slaves, (and properly remoted, if the svn operations run on slaves.)

createSvnClientManager

public static org.tmatesoft.svn.core.wc.SVNClientManager createSvnClientManager(hudson.model.AbstractProject context)
Creates SVNClientManager for code running on the master.

CAUTION: this code only works when invoked on master. On slaves, use createSvnClientManager(ISVNAuthenticationProvider) and get ISVNAuthenticationProvider from the master via remoting.


getRevisionFile

public static java.io.File getRevisionFile(hudson.model.AbstractBuild build)
Gets the file that stores the revision.


calcRevisionsFromBuild

public hudson.scm.SCMRevisionState calcRevisionsFromBuild(hudson.model.AbstractBuild<?,?> build,
                                                          hudson.Launcher launcher,
                                                          hudson.model.TaskListener listener)
                                                   throws java.io.IOException,
                                                          java.lang.InterruptedException
指定者:
hudson.scm.SCM 中的 calcRevisionsFromBuild
抛出:
java.io.IOException
java.lang.InterruptedException

createChangeLogParser

public hudson.scm.ChangeLogParser createChangeLogParser()
指定者:
hudson.scm.SCM 中的 createChangeLogParser

getDescriptor

public BlameSubversionSCM.DescriptorImpl getDescriptor()
指定者:
接口 hudson.model.Describable<hudson.scm.SCM> 中的 getDescriptor
覆盖:
hudson.scm.SCM 中的 getDescriptor

getModuleRoot

public hudson.FilePath getModuleRoot(hudson.FilePath workspace)
覆盖:
hudson.scm.SCM 中的 getModuleRoot

getModuleRoots

public hudson.FilePath[] getModuleRoots(hudson.FilePath workspace)
覆盖:
hudson.scm.SCM 中的 getModuleRoots

repositoryLocationsNoLongerExist

public boolean repositoryLocationsNoLongerExist(hudson.model.AbstractBuild<?,?> build,
                                                hudson.model.TaskListener listener)

init

public static void init()

enableSshDebug

public static void enableSshDebug(java.util.logging.Level level)
Enables trace logging of Ganymed SSH library.

Intended to be invoked from Groovy console.



Copyright © 2010. All Rights Reserved.