• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • tfs-plugin
    • None

      I have a setup where a VSTS build starts a jenkins job. I use that build for building pull requests. I configured the refspec according to the instructions. 

      Everything worked fine, but recently the tfs plugin builds the wrong PR. In the logs I see this message

      skipping resolution of commit <commit id>, since it originates from another repository
      

      After that statement, it falls back to a previous VSTS PR branch and builds the wrong commit.

       UPDATE

      I found out that it works if I enter the git url in the jenkins build with only lowercase characters. As soon as I use uppercase characters in the git url, it thinks that it's a different repository. I don't know if the actual issue is in this plugin or in the git plugin.

          [JENKINS-51516] TFS PR commit not found

          Ian Williams added a comment -

          redsolo is no longer maintaining plugin; unassigned issues

          Ian Williams added a comment - redsolo is no longer maintaining plugin; unassigned issues

          I hope you have configured this from azure to Jenkins using tfs plugin. please refer https://docs.microsoft.com/en-us/azure/devops/service-hooks/events?view=azure-devops . search for Event ID: git.push . the url should be https://dev.azure.com  . this is the payload.

          if you give this url in your jenkins git repo url in the pipeline, this works. I have verified

          vivek rajendran added a comment - I hope you have configured this from azure to Jenkins using tfs plugin. please refer  https://docs.microsoft.com/en-us/azure/devops/service-hooks/events?view=azure-devops  . search for Event ID:  git.push . the url should be  https://dev.azure.com   . this is the payload. if you give this url in your jenkins git repo url in the pipeline, this works. I have verified

            Unassigned Unassigned
            nerumo Marco Bachmann
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: