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

Can't connect to TFS with TFS-PLUGIN

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: tfs-plugin
    • Labels:
    • Environment:
      Jenkins 2.7.1 (JDK 8) on Windows Server 2012 R2
    • Similar Issues:

      Description

      Hello!

      Jenkins with this plugin (v 5.0.0) doesn´t work for me. When I Try to Test connection I always get this error:
      TF400813: Recurso no disponible para el acceso anónimo. Se requiere autenticación del cliente. - Microsoft Team Foundation Server
      I have configured the plugin as indicates in the documentation: https://github.com/jenkinsci/tfs-plugin/blob/master/README.md. ¿Have Jenkins any way of autenticate in TFS? User credentials in TFS doesn't work.

      Than you very much!

        Attachments

          Activity

          Hide
          foobartn Joshua Barton added a comment - - edited

          I ran into this as well. I noticed that it was trying to use the Jenkins service account (Local System) regardless of what credentials I gave it. So i changed the service account to a domain account with TFS permissions and it worked. For some reason it seems to completely ignore the credentials you pass to it in the configuration.

          I can now successfully test the connection with "- none -" being selected for the credentials

          Show
          foobartn Joshua Barton added a comment - - edited I ran into this as well. I noticed that it was trying to use the Jenkins service account (Local System) regardless of what credentials I gave it. So i changed the service account to a domain account with TFS permissions and it worked. For some reason it seems to completely ignore the credentials you pass to it in the configuration. I can now successfully test the connection with "- none -" being selected for the credentials
          Hide
          pemola Laura Molero added a comment - - edited

          Thank you for your answer. I tried what you say and it doesn´t work for me neither.
          I try access to Jenkins server with TFS permissions account and I get the same error.
          With "- none -" access is the same result.

          I try to connect to TFS 2015 (instead of 2012) and I get the same error but with more information:
          "TF400813: El usuario MyDomain\HostName no tiene autorización para obtener acceso a este recurso. - Microsoft Team Foundation Server"
          I'm not sure if Plugin tries to connect with this user instead of using Jenkins service account.

          Show
          pemola Laura Molero added a comment - - edited Thank you for your answer. I tried what you say and it doesn´t work for me neither. I try access to Jenkins server with TFS permissions account and I get the same error. With "- none -" access is the same result. I try to connect to TFS 2015 (instead of 2012) and I get the same error but with more information: "TF400813: El usuario MyDomain\HostName no tiene autorización para obtener acceso a este recurso. - Microsoft Team Foundation Server" I'm not sure if Plugin tries to connect with this user instead of using Jenkins service account.
          Hide
          oli_at_jsi Olivier Dagenais added a comment -

          Joshua Barton and Laura Molero: I have posted pull request #135, which has Cloudbees build #682 associated with it. It should take care of the [Test connection] button and your assistance in verifying the fix would be appreciated. You can do so by downloading the pre-release .hpi file from the Cloudbees build page and uploading it to a Jenkins server.

          Thanks!
          - Oli

          Show
          oli_at_jsi Olivier Dagenais added a comment - Joshua Barton and Laura Molero : I have posted pull request #135 , which has Cloudbees build #682 associated with it. It should take care of the [Test connection] button and your assistance in verifying the fix would be appreciated. You can do so by downloading the pre-release .hpi file from the Cloudbees build page and uploading it to a Jenkins server. Thanks! - Oli
          Hide
          yrtimid Dmitry Gurovich added a comment -

          I just tried hpi from build #682 and test connection button worked as expected - i.e. configured credentials were used during ntlm auth process.

          Show
          yrtimid Dmitry Gurovich added a comment - I just tried hpi from build #682 and test connection button worked as expected - i.e. configured credentials were used during ntlm auth process.
          Hide
          oli_at_jsi Olivier Dagenais added a comment -

          The fix for the [Test connection] button was included in release 5.2.0

          Show
          oli_at_jsi Olivier Dagenais added a comment - The fix for the [Test connection] button was included in release 5.2.0
          Hide
          pemola Laura Molero added a comment - - edited

          Thank you very much! Now it works.

          Show
          pemola Laura Molero added a comment - - edited Thank you very much! Now it works.

            People

            Assignee:
            pemola Laura Molero
            Reporter:
            pemola Laura Molero
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: