How to create Azure devops code review policy [duplicate] - tfs

This question already has answers here:
Is it possible to do the code review if we select TFVC version control while creating the project in Azure DevOps Services?
(2 answers)
Closed 3 months ago.
How to create a code review policy on azure devops TFSVC repository? We want to make the code review mandatory for developers so code check-in is possible on successful review. We use TfsVc branches and not planning to migrate to git.
Thanks for the help!

It is not supported to make the code review mandatory for TFVS repository.
The code review capabilities of TFVC are very limited.
Ref: https://learn.microsoft.com/en-us/azure/devops/repos/tfvc/get-code-reviewed-vs?view=azure-devops

Related

Can't see project in Source Control Explorer

I'm trying to download my project from Visual Studio Online (TFS), but I can't see one project in list. I have two accounts, main and secondary. I'm trying to get project using secondary account. Both users have Administrator permission on this project. Also, other projects, that I see in list, have same permissions with this account. I see this project on web-site (my_organization.visualstudio.com), but it is not in Visual Studio, in Source Control Explorer. Need some help - is there any bug, or I'm doing something wrong..? Thanks
Stackoverflow is mainly handling issues’ open forum while your current question is organization identity/account issue targeting to Azure DevOps, which need assistance of the product group. Thus the best contact channel is here: https://developercommunity2.visualstudio.com/report?entry=problem&space=21, the product support engineer will then contact the product group and offer efficient assistance. Thanks for your understanding.
BTW, you could refer to this doc: Set repository permissions for Git or TFVC to check your account's repository permissions in this project.

TFS With Jira - Any tools?

I'm looking at integrating TFS with JIRA. I Want to run my test cases in TFS but when i raise bugs i want them to automatically update on the JIRA board. Is there anything out there that can make this possible?
Also would it automatically block the test case and link the bug in JIRA with it?
There is no such kind of build in feature or extension. However, you could raise bugs in TFS/Azure DevOps first when you run your test cases. Then synchronize your bugs with issues in Jira. It's not able to directly link the bug in JIRA with TFS test cases.
You could choose to use TFS4JIRA Azure DevOps integration.
TFS4JIRA is migration, integration and synchronization tool, which
bridges TFS / Azure DevOps and Jira (Server/DC/Cloud). Integrate
Azure DevOps with TFS4JIRA, to view your project or issue-associated
Azure DevOps check-ins in Jira, as well as synchronize changes made to
the issues and integrate Azure Jira work items.
Create your individual TFS4JIRA sync profiles and define the project collections which you want to work with.
Map your issue types, work item types, fields, values.
Hierarchy and subtasks synchronisation supported.
Enable your profile and, voila! – the synchronizer is making sure that Jira and Azure DevOps exchange information in the background.
If you already have some bug/issue work items in JIRA and want to import them to TFS on-premise server. There is an extension named Jira to Azure DevOps/TFS work item migration tool. It is used to Azure DevOps work item migration tool lets you export data from Jira and import it as work items in Azure DevOps or Microsoft Team Foundation Server. Here is the download page.

Git Pull Request-like process in Team Foundation Version Control

Suppose I have a team project with two branches: "main" and "dev" (fictional names).
As things are now, new code is merged into "main" without any code review. Also, anyone can check-in directly to it. We would like to change that.
I would really like to have something like Git's pull request functionality. I know we can use permissions to keep everyone from making check-ins at the main branch. We can also use permissions to make sure that only a reviewer can merge into the main branch.
But how can we review the difference between both branches before doing a merge?
I found out that the Code Review feature of TFS 2013 only works if you have the Premium edition of Visual Studio. Not all of the devs here have it, and we cannot install other editions for them, nor get VS2015 or later versions.
You can add a custom check in policy for code review before checking in. There is an existing Code Review Checkin Policy can be downloaded from website below, this policy allows you to enforce Code Reviews at checkin time.:
https://visualstudiogallery.msdn.microsoft.com/c476b708-77a8-4065-b9d0-919ab688f078

How to publicly share a Visual Studio Online Repository?

I was wondering if there was a way I could share my repository on VSO publicly? I use TFVC in Visual Studio, but I'll admit I'm new at it so I'm not really sure how to go about doing nor the steps to take to do it.
UPDATE 2018-05-10 There is now limited public preview of Public projects in VSTS
Join: https://blogs.msdn.microsoft.com/devops/2018/04/27/vsts-public-projects-limited-preview/
I have joined and have made one of my projects public. There are still significant limitations in its capabilities and the current goal is to enable folks using GitHub for Issues and Code to now use VSTS for CI/CD.
Example: https://nkdagility.visualstudio.com/vsts-sync-migration
While VSTS Public projects are still limited in capability you can still push your code to GitHub
You can use the https://marketplace.visualstudio.com/items?itemName=nkdagility.gittasks build tasks from the marketplace to publish/push your code to GitHub to make it public.
I do this with all of my Open Source projects so that i can use VSTS as primary and just post to GitHub. Even works to bring pull requests in from GitHub.
Example: https://github.com/nkdAgility/vsts-sync-migration

asp.net mvc 3 and continuous integration

I have recently learned about continuous integration. From my understanding, its a way to automatically push code to a test environment once code is checked in. Then, you can eventually easily push that code to a production environment.
Currently, I am using TFS for my source control for an ASP.NET MVC 3 project. My question is, what are the recommendations for continuous integration. Unfortunately, I do not have a budget to actually buy something. With that limitation in mind, what do other devs recommend?
Thank you!
Since you are using TFS you should be able to do continuous integration with team foundation without the need to buy anything else.
TeamCity is very popular, and free for up to 20 build configurations.
Version 7 was released last week and includes lots of new features such as NuGet packaging.

Resources