Class CleanCheckout
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<GitSCMExtension>
-
- hudson.plugins.git.extensions.GitSCMExtension
-
- hudson.plugins.git.extensions.impl.CleanCheckout
-
- All Implemented Interfaces:
Describable<GitSCMExtension>
public class CleanCheckout extends GitSCMExtension
git-clean after the checkout.- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCleanCheckout.DescriptorImpl
-
Constructor Summary
Constructors Constructor Description CleanCheckout()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)inthashCode()booleanisDeleteUntrackedNestedRepositories()voidonCheckoutCompleted(GitSCM scm, Run<?,?> build, org.jenkinsci.plugins.gitclient.GitClient git, TaskListener listener)Called when the checkout was completed and the working directory is filled with files.voidsetDeleteUntrackedNestedRepositories(boolean deleteUntrackedNestedRepositories)StringtoString()-
Methods inherited from class hudson.plugins.git.extensions.GitSCMExtension
beforeCheckout, beforeCheckout, decorate, decorateCheckoutCommand, decorateCheckoutCommand, decorateCloneCommand, decorateCloneCommand, decorateFetchCommand, decorateFetchCommand, decorateMergeCommand, decorateMergeCommand, decorateRevisionToBuild, decorateRevisionToBuild, determineSupportForJGit, enableMultipleRevisionDetection, getDescriptor, getRequiredClient, getWorkingDirectory, getWorkingDirectory, isRevExcluded, onCheckoutCompleted, onClean, populateEnvironmentVariables, requiresWorkspaceForPolling
-
-
-
-
Method Detail
-
isDeleteUntrackedNestedRepositories
public boolean isDeleteUntrackedNestedRepositories()
-
setDeleteUntrackedNestedRepositories
@DataBoundSetter public void setDeleteUntrackedNestedRepositories(boolean deleteUntrackedNestedRepositories)
-
onCheckoutCompleted
public void onCheckoutCompleted(GitSCM scm, Run<?,?> build, org.jenkinsci.plugins.gitclient.GitClient git, TaskListener listener) throws IOException, InterruptedException, hudson.plugins.git.GitException
Called when the checkout was completed and the working directory is filled with files. SeeSCM.checkout(Run, Launcher, FilePath, TaskListener, File, SCMRevisionState)for the available parameters, exceptworkingDirectoryDo not move the HEAD to another commit, as by this point the commit to be built is already determined and recorded (such as changelog.)- Overrides:
onCheckoutCompletedin classGitSCMExtension- Parameters:
scm- GitSCM objectbuild- run contextgit- GitClientlistener- build log- Throws:
IOException- on input or output errorInterruptedException- when interruptedhudson.plugins.git.GitException- on git error
-
-