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.DescriptorImplNested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.scm.SCM
PERMISSIONS, TAG -
Constructor Summary
ConstructorsConstructorDescriptionExtractResourceWithChangesSCM(URL firstZip, URL secondZip) ExtractResourceWithChangesSCM(URL firstZip, URL secondZip, String moduleRoot) -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckout(hudson.model.AbstractBuild<?, ?> build, hudson.Launcher launcher, hudson.FilePath workspace, hudson.model.BuildListener listener, File changeLogFile) hudson.scm.ChangeLogParserhudson.scm.SCMDescriptor<?>hudson.FilePathgetModuleRoot(hudson.FilePath workspace) voidsaveToChangeLog(File changeLogFile, Charset charset, ExtractChangeLogParser.ExtractChangeLogEntry changeLog) voidsaveToChangeLog(File changeLogFile, ExtractChangeLogParser.ExtractChangeLogEntry changeLog) Deprecated.protected ObjectDon't write 'this', so that subtypes can be implemented as anonymous class.Methods inherited from class hudson.scm.NullSCM
calcRevisionsFromBuild, checkout, compareRemoteRevisionWithMethods 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:
getModuleRootin 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:
checkoutin classhudson.scm.SCM- Throws:
IOExceptionInterruptedException
-
createChangeLogParser
public hudson.scm.ChangeLogParser createChangeLogParser()- Overrides:
createChangeLogParserin 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:
getDescriptorin interfacehudson.model.Describable<hudson.scm.SCM>- Overrides:
getDescriptorin classhudson.scm.SCM
-
saveToChangeLog(File, Charset, ExtractChangeLogParser.ExtractChangeLogEntry)