-
New Feature
-
Resolution: Fixed
-
Major
GitSCM.extensions such as CleanBeforeCheckout cannot currently be configured on GitSCMSource.
- is blocking
-
JENKINS-37658 Github-branch-source plugin should support git plugin extensions
-
- Closed
-
-
JENKINS-32552 Multibranch project git branch checkout
-
- Closed
-
-
JENKINS-34752 Changes screens don't provide links to GitHub Enterprise screens
-
- Closed
-
- is duplicated by
-
JENKINS-33022 Allow Git shallow clone in Multibranch pipeline
-
- Resolved
-
-
JENKINS-32540 Multibranch workflow and 'scm checkout' don't allow Git clean before checkout
-
- Resolved
-
-
JENKINS-32658 Multibranch pipeline 'checkout scm' does not handle Git submodules
-
- Resolved
-
- is related to
-
JENKINS-37817 checkout scm should be able to override extensions/settings
-
- Resolved
-
-
JENKINS-32767 GitSCMSource can hang in branch indexing, blocking builds
-
- Closed
-
- relates to
-
JENKINS-36419 git plugin 2.5.1 breaks multibranch pipeline if using github source control
-
- Closed
-
- links to
Workaround for "Clean Before Checkout" Equivalent
I tried a few ways to get the equivalent of a Git Clean Before Checkout behavior in a Multibranch Pipeline job. Here is what is working for me now: using a manual call to git clean, falling back on deleteDir() pipeline statement if there is no existing Git repository in the workspace: