• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • tfs-plugin
    • Jenkins 2.7.1 (JDK 8) on Windows Server 2012 R2

      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!

          [JENKINS-37710] Can't connect to TFS with TFS-PLUGIN

          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

          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

          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.

          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.

          foobartn and pemola: 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

          Olivier Dagenais added a comment - foobartn and pemola : 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

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

          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.

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

          Olivier Dagenais added a comment - The fix for the [Test connection] button was included in release 5.2.0

          Laura Molero added a comment - - edited

          Thank you very much! Now it works.

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

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

              Created:
              Updated:
              Resolved: