Class 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
    • Constructor Detail

      • LocalBranch

        @DataBoundConstructor
        public LocalBranch​(@CheckForNull
                           String localBranch)