Package hudson.plugins.collabnet
Class FakeChangeLogSCM
- java.lang.Object
-
- hudson.scm.SCM
-
- hudson.scm.NullSCM
-
- hudson.plugins.collabnet.FakeChangeLogSCM
-
- All Implemented Interfaces:
ExtensionPoint,Describable<SCM>
public class FakeChangeLogSCM extends NullSCM
SCMfor test that enables the caller to fake changelog entries programatically. ThisSCMdoesn't really touch any files. TODO: to be moved to Jenkins' test harness.- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFakeChangeLogSCM.Commit-
Nested classes/interfaces inherited from class hudson.scm.NullSCM
NullSCM.DescriptorImpl
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from class hudson.scm.SCM
PERMISSIONS, TAG
-
-
Constructor Summary
Constructors Constructor Description FakeChangeLogSCM()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckout(AbstractBuild<?,?> build, Launcher launcher, FilePath remoteDir, BuildListener listener, File changeLogFile)FakeChangeLogSCM.Commitcommit(String... paths)Fakes a new commit, to be made available to Jenkins in the next build.ChangeLogParsercreateChangeLogParser()-
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, getDescriptor, getEffectiveBrowser, getKey, getModuleRoot, getModuleRoot, getModuleRoots, getModuleRoots, getType, guessBrowser, nullify, poll, pollChanges, postCheckout, postCheckout, processWorkspaceBeforeDeletion, processWorkspaceBeforeDeletion, requiresWorkspaceForPolling, supportsPolling
-
-
-
-
Method Detail
-
commit
public FakeChangeLogSCM.Commit commit(String... paths)
Fakes a new commit, to be made available to Jenkins in the next build. The contents of the commit should be filled with the fluent API pattern.- Parameters:
paths- The paths that are touched by a commit.
-
checkout
public boolean checkout(AbstractBuild<?,?> build, Launcher launcher, FilePath remoteDir, BuildListener listener, File changeLogFile) throws IOException, InterruptedException
- Overrides:
checkoutin classSCM- Throws:
IOExceptionInterruptedException
-
createChangeLogParser
public ChangeLogParser createChangeLogParser()
- Overrides:
createChangeLogParserin classNullSCM
-
-