net.praqma.jenkins.configrotator
Class ConfigurationRotator

java.lang.Object
  extended by hudson.scm.SCM
      extended by net.praqma.jenkins.configrotator.ConfigurationRotator
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.scm.SCM>

public class ConfigurationRotator
extends hudson.scm.SCM


Nested Class Summary
static class ConfigurationRotator.ResultType
           
static class ConfigurationRotator.RotatorDescriptor
           
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
static String FEED_DIR
           
 boolean justConfigured
           
static String LOGGERNAME
           
static String NAME
           
 boolean reconfigure
          Determines whether a new configuration has been entered.
static String SEPARATOR
           
static String URL_NAME
           
 
Fields inherited from class hudson.scm.SCM
PERMISSIONS, TAG
 
Constructor Summary
ConfigurationRotator(AbstractConfigurationRotatorSCM acrs)
           
 
Method Summary
 hudson.scm.SCMRevisionState calcRevisionsFromBuild(hudson.model.AbstractBuild<?,?> arg0, hudson.Launcher arg1, hudson.model.TaskListener arg2)
           
 boolean checkout(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.FilePath workspace, hudson.model.BuildListener listener, File file)
           
protected  hudson.scm.PollingResult compareRemoteRevisionWith(hudson.model.AbstractProject<?,?> project, hudson.Launcher launcher, hudson.FilePath workspace, hudson.model.TaskListener listener, hudson.scm.SCMRevisionState arg4)
           
 hudson.scm.ChangeLogParser createChangeLogParser()
          Delegate the change log parser to abstract subtypes.
 boolean doReconfigure()
           
 void ensurePublisher(hudson.model.AbstractBuild build)
           
 AbstractConfigurationRotatorSCM getAcrs()
           
static File getFeedPath()
           
 void setConfigurationByAction(hudson.model.AbstractProject<?,?> project, ConfigurationRotatorBuildAction action)
           
 void setReconfigure(boolean reconfigure)
           
 
Methods inherited from class hudson.scm.SCM
_calcRevisionsFromBuild, _for, all, buildEnvVars, createEmptyChangeLog, getApi, getBrowser, getDescriptor, getEffectiveBrowser, getModuleRoot, getModuleRoot, getModuleRoots, getModuleRoots, getType, nullify, poll, pollChanges, processWorkspaceBeforeDeletion, requiresWorkspaceForPolling, supportsPolling
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

URL_NAME

public static final String URL_NAME
See Also:
Constant Field Values

NAME

public static final String NAME
See Also:
Constant Field Values

LOGGERNAME

public static final String LOGGERNAME
See Also:
Constant Field Values

justConfigured

public boolean justConfigured

SEPARATOR

public static final String SEPARATOR

FEED_DIR

public static final String FEED_DIR

reconfigure

public boolean reconfigure
Determines whether a new configuration has been entered. If true, the input is new.

Constructor Detail

ConfigurationRotator

@DataBoundConstructor
public ConfigurationRotator(AbstractConfigurationRotatorSCM acrs)
Method Detail

getFeedPath

public static final File getFeedPath()

getAcrs

public AbstractConfigurationRotatorSCM getAcrs()

doReconfigure

public boolean doReconfigure()

setReconfigure

public void setReconfigure(boolean reconfigure)

calcRevisionsFromBuild

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

checkout

public boolean checkout(hudson.model.AbstractBuild<?,?> build,
                        hudson.Launcher launcher,
                        hudson.FilePath workspace,
                        hudson.model.BuildListener listener,
                        File file)
                 throws IOException,
                        InterruptedException
Specified by:
checkout in class hudson.scm.SCM
Throws:
IOException
InterruptedException

ensurePublisher

public void ensurePublisher(hudson.model.AbstractBuild build)
                     throws IOException
Throws:
IOException

setConfigurationByAction

public void setConfigurationByAction(hudson.model.AbstractProject<?,?> project,
                                     ConfigurationRotatorBuildAction action)
                              throws IOException
Throws:
IOException

compareRemoteRevisionWith

protected hudson.scm.PollingResult compareRemoteRevisionWith(hudson.model.AbstractProject<?,?> project,
                                                             hudson.Launcher launcher,
                                                             hudson.FilePath workspace,
                                                             hudson.model.TaskListener listener,
                                                             hudson.scm.SCMRevisionState arg4)
                                                      throws IOException,
                                                             InterruptedException
Specified by:
compareRemoteRevisionWith in class hudson.scm.SCM
Throws:
IOException
InterruptedException

createChangeLogParser

public hudson.scm.ChangeLogParser createChangeLogParser()
Delegate the change log parser to abstract subtypes.

Specified by:
createChangeLogParser in class hudson.scm.SCM
Returns:


Copyright © 2004-2013. All Rights Reserved.