Package org.jvnet.hudson.test
Class ExtractResourceWithChangesSCM
java.lang.Object
hudson.scm.SCM
hudson.scm.NullSCM
org.jvnet.hudson.test.ExtractResourceWithChangesSCM
- All Implemented Interfaces:
hudson.ExtensionPoint
,hudson.model.Describable<hudson.scm.SCM>
public class ExtractResourceWithChangesSCM
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
ConstructorDescriptionExtractResourceWithChangesSCM
(URL firstZip, URL secondZip) ExtractResourceWithChangesSCM
(URL firstZip, URL secondZip, String moduleRoot) -
Method Summary
Modifier and TypeMethodDescriptionboolean
checkout
(hudson.model.AbstractBuild<?, ?> build, hudson.Launcher launcher, hudson.FilePath workspace, hudson.model.BuildListener listener, File changeLogFile) hudson.scm.ChangeLogParser
hudson.scm.SCMDescriptor<?>
hudson.FilePath
getModuleRoot
(hudson.FilePath workspace) void
saveToChangeLog
(File changeLogFile, Charset charset, ExtractChangeLogParser.ExtractChangeLogEntry changeLog) void
saveToChangeLog
(File changeLogFile, ExtractChangeLogParser.ExtractChangeLogEntry changeLog) Deprecated.protected Object
Don't write 'this', so that subtypes can be implemented as anonymous class.Methods inherited from class hudson.scm.NullSCM
calcRevisionsFromBuild, checkout, compareRemoteRevisionWith
Methods inherited from class hudson.scm.SCM
_calcRevisionsFromBuild, _for, _for, all, buildEnvironment, buildEnvVars, calcRevisionsFromBuild, compareRemoteRevisionWith, createEmptyChangeLog, createEmptyChangeLog, getApi, getBrowser, getEffectiveBrowser, getKey, getModuleRoot, getModuleRoots, getModuleRoots, getType, guessBrowser, nullify, poll, pollChanges, postCheckout, postCheckout, processWorkspaceBeforeDeletion, processWorkspaceBeforeDeletion, requiresWorkspaceForPolling, supportsPolling
-
Constructor Details
-
ExtractResourceWithChangesSCM
-
ExtractResourceWithChangesSCM
-
-
Method Details
-
getModuleRoot
public hudson.FilePath getModuleRoot(hudson.FilePath workspace) - Overrides:
getModuleRoot
in classhudson.scm.SCM
-
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
-
createChangeLogParser
public hudson.scm.ChangeLogParser createChangeLogParser()- Overrides:
createChangeLogParser
in classhudson.scm.NullSCM
-
saveToChangeLog
@Deprecated public void saveToChangeLog(File changeLogFile, ExtractChangeLogParser.ExtractChangeLogEntry changeLog) throws IOException - Throws:
IOException
-
saveToChangeLog
public void saveToChangeLog(File changeLogFile, Charset charset, ExtractChangeLogParser.ExtractChangeLogEntry changeLog) throws IOException - Throws:
IOException
-
writeReplace
Don't write 'this', so that subtypes can be implemented as anonymous class. -
getDescriptor
public hudson.scm.SCMDescriptor<?> getDescriptor()- Specified by:
getDescriptor
in interfacehudson.model.Describable<hudson.scm.SCM>
- Overrides:
getDescriptor
in classhudson.scm.SCM
-
saveToChangeLog(File, Charset, ExtractChangeLogParser.ExtractChangeLogEntry)