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

Multiple repositories failes checkout of custom branch

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • git-plugin
    • jenkins: 1.477 and 1.472
      git: 1.1.21 and 1.1.22

      Steps to reproduce:
      1. Setup git plugin with two repositories (with or without refspec)
      2. Specify a job string parameter for the branch
      3. Launch the build with a custom branch as parameter

      Actual results:
      Checks out the last built branch

      Expected results:
      Check out the branch which was specified by parameter

          [JENKINS-14846] Multiple repositories failes checkout of custom branch

          Florin Hillebrand created issue -
          Florin Hillebrand made changes -
          Component/s Original: multiple-scms [ 15810 ]
          Description Original: Steps to reproduce:
          1. Setup MultiSCM with a git repository
          2. Specify ${TEST_BRANCH} as branch specifier
          3. Define "job is parameterized" and define the string parameter TEST_BRANCH with a valid branch.

          Actual results:
          Checks out the last build branch

          Expected results:
          Check out the branch which was specified by TEST_BRANCH
          New: Steps to reproduce:
          1. Setup git checkout with two repositories (with or without refspec)
          2. Specify a job string parameter for the branch
          3. Launch the build with a custom branch as parameter

          Actual results:
          Checks out the last built branch

          Expected results:
          Check out the branch which was specified by parameter
          Labels Original: git multiple-scms New: git
          Summary Original: Environment variable doesn't get expanded New: Multiple repositories failes checkout of custom branch
          Florin Hillebrand made changes -
          Description Original: Steps to reproduce:
          1. Setup git checkout with two repositories (with or without refspec)
          2. Specify a job string parameter for the branch
          3. Launch the build with a custom branch as parameter

          Actual results:
          Checks out the last built branch

          Expected results:
          Check out the branch which was specified by parameter
          New: Steps to reproduce:
          1. Setup git plugin with two repositories (with or without refspec)
          2. Specify a job string parameter for the branch
          3. Launch the build with a custom branch as parameter

          Actual results:
          Checks out the last built branch

          Expected results:
          Check out the branch which was specified by parameter

          A workaround for this is to specify a choose parameter containing the repositories, to have only one repository set up in git plugin. So a user can first select the repository where his branch is and then specify the branch.

          Florin Hillebrand added a comment - A workaround for this is to specify a choose parameter containing the repositories, to have only one repository set up in git plugin. So a user can first select the repository where his branch is and then specify the branch.
          Florin Hillebrand made changes -
          Assignee Original: Nicolas De Loof [ ndeloof ] New: Kohsuke Kawaguchi [ kktest7 ]
          Florin Hillebrand made changes -
          Environment Original: jenkins: 1.477 and 1.472
          git: 1.1.21 and 1.1.22
          multi-scm: 0.2
          New: jenkins: 1.477 and 1.472
          git: 1.1.21 and 1.1.22
          Brandon Turner made changes -
          Link New: This issue is related to JENKINS-26269 [ JENKINS-26269 ]

          Brandon Turner added a comment - Pull request: https://github.com/jenkinsci/git-plugin/pull/286
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 145547 ] New: JNJira + In-Review [ 176387 ]
          Mark Waite made changes -
          Assignee Original: Kohsuke Kawaguchi [ kktest7 ]

            Unassigned Unassigned
            flozzone Florin Hillebrand
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: