public class SingleFileSCM
extends hudson.scm.NullSCM
SCM
useful for testing that puts just one file in the workspace.Constructor and Description |
---|
SingleFileSCM(String path,
byte[] contents) |
SingleFileSCM(String path,
String contents) |
SingleFileSCM(String path,
URL resource)
When a check out is requested, serve the contents of the URL and place it with the given path name.
|
Modifier and Type | Method and Description |
---|---|
void |
checkout(hudson.model.Run<?,?> build,
hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.TaskListener listener,
File changelogFile,
hudson.scm.SCMRevisionState baseline) |
protected Object |
writeReplace()
Don't write 'this', so that subtypes can be implemented as anonymous class.
|
calcRevisionsFromBuild, compareRemoteRevisionWith, createChangeLogParser
_calcRevisionsFromBuild, _for, _for, all, buildEnvironment, buildEnvVars, calcRevisionsFromBuild, checkout, compareRemoteRevisionWith, createEmptyChangeLog, createEmptyChangeLog, getApi, getBrowser, getDescriptor, getEffectiveBrowser, getKey, getModuleRoot, getModuleRoot, getModuleRoots, getModuleRoots, getType, guessBrowser, nullify, poll, pollChanges, postCheckout, postCheckout, processWorkspaceBeforeDeletion, processWorkspaceBeforeDeletion, requiresWorkspaceForPolling, supportsPolling
public SingleFileSCM(String path, byte[] contents)
public SingleFileSCM(String path, String contents) throws UnsupportedEncodingException
UnsupportedEncodingException
public SingleFileSCM(String path, URL resource) throws IOException
IOException
public void checkout(hudson.model.Run<?,?> build, hudson.Launcher launcher, hudson.FilePath workspace, hudson.model.TaskListener listener, File changelogFile, hudson.scm.SCMRevisionState baseline) throws IOException, InterruptedException
checkout
in class hudson.scm.NullSCM
IOException
InterruptedException
protected Object writeReplace()
Copyright © 2004–2022. All rights reserved.