Trigger release in TFS failing with TF400813

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major
    • Component/s: tfs-plugin
    • None
    • Environment:
      Jenkins 2.89.3; TFS 2017 on premise

      I have setup a TFS release job that has two artifacts - one from Jenkins and one from TFS Build.  In the Jenkins "release" job, I have a post-build action to Trigger release in TFS.  The userid is set to DOMAIN\userid (substituting the actual userid and Domain) and the correct password.  This user has admin rights in TFS and for the TFS Release job.  I get the below error.
      ERROR: Failed to trigger release.%n
      hudson.plugins.tfs.rm.ReleaseManagementException: hudson.plugins.tfs.rm.ReleaseManagementException: Error occurred.%nStatus: 401%nResponse:
      <!DOCTYPE html>
      <html>
      <head>
      <title>TF400813: Resource not available for anonymous access. Client authentication required. - Microsoft Team Foundation Server</title>

        1. JenkinsLogs.txt
          5 kB
          Michel Calvin

            Assignee:
            redsolo
            Reporter:
            Michel Calvin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: