org.jvnet.hudson.test
Class ExtractResourceSCM

java.lang.Object
  extended by hudson.scm.SCM
      extended by hudson.scm.NullSCM
          extended by org.jvnet.hudson.test.ExtractResourceSCM
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.scm.SCM>

public class ExtractResourceSCM
extends hudson.scm.NullSCM

SCM useful for testing that extracts the given resource as a zip file.

Author:
Kohsuke Kawaguchi

Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.scm.NullSCM
hudson.scm.NullSCM.DescriptorImpl
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from class hudson.scm.SCM
PERMISSIONS, TAG
 
Constructor Summary
ExtractResourceSCM(URL zip)
           
ExtractResourceSCM(URL zip, String parentFolder)
          with this constructor your zip can contains a folder more usefull to create a project test zip foo.zip foo
 
Method Summary
 boolean checkout(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.FilePath workspace, hudson.model.BuildListener listener, File changeLogFile)
           
 
Methods inherited from class hudson.scm.NullSCM
calcRevisionsFromBuild, compareRemoteRevisionWith, createChangeLogParser
 
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
 

Constructor Detail

ExtractResourceSCM

public ExtractResourceSCM(URL zip)
Parameters:
zip -

ExtractResourceSCM

public ExtractResourceSCM(URL zip,
                          String parentFolder)
with this constructor your zip can contains a folder more usefull to create a project test zip foo.zip foo

Parameters:
zip -
parentFolder -
Method Detail

checkout

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


Copyright © 2004-2012. All Rights Reserved.