org.jenkinsci.plugins.pretestedintegration
Class PretestedIntegrationPreCheckout.DescriptorImpl

java.lang.Object
  extended by hudson.model.Descriptor<hudson.tasks.BuildWrapper>
      extended by hudson.tasks.BuildWrapperDescriptor
          extended by org.jenkinsci.plugins.pretestedintegration.PretestedIntegrationPreCheckout.DescriptorImpl
All Implemented Interfaces:
hudson.model.Saveable
Enclosing class:
PretestedIntegrationPreCheckout

@Extension
public static class PretestedIntegrationPreCheckout.DescriptorImpl
extends hudson.tasks.BuildWrapperDescriptor


Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.model.Descriptor
hudson.model.Descriptor.FormException, hudson.model.Descriptor.PropertyType, hudson.model.Descriptor.Self
 
Field Summary
 
Fields inherited from class hudson.model.Descriptor
clazz
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
PretestedIntegrationPreCheckout.DescriptorImpl()
           
 
Method Summary
 File configurationDirectory(String repositoryUrl)
          Gets the configuration directory for a repository
 hudson.util.FormValidation doTestRepository(String repositoryUrl)
          Performs a validation test whether the repository url is correctly initialised
 hudson.util.FormValidation doUpdateRepository(String repositoryUrl, String name)
          Updates or creates the repository url to be functional
 String getDisplayName()
           
 String getJenkinsRootUrl()
           
 boolean isApplicable(hudson.model.AbstractProject<?,?> arg0)
           
 boolean setupRepositoryDirectory(File repoDir)
           
 boolean validateConfiguration(String repositoryUrl)
          Tests whether a repository exists at the specified location
 boolean writeConfiguration(String repositoryUrl)
          Updates the configuration file in the specified repository
 boolean writeHook(File repoDir, String jenkinsRoot, String job)
          Updates the hook file in the specified repository
 
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, getCheckUrl, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PretestedIntegrationPreCheckout.DescriptorImpl

public PretestedIntegrationPreCheckout.DescriptorImpl()
Method Detail

getDisplayName

public String getDisplayName()
Specified by:
getDisplayName in class hudson.model.Descriptor<hudson.tasks.BuildWrapper>

configurationDirectory

public File configurationDirectory(String repositoryUrl)
Gets the configuration directory for a repository

Parameters:
repositoryUrl -
Returns:

validateConfiguration

public boolean validateConfiguration(String repositoryUrl)
Tests whether a repository exists at the specified location


setupRepositoryDirectory

public boolean setupRepositoryDirectory(File repoDir)

writeConfiguration

public boolean writeConfiguration(String repositoryUrl)
Updates the configuration file in the specified repository

Parameters:
repositoryUrl -

getJenkinsRootUrl

public String getJenkinsRootUrl()

writeHook

public boolean writeHook(File repoDir,
                         String jenkinsRoot,
                         String job)
                  throws IOException
Updates the hook file in the specified repository

Parameters:
repositoryUrl -
Returns:
Throws:
IOException

doTestRepository

public hudson.util.FormValidation doTestRepository(@QueryParameter(value="stageRepositoryUrl")
                                                   String repositoryUrl)
                                            throws IOException,
                                                   javax.servlet.ServletException
Performs a validation test whether the repository url is correctly initialised

Throws:
IOException
javax.servlet.ServletException

doUpdateRepository

public hudson.util.FormValidation doUpdateRepository(@QueryParameter(value="stageRepositoryUrl")
                                                     String repositoryUrl,
                                                     @QueryParameter(value="name")
                                                     String name)
Updates or creates the repository url to be functional

Parameters:
repositoryUrl -
Returns:

isApplicable

public boolean isApplicable(hudson.model.AbstractProject<?,?> arg0)
Specified by:
isApplicable in class hudson.tasks.BuildWrapperDescriptor


Copyright © 2004-2013. All Rights Reserved.