Cannot connect to Team project collection - jenkins

I'm new to Jenkins and am trying to set up the team project collection. My servername is:
http://<server-name>/tfs/Development%20and%20CFS%20UK/
I've left the last bit in so you can see it has spaces.
I'm adding the Jenkins credentials as:
Domain: Global credentials (it won't let me choose anything else)
Kind: Username with Password
Username: my windows domain\username used to access TFS
Password: my windows password used to access TFS
ID/Description, not sure whether these are important - assume not!
The error I receive is as follows:
javax.servlet.ServletException: com.microsoft.tfs.core.exceptions.TECoreException: The SOAP endpoint http://<server-name>/tfs/Development%20and%20CFS%20UK/Services/v1.0/Registration.asmx could not be contacted. HTTP status: 502
If I cut and paste the url above into a browser it appears fine, with the following message:
Team Foundation Registration web service
The following operations are supported. For a formal definition, please review the Service Description.
GetRegistrationEntries

The login name is important which must contain the name of domain and user.
For [on-premises] Team Foundation Server, the User name can be
specified in two ways:
EXAMPLE-DOMAIN\user
user#domain.example.com
Suggest you to use the latest Team Foundation Server Plugin in Jenkins, more details of the job configuration, you can check the release note.
To narrow down if the space of your team project collection cause the issue, you could give a try with another collection url without space.
Update
If you copy the collection url in browser, it should link to a TFS web portal.

Related

Reportportal to JIRA integration fails with error: Impossible interact with external system

I am trying to integrate a project in Reportportal to JIRA project. When trying to configure, it is failing with error "Impossible interact with external system" like the attached picture.
The Jira service is up in docker. The https cert on JIRA is valid CA signed cert (i.e. Not self signed). I ruled out importing cert into jira service container.
The JIRA instance uses NTLM for authentication. I am not sure if Basic auth that reportportal jira service is trying working here.
Thanks for hep.
You should take a look into service-jira docker container logs. This will give details what's happening during this response.
and you also can drop as a mail to support#reportportal.io
Try This out !
You should take care of following points for reportportal.io integration with jira.
Link to BTS: This link should be correct.[https://jira.company.com]
Project name in Jira: Use project key instead of name. project key should taken from jira.
BTS username: Use jira email here.
BTS password: Use jira API token instead of password for Jira-cloud [Go to Jira account setting and generate new token or search how to generate jira API token]
All the best !

TFS 2013 Reporting URLs containing computername not accessible

I have installed and configured TFS 2013.
The TFS Administration Console shows in the Reporting section the following urls:
Reporting Server: http://COMPUTERNAME:80/ReportServer_STANDARD2014
Reporting Manager: http://COMPUTERNAME:80/Report_STANDARD2014
but in the IIS Manager, I do not have a web with the name "COMPUTERNAME". The URL ist inaccessible. But I cannot change it to the Machines IP Address, I get an error message, with not found and so on.
Why tfs uses such inaccessible URLS. How I can access the Reports?
I have also set up a Build configuration. In the tfs event viewer, I can read, that the build service http://COMPUTERNAME:9191/Build/v5.0/Services successfully registered.
But this url seems also not correct. But the buildservice is running.
And I have another problem with accessing the tfs web-interface.
From machines outside in the internet, I am able to access the tfs webinterface with the dns name of the machine like http://www.ourdomain.net:8080/tfs
But on the TFS server itself, I cannot. I can only access by the machines ip-address like http://11.12.13.14:8080/tfs
Using the dns name, I cannot log on, the provided credential is not accepted.
TFS queries reporting services and uses the URL's that it reports.
You can find the correct URL's if you open the Reporting Services Configuration console on the box it runs on. RS no longer uses IIS so you will not find anything in there.
It sounds like someone has changed the reporting services url since tfs was configured.
Update your hosts file with the correct IP address for computer names.

Can TFS work with a local user account?

I'm trying to use the Jenkins TFS Plugin and have trouble authenticating. I saw that user on the TFS administration, and gave it permissions on my project.
I've created a local user account (via Local Users and Groups) - TfsServer\TfsUserAdmin, and I'm trying to use it to authenticate against the TFS server.
I able able to use the name and password of the user. For example this works (though it prints an empty list):
tf workspaces -format:brief -server:http://TfsServer:8080/tfs/Redacted_Collection -login:TfsServer\TfsUserAdmin,RedactedPassword
If I change the password on the above command I get an error, so authentication does work.
The next command is:
tf workspace -new "RedactedWorkspaceName;" -noprompt -server:http://TfsServer:8080/tfs/Redacted_Collection -login:TfsServer\TfsUserAdmin,RedactedPassword
This fails with the error:
TF14045: The identity TfsServer\TfsUserAdmin is not a recognized identity.
I don't think I can change these commands, they are created by the plugin.
I've found people with similar errors, but none of them had the user name at the error - only a GUID or the server name.
Can I work with TFS and a local user?
You will likely need to use Shadow Accounts to get your Jenkins server to talk to TFS...
Create a local user on both your TFS server and your Jenkins server with the same Username & Passowrd. Then use that account to authenticate.
This is the only way to get cross domain coms working without trust and is a feature of Windows & AD. If your org has disabled it you will need to look at creating a trust relationship between your domains.

Change credentials per server?

I've installed opshub on my pc that is on domain ABC. I have succesfully migrated projects from a TFS server on domain ABC to visual studio online. Now I've added a TFS server that is in domain DEF and it doesn't ask me for credentials for that server. I just get a blank collection list, I think its trying to use my current credentials from domain ABC. How can I get it to ask me for the credentials to domain DEF when trying to access that server?
User level authentication details are stored inside Team Foundation cache directory under following locations. If you have already authenticated for the TFS server then details for that server is stored inside cache directory. This won't ask you credentials again while you are doing next migration.
If you want to authenticate with the new credentials for different domain you need to clear data from the following directories.
C:\Users{User}\AppData\Local\Microsoft\Team Foundation\4.0\Cache
C:\Users{User}\AppData\Local\Microsoft\Team Foundation\5.0\Cache
Make sure original folders remains there (Cache). Just remove contents of those directories. Also make sure you close all the applications which uses TFS cache like visual studio, opshub migration utility.
See http://blogs.msdn.com/b/visualstudioalm/archive/2012/08/29/clearing-the-credentials-for-connecting-to-a-team-foundation-server.aspx for correct answer. It worked for me.

Teamcity setup with Visual Studio Team Services

I have been trying to integrate Team city with Visual Studio Team Services and keep getting this error, can anyone help.
I have enabled basic authentication in tfs by going to
TFS -> Profile -> basic authentication.
Trying to create a Create Project From URL on TeamCity, Getting error on below setting.
Settings
Repository URL: * https://xxxxxx.visualstudio.com/DefaultCollection/AddBk
Error
Could not create a project by specified URL, URL is not recognized
You need to specify the repository as including the collection but not the project.
So http://mytfs.visualstudio.com/defaultcollection as the repository and then you can specify the $/myTeamProject/[path] in the "root" variable.
http://confluence.jetbrains.com/display/TCD8/Team+Foundation+Server
For credentials I would recommend that you use the server account credentials rather than local user ones. You can get the server credentials through the API or by using the TFS Credential Viewer.

Resources