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

Multiple repositories failes checkout of custom branch

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: git-plugin
    • Labels:
    • Environment:
      jenkins: 1.477 and 1.472
      git: 1.1.21 and 1.1.22
    • Similar Issues:

      Description

      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

        Attachments

          Issue Links

            Activity

            flozzone Florin Hillebrand created issue -
            flozzone Florin Hillebrand made changes -
            Field Original Value New Value
            Summary Environment variable doesn't get expanded Multiple repositories failes checkout of custom branch
            Labels git multiple-scms git
            Description 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
            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
            Component/s multiple-scms [ 15810 ]
            flozzone Florin Hillebrand made changes -
            Description 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
            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
            Hide
            flozzone 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.

            Show
            flozzone 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.
            flozzone Florin Hillebrand made changes -
            Assignee Nicolas De Loof [ ndeloof ] Kohsuke Kawaguchi [ kktest7 ]
            flozzone Florin Hillebrand made changes -
            Environment jenkins: 1.477 and 1.472
            git: 1.1.21 and 1.1.22
            multi-scm: 0.2
            jenkins: 1.477 and 1.472
            git: 1.1.21 and 1.1.22
            blt04 Brandon Turner made changes -
            Link This issue is related to JENKINS-26269 [ JENKINS-26269 ]
            Hide
            blt04 Brandon Turner added a comment -
            Show
            blt04 Brandon Turner added a comment - Pull request: https://github.com/jenkinsci/git-plugin/pull/286
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 145547 ] JNJira + In-Review [ 176387 ]

              People

              • Assignee:
                kktest7 Kohsuke Kawaguchi
                Reporter:
                flozzone Florin Hillebrand
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: