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
-
-
Constructor Summary
Constructors Constructor Description ExtractResourceWithChangesSCM(URL firstZip, URL secondZip)
ExtractResourceWithChangesSCM(URL firstZip, URL secondZip, String moduleRoot)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
checkout(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.FilePath workspace, hudson.model.BuildListener listener, File changeLogFile)
hudson.scm.ChangeLogParser
createChangeLogParser()
hudson.scm.SCMDescriptor<?>
getDescriptor()
hudson.FilePath
getModuleRoot(hudson.FilePath workspace)
void
saveToChangeLog(File changeLogFile, Charset charset, ExtractChangeLogParser.ExtractChangeLogEntry changeLog)
void
saveToChangeLog(File changeLogFile, ExtractChangeLogParser.ExtractChangeLogEntry changeLog)
protected Object
writeReplace()
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
-
-
-
-
Method Detail
-
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
protected Object 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
-
-