hudson.plugins.accurev
Class AccurevSCM

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

public class AccurevSCM
extends hudson.scm.SCM

Created by IntelliJ IDEA.

Since:
09-Oct-2007 16:17:34
Author:
connollys

Nested Class Summary
static class AccurevSCM.AccurevSCMDescriptor
           
static class AccurevSCM.AccurevServer
          Bean that contains the definition of an accurev server, as contained by the global configuration.
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
static SimpleDateFormat ACCUREV_DATETIME_FORMATTER
           
static AccurevSCM.AccurevSCMDescriptor DESCRIPTOR
           
 
Fields inherited from class hudson.scm.SCM
PERMISSIONS, TAG
 
Constructor Summary
AccurevSCM(String serverName, String depot, String stream, org.kohsuke.stapler.StaplerRequest req, boolean useReftree, String reftree, String subPath, String filterForPollSCM, boolean synctime, boolean cleanreftree, boolean useSnapshot, String snapshotNameFormat, String directoryOffset, boolean ignoreStreamParent)
          Our constructor.
 
Method Summary
 void buildEnvVars(hudson.model.AbstractBuild<?,?> build, Map<String,String> env)
          Exposes AccuRev-specific information to the environment.
 hudson.scm.SCMRevisionState calcRevisionsFromBuild(hudson.model.AbstractBuild<?,?> ab, hudson.Launcher lnchr, hudson.model.TaskListener tl)
           
 boolean checkout(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.FilePath jenkinsWorkspace, hudson.model.BuildListener listener, File changelogFile)
          
protected  hudson.scm.PollingResult compareRemoteRevisionWith(hudson.model.AbstractProject<?,?> project, hudson.Launcher launcher, hudson.FilePath workspace, hudson.model.TaskListener listener, hudson.scm.SCMRevisionState scmrs)
           
 hudson.scm.ChangeLogParser createChangeLogParser()
          
 String getDepot()
          Getter for property 'depot'.
 hudson.scm.SCMDescriptor<?> getDescriptor()
          
 String getDirectoryOffset()
          Getter for property 'directoryOffset'.
 String getFilterForPollSCM()
          Getter for property 'filterForPollSCM'.
 String getReftree()
          Getter for property 'reftree'.
 String getServerName()
          Getter for property 'serverName'.
 String getSnapshotNameFormat()
          Getter for property 'snapshotNameFormat'.
 String getStream()
          Getter for property 'stream'.
 String getSubPath()
          Getter for property 'subPath'.
 boolean isCleanreftree()
          Getter for property 'useUpdate'.
 boolean isIgnoreStreamParent()
          Getter for property 'ignoreStreamParent'.
 boolean isSynctime()
          Getter for property 'synctime'.
 boolean isUseReftree()
          Getter for property 'useRefTree'.
 boolean isUseSnapshot()
          Getter for property 'useSnapshot'.
 boolean requiresWorkspaceForPolling()
           
 
Methods inherited from class hudson.scm.SCM
_calcRevisionsFromBuild, _for, all, createEmptyChangeLog, getApi, getBrowser, getEffectiveBrowser, getModuleRoot, getModuleRoot, getModuleRoots, getModuleRoots, getType, nullify, poll, pollChanges, processWorkspaceBeforeDeletion, supportsPolling
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACCUREV_DATETIME_FORMATTER

public static final SimpleDateFormat ACCUREV_DATETIME_FORMATTER

DESCRIPTOR

@Extension
public static final AccurevSCM.AccurevSCMDescriptor DESCRIPTOR
Constructor Detail

AccurevSCM

@DataBoundConstructor
public AccurevSCM(String serverName,
                                       String depot,
                                       String stream,
                                       org.kohsuke.stapler.StaplerRequest req,
                                       boolean useReftree,
                                       String reftree,
                                       String subPath,
                                       String filterForPollSCM,
                                       boolean synctime,
                                       boolean cleanreftree,
                                       boolean useSnapshot,
                                       String snapshotNameFormat,
                                       String directoryOffset,
                                       boolean ignoreStreamParent)
Our constructor.

Method Detail

getDepot

public String getDepot()
Getter for property 'depot'.

Returns:
Value for property 'depot'.

getServerName

public String getServerName()
Getter for property 'serverName'.

Returns:
Value for property 'serverName'.

getStream

public String getStream()
Getter for property 'stream'.

Returns:
Value for property 'stream'.

getReftree

public String getReftree()
Getter for property 'reftree'.

Returns:
Value for property 'reftree'.

getSubPath

public String getSubPath()
Getter for property 'subPath'.

Returns:
Value for property 'subPath'.

getFilterForPollSCM

public String getFilterForPollSCM()
Getter for property 'filterForPollSCM'.

Returns:
Value for property 'filterForPollSCM'.

getSnapshotNameFormat

public String getSnapshotNameFormat()
Getter for property 'snapshotNameFormat'.

Returns:
Value for property 'snapshotNameFormat'.

isIgnoreStreamParent

public boolean isIgnoreStreamParent()
Getter for property 'ignoreStreamParent'.

Returns:
Value for property 'ignoreStreamParent'.

isSynctime

public boolean isSynctime()
Getter for property 'synctime'.

Returns:
Value for property 'synctime'.

isCleanreftree

public boolean isCleanreftree()
Getter for property 'useUpdate'.

Returns:
Value for property 'useUpdate'.

isUseSnapshot

public boolean isUseSnapshot()
Getter for property 'useSnapshot'.

Returns:
Value for property 'useSnapshot'.

isUseReftree

public boolean isUseReftree()
Getter for property 'useRefTree'.

Returns:
Value for property 'useRefTree'.

getDirectoryOffset

public String getDirectoryOffset()
Getter for property 'directoryOffset'.

Returns:
Value for property 'directoryOffset'.

getDescriptor

public hudson.scm.SCMDescriptor<?> getDescriptor()

Specified by:
getDescriptor in interface hudson.model.Describable<hudson.scm.SCM>
Overrides:
getDescriptor in class hudson.scm.SCM

buildEnvVars

public void buildEnvVars(hudson.model.AbstractBuild<?,?> build,
                         Map<String,String> env)
Exposes AccuRev-specific information to the environment. The following variables become available, if not null:

Overrides:
buildEnvVars in class hudson.scm.SCM
Since:
0.6.9

checkout

public boolean checkout(hudson.model.AbstractBuild<?,?> build,
                        hudson.Launcher launcher,
                        hudson.FilePath jenkinsWorkspace,
                        hudson.model.BuildListener listener,
                        File changelogFile)
                 throws IOException,
                        InterruptedException

Specified by:
checkout in class hudson.scm.SCM
Throws:
IOException
InterruptedException

createChangeLogParser

public hudson.scm.ChangeLogParser createChangeLogParser()

Specified by:
createChangeLogParser in class hudson.scm.SCM

requiresWorkspaceForPolling

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

calcRevisionsFromBuild

public hudson.scm.SCMRevisionState calcRevisionsFromBuild(hudson.model.AbstractBuild<?,?> ab,
                                                          hudson.Launcher lnchr,
                                                          hudson.model.TaskListener tl)
                                                   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 scmrs)
                                                      throws IOException,
                                                             InterruptedException
Specified by:
compareRemoteRevisionWith in class hudson.scm.SCM
Throws:
IOException
InterruptedException


Copyright © 2004-2013. All Rights Reserved.