net.praqma.jenkins.configrotator.scm.git
Class Git

java.lang.Object
  extended by net.praqma.jenkins.configrotator.AbstractConfigurationRotatorSCM
      extended by net.praqma.jenkins.configrotator.scm.git.Git
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<AbstractConfigurationRotatorSCM>, Serializable

public class Git
extends AbstractConfigurationRotatorSCM
implements Serializable

See Also:
Serialized Form

Nested Class Summary
static class Git.DescriptorImpl
           
 class Git.GitChangeLogWriter
           
 class Git.GitPerformer
           
 
Nested classes/interfaces inherited from class net.praqma.jenkins.configrotator.AbstractConfigurationRotatorSCM
AbstractConfigurationRotatorSCM.ChangeLogWriter<C extends AbstractConfigurationComponent,T extends AbstractConfiguration<C>>, AbstractConfigurationRotatorSCM.Performer<C>, AbstractConfigurationRotatorSCM.Poller<C extends AbstractConfiguration>
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from class net.praqma.jenkins.configrotator.AbstractConfigurationRotatorSCM
projectConfiguration
 
Constructor Summary
Git()
           
 
Method Summary
 ConfigRotatorChangeLogParser createChangeLogParser()
           
 AbstractConfigurationRotatorSCM.ChangeLogWriter getChangeLogWriter(File changeLogFile, hudson.model.BuildListener listener, hudson.model.AbstractBuild<?,?> build)
           
 String getName()
          Return the name of the type
 AbstractConfigurationRotatorSCM.Performer getPerform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.FilePath workspace, hudson.model.BuildListener listener)
          Perform the actual config rotation
 AbstractConfigurationRotatorSCM.Poller getPoller(hudson.model.AbstractProject<?,?> project, hudson.Launcher launcher, hudson.FilePath workspace, hudson.model.TaskListener listener)
           
 List<GitTarget> getTargets()
           
 AbstractConfiguration nextConfiguration(hudson.model.TaskListener listener, AbstractConfiguration configuration, hudson.FilePath workspace)
           
 void setConfigurationByAction(hudson.model.AbstractProject<?,?> project, ConfigurationRotatorBuildAction action)
           
<TT extends AbstractTarget>
void
setTargets(List<TT> targets)
           
 boolean wasReconfigured(hudson.model.AbstractProject<?,?> project)
          This method only makes sense when the variable justConfigured is set.
 
Methods inherited from class net.praqma.jenkins.configrotator.AbstractConfigurationRotatorSCM
all, getConfiguration, getDescriptor, getDescriptors, getFeedPath, getFeedURL, getLastResult, getLastResults, getPreviousResult, printConfiguration, setConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Git

@DataBoundConstructor
public Git()
Method Detail

getName

public String getName()
Description copied from class: AbstractConfigurationRotatorSCM
Return the name of the type

Specified by:
getName in class AbstractConfigurationRotatorSCM

getPoller

public AbstractConfigurationRotatorSCM.Poller getPoller(hudson.model.AbstractProject<?,?> project,
                                                        hudson.Launcher launcher,
                                                        hudson.FilePath workspace,
                                                        hudson.model.TaskListener listener)
Specified by:
getPoller in class AbstractConfigurationRotatorSCM

getPerform

public AbstractConfigurationRotatorSCM.Performer getPerform(hudson.model.AbstractBuild<?,?> build,
                                                            hudson.Launcher launcher,
                                                            hudson.FilePath workspace,
                                                            hudson.model.BuildListener listener)
                                                     throws IOException
Description copied from class: AbstractConfigurationRotatorSCM
Perform the actual config rotation

Specified by:
getPerform in class AbstractConfigurationRotatorSCM
Returns:
Throws:
IOException

setConfigurationByAction

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

wasReconfigured

public boolean wasReconfigured(hudson.model.AbstractProject<?,?> project)
Description copied from class: AbstractConfigurationRotatorSCM
This method only makes sense when the variable justConfigured is set. Meaning the configuration was just saved.

Specified by:
wasReconfigured in class AbstractConfigurationRotatorSCM
Returns:

createChangeLogParser

public ConfigRotatorChangeLogParser createChangeLogParser()
Specified by:
createChangeLogParser in class AbstractConfigurationRotatorSCM

getChangeLogWriter

public AbstractConfigurationRotatorSCM.ChangeLogWriter getChangeLogWriter(File changeLogFile,
                                                                          hudson.model.BuildListener listener,
                                                                          hudson.model.AbstractBuild<?,?> build)
Specified by:
getChangeLogWriter in class AbstractConfigurationRotatorSCM

nextConfiguration

public AbstractConfiguration nextConfiguration(hudson.model.TaskListener listener,
                                               AbstractConfiguration configuration,
                                               hudson.FilePath workspace)
                                        throws ConfigurationRotatorException
Specified by:
nextConfiguration in class AbstractConfigurationRotatorSCM
Throws:
ConfigurationRotatorException

setTargets

public <TT extends AbstractTarget> void setTargets(List<TT> targets)
Specified by:
setTargets in class AbstractConfigurationRotatorSCM

getTargets

public List<GitTarget> getTargets()
Specified by:
getTargets in class AbstractConfigurationRotatorSCM


Copyright © 2004-2013. All Rights Reserved.