This script enumerates all projects belonging to a specific view and clones them. This is very handy if you created a new branch and need to setup build automation for it. The script has ample opportunity for improvement, error checking, only a single save etc, but it took me a while to make this work and wanted to share the progress so far. So if you have improvements, feel free to add them :-)
This is what the script does in detail:
- enumerate all projects that belong to a view
- clone each project
- give it a new name
- disable the project
- update the custom workspace
Note: the script assumes that you have a custom workspace declared, which all our projects have. If you don't have that, just take out the part of the code.