Click here to Skip to main content
13,664,548 members
Click here to Skip to main content
Add your own
alternative version

Tagged as

Stats

2.2K views
Posted 12 Mar 2018
Licenced MIT

Setting Wild Card Branch Policies in @VSTS

, 12 Mar 2018
Rate this:
Please Sign up or sign in to vote.
How to set wild card branch policies in @VSTS

I’ve probably mentioned it before but keeping up with what’s happening with VSTS is incredible hard with their 3 week cadence and generally huge set of features each 3 weeks. This week at MVP Summit, I had what I thought would be a cool request to allow wild card branch policies. I was thinking of writing a console app to do this but thought it would be interesting to ask the product group as it’s part of the many benefits of being a MVP Smile.

The Ask

So the ask is that instead of each time I create a new branch I need to set the branch policies, I want to be able to set what the policies are before those branches are created. So basically, I would create a branch for release/* branches and then never worry that the policy is not set in the future.

The Solution

As with many other productivity requests, I generally have the individual PMs I was told by Jeremy Epling that this already exists today. Seems I missed another great feature in VSTS Smile with tongue out. To get started, you need to make sure you have a branch under the folder you would like to set the policy. This could mean you create a temporary branch just to set the branch policy.

Once created, you can:

  1. Click on the ellipse on the folder and then
  2. Branch policies

image

and then you can set the policies for any branches created under this folder, you should notice the /* in the branch name that you are setting the policies for.

image

Once you change the policy, you are able to delete the temp branch that has been created and any new branches in this path will automatically inherit the policies created.

Conclusion

There is a lot of great functionality in VSTS and sometimes if you are not following what’s going on properly in the product, you just have to try the experience you would like and might find it exists already.

Hope this helps others! Open-mouthed smile

License

This article, along with any associated source code and files, is licensed under The MIT License

Share

About the Author

Gordon Beeming (RSA)
Software Developer Nologo Studios
South Africa South Africa
Gordon Beeming works at Nologo Studios in the sunny city of Durban, South Africa. He is the Lead for the Data and Services Team and has a strong focus on Developer Efficiencies and R&D. When he's not hacking away at a keyboard in Visual Studio he'll generally be relaxing with his family or hitting the black top getting in some mileage. He is a Visual Studio ALM Rangers, Visual Studio ALM MVP.

http://beeming.net

You may also be interested in...

Comments and Discussions

 
-- There are no messages in this forum --
Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
Web01-2016 | 2.8.180810.1 | Last Updated 12 Mar 2018
Article Copyright 2018 by Gordon Beeming (RSA)
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid