I am using TFS 2018 update 2 version, and I have to implement continuous integration for a project.
For that, I need to add code review functionality before "check in" as a check in policy, but in TFS 2018 version, there is no such policy?!
Question: are there other ways to include "Code Review" as check in policy?
(We are using TFVC, not GIT).
To prevent check-in without a review, you can use a check-in policy. Here's a custom check-in policy that requires code review before check-in:
https://marketplace.visualstudio.com/items?itemName=ColinD.ColinsALMCheckinPoliciesforVS2013andVSO
Install Instructions:
Download the VSIX and install it.
In Visual Studio 2017, connect to VSTS or TFS and connect to a TFVC repository.
Open Team Explorer and click on the Settings tile.
In the Team Project section, click the Source Control link.
Click on the Check-in Policy tab.
Click "Add..." and add either Code Review Policy or One Work Item Policy
Click either policy and click "Edit..." to open the configuration page for the policy.
But I should point out that check-in policies are not security mechanisms, think of them as a reminder for the developer to send the code for check-in. Developers can easily override them.
If you really need to prevent any check-ins, you should deny check-in permission for developers, and have them send their changes to the manager using a code-review (or shelve set). The manager can then unshelve the changes and check-in after reviewing.
Related
I have TFS 2018. I'm trying to connect visual studio 2019. I can already use tfs via web browser. I can log in and everything is fine. But when I try to connect through vs, I can't get authorized. I get
Server 'https://Myserver:8080/tfs' was not added. TF30063. You are not authorized to access https://myserver:8080/tfs
I researched the error code and tried all the fixes including deleting the windows credentials, running vs as admin and others. Like I said, I can log in via my web browser with no problem.
When I try to connect to project, It has my Microsoft account. I enter the above url and I'm prompted for my windows login (same for the browser) and I keep getting the error. I thought maybe I add the account before connecting, but when I try to add an account, the only popup wants me to use a Microsoft account or GitHub account. I can't add my Windows account.
So how do I connect my visual studio to my tfs server?
Thank you.
You should not get a Microsoft Account Prompt if you are trying to connect locally. The prompt is to validate your instance of VS towards your MSDN subscription. You would need to "login" with you Microsoft or Azure AD user that can validate your VS license and to be able to synchronize your settings from one VS to another. This login is the one here
Notice the account settings there, if you click on this you can also add your Visual Studio 2019 Static Key and then you don't need to login every month unless you want to sync your settings.
Bottom line, when connecting to TFS 2018 it will not ask you for Microsoft Credentials.
Please check whether you use the correct URL, and use http instead of https. Also, try the following items:
Close all Visual Studio instances, delete %LOCALAPPDATA%.IdentityService.
Clear TFS caches %LOCALAPPDATA%\Microsoft\Team Foundation\x.0\Cache
Click Add Azure DevOps Server and add the server URL:
We want to access our on premises TFS with VSTS CALs. We were trying it with the following information from https://marketplace.visualstudio.com.
We created a user in VSTS with Basic level permissions. It allowed us to create with the email ID of the user. Where as we can not login to the TFS Server with the email ID.
We didn't understand how the VSTS license integrates with our TFS on premises.
Please let us know how we can use VSTS CALs to access TFS Server.
Just as Edward said in the comment, you must first configure your VSTS account have the corresponding access and permission in TFS server.
For example, if you have a domain account company/Ram Datla / Ram Datla#company.com and the user have add in your local TFS server.
For TFS you pay per user for team members who need to use Basic
features like Code or Agile Planning. Team members who have a Visual
Studio subscription are free to add because Basic features are
included in their subscription as a benefit.
If you haven't paid for this Ram Datla#company.com account. You could also be able to access TFS server , however just as a stakeholders, which provides access to a limited set of features. It's also free to add stakeholders to TFS.
If you have paid for the Ram Datla#company.com account with Basic level, then you could also use this account to also have Basic level(who need to use Basic features like Code or Agile Planning) in your local TFS server. Thus you don't have to pay this user again.
Q: Why should I pay via VSTS for my TFS users?
A: You get many benefits, for example:
Paying via VSTS gives your users the flexibility to access both TFS and VSTS for the same price.
You can pay monthly for users who need temporary access.
You get all the purchasing capabilities that Azure offers, like payment via credit card, through a Cloud Solution Provider (CSP)
partner, through the Enterprise Agreement, and more.
Suggest you first go through below links with more detail explain of pricing:
Team Foundation Server Pricing
Buy access to Team Foundation Server
Also take a look at the different Authentication of TFS and VSTS.
I was invited to a project on Visual Studio Team Services (previously Visual Studio Online) and I accepted. But now, I want to leave the project and I can't find the option to do that.
Since I'm not an administrator, I can't just delete the project/account, and the owner is no longer active so he can't remove me. The project is now linked to my account and I just want to leave.
Usually delete users from the owner's Visual Studio Team Services account is the simplest solution in your scenario.
Since the owner is no longer active, you or others in thie project team could try to change the account ower. If no one have enough permission, you may have to contact Team service support.
You must have at least Basic access, not Stakeholder, and Team
Services project collection administrator or account owner
permissions. If no one has these permissions, contact Team Services
Support.
Source Link: Change account owner for Visual Studio Team Services
We started to use MTM 2010 for creating and publishing test cases in TFS 2010. Unfortunately, users are not able to publish test results due to lack of permissions.
I do not want to grant code access to testers. Currently, they have only “View project-level information” permissions. Could you please advise what (minimal) permissions should I grant to testers so they can run test from MTM and publish the results?
You should grant following project level permissions to testers, beside permissions they already have:
“Create test runs”
“Manage test configurations”
“Manage test environments”
“View test runs”
Also, be sure that in Area security for specific projects, testers do have “Manage test plans” permissions, beside permissions you have already assigned to them. If you want to be sure that testers do not have access to code, you can always set Deny permissions for specific files in project.
It doesn't appear that you can modify the base url for the portal settings in TFS 2010. I currently have
http://tfsserver.mydomain.com
I would like the system to launch
http://tfsserver
instead when a user selects 'Show project portal' from Team Explorer.
Is it possible to change the site root that it points to? We keep getting security prompts with fqdn.
I found the answer myself. On the application tier, open the admin console, select SharePoint Web Applications and change the base url there.