-
Bug
-
Resolution: Fixed
-
Major
-
None
-
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>
Are you using your actual password for the account? Use a personal access token. https://docs.microsoft.com/en-us/vsts/accounts/use-personal-access-tokens-to-authenticate?view=vsts