Class LocalBranch
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<GitSCMExtension>
-
- hudson.plugins.git.extensions.GitSCMExtension
-
- hudson.plugins.git.extensions.FakeGitSCMExtension
-
- hudson.plugins.git.extensions.impl.LocalBranch
-
- All Implemented Interfaces:
Describable<GitSCMExtension>
public class LocalBranch extends FakeGitSCMExtension
The Git plugin checks code out to a detached head. Configure LocalBranch to force checkout to a specific local branch. Configure this extension as null or as "**" to signify that the local branch name should be the same as the remote branch name sans the remote repository prefix (origin for example).- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LocalBranch.DescriptorImpl
-
Constructor Summary
Constructors Constructor Description LocalBranch(String localBranch)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getLocalBranch()
int
hashCode()
String
toString()
-
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, onCheckoutCompleted, onClean, populateEnvironmentVariables, requiresWorkspaceForPolling
-
-
-
-
Constructor Detail
-
LocalBranch
@DataBoundConstructor public LocalBranch(@CheckForNull String localBranch)
-
-