Package org.jvnet.hudson.test
Class ExtractResourceSCM
java.lang.Object
hudson.scm.SCM
hudson.scm.NullSCM
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
ConstructorDescriptionExtractResourceSCM
(URL zip) ExtractResourceSCM
(URL zip, String parentFolder) with this constructor your zip can contains a folder more useful to create a project test zip foo.zip foo -
Method Summary
Methods inherited from class hudson.scm.NullSCM
calcRevisionsFromBuild, checkout, compareRemoteRevisionWith, createChangeLogParser
Methods inherited from class hudson.scm.SCM
_calcRevisionsFromBuild, _for, _for, all, buildEnvironment, buildEnvVars, calcRevisionsFromBuild, compareRemoteRevisionWith, createEmptyChangeLog, createEmptyChangeLog, getApi, getBrowser, getDescriptor, getEffectiveBrowser, getKey, getModuleRoot, getModuleRoot, getModuleRoots, getModuleRoots, getType, guessBrowser, nullify, poll, pollChanges, postCheckout, postCheckout, processWorkspaceBeforeDeletion, processWorkspaceBeforeDeletion, requiresWorkspaceForPolling, supportsPolling
-
Constructor Details
-
ExtractResourceSCM
-
ExtractResourceSCM
with this constructor your zip can contains a folder more useful to create a project test zip foo.zip foo
-
-
Method Details
-
checkout
public boolean checkout(hudson.model.AbstractBuild<?, ?> build, hudson.Launcher launcher, hudson.FilePath workspace, hudson.model.BuildListener listener, @NonNull File changeLogFile) throws IOException, InterruptedException- Overrides:
checkout
in classhudson.scm.SCM
- Throws:
IOException
InterruptedException
-