Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-48077

Checkout to specific local branch option has disappeared with Git Plugin 3.4.0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Critical Critical
    • git-plugin
    • Using Jenkins LTS 2.73.3

      Starting with git-plugin 3.4.0, in a Multibranch Pipeline editor, the "Checkout to specific local branch" is not available any more in the proposed Additional Behaviours.

      I am using the Multibranch Pipeline to validate "feature" branches and my workflow is actually to merge the feature branch into master (using the PreBuildMerge behaviour), build/test and push the result when build/tests are ok. I found that this was working only with the "Checkout to specific local branch" Additional Behaviour.

      Doesn't this scenario make perfect sense ?

      This was working fine with 3.3.0. But this isn't working anymore with all git-plugin versions since 3.4.0.

      I do have seen this comment in git plugin page "In the context of a multibranch project, the checkout to local branch behaviour will now just check out to the branch name that matches the name of the branch. The ability to specify a fixed custom branch name does not make sense in the context of a multibranch project".

      Not entirely sure whether this is referring to my issue (ie - when using the PreBuildMerge behaviour). But if that is the case, please explain how it does not make sense and what does make sense instead.

      Otherwise, can we have the "Checkout to specific local branch" option back ? Or at least a workaround ?

      Valentin

            Unassigned Unassigned
            valentin92 Valentin Chartier
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: