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

GitSCM checks wrong branch for changes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Critical Critical
    • git-client-plugin
    • Jenkins ver. 1.570; Git Client 1.9.1

      Steps:
      1. Setup a repo with such branches:
      A/SameNameBranch
      B/SameNameBranch

      2. Setup job to poll "B/SameNameBranch"
      3. Watch never ending changes

      Expected:
      plugin executes this command on getting current commit hash:
      git ls-remote -h git@repo.org:user/some.git B/SameNameBranch

      Actual:
      plugin executes WRONG command on getting current commit hash:
      git ls-remote -h git@repo.org:user/some.git SameNameBranch

      It skips full branch name and only uses last path component. This command then returns list of all branches ending with "SameNameBranch", and "A" version has different commit than the needed one. Please just make it to call command with full branch name

            ndeloof Nicolas De Loof
            redf Artem Alexandrov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: