How to write a Team Build Process Template (2010) from scratch? - tfs

I know DefaultTemplate.xaml does everything needed. But I gonna learn team build this by creating an entire new build process from scratch. I need to know which activities must be included, in which order and so on. This must be using WF in Team Build 2010.
Many Thanks in Advance
UPDATE:
I found this link in MSDN that describes build definitions completely, but does not contain anything about Microsoft.TeamFoundation.Build.Workflow.Activities namespace.
UPDATE 2:
I found a similar question in the MSDN Forums.
UPDATE 3:
Found a link titled "Customize Team Build 2010". But this does not help more too.

Take a look at the upgrade template. If you remove the MSBuild activity, you're fairly close to a minimal build workflow that still supports gated check-ins, etc.

Related

SSIS 2016 build with Jenkins

we want to implement automated SSIS build deployment to SSISCatalogDB using Jenkins. As per my research, MSBuild out of box does not support the SSIS build so we need to use some open source code from Codeplex which is not active since last few years. And even with that code, there are so many DLL issue and verison issues, that there is no guarantees that that dll will actually work on build server.
So my question is, please let me know if there is any third party product (may be red-gate..) which can actually do this.
Please advise, any guidance is appreciated.
The only product I know that might do this is DILM Suite, but I'm not sure whether this has a command line. I'd suggest contacting the tool's developer, Andy Leonard.

Migrating a build definition from TFS to VSTS

I've been tasked with migrating a build from TFS to VSTS, I've used TFS from a developer point of view, however I've never created builds. Can anyone give me any advice where to start, good websites, tutorials, tools that might help, anything that might catch me out etc, basically my knowledge on this is very limited so anything would help. I've no doubt there must be somebody out there who can say we've done this, here is what we did...the new VSTS build will need to be a copy of the TFS build however some analysis needs to be done as the build process is old and certain parts may not be necessary. Thanks in advance!
Migrate New Vnext build definition from TFS to VSTS
If you want to template your builds or move them from TFS to VSTS, you could also use the REST API's to perform this. Details please refer this blog: HOW TO MOVE BUILD DEFINITIONS IN TFS TO OTHER PROJECTS USING THE REST API
Another example shown here. It shows how to get the JSON response of a build definition and again using the same reference to make a new one in the project you desire.
Migrate Old XAML to New Vnext build definition from TFS to VSTS
Unfortunately, there will not be any automated conversion processes. The new builds are based on a different architecture and run on a completely different system. And you can use both the new builds and agents alongside your XAML builds, controllers, and agents.
If you have heavily customized XAML builds and custom activities, you
can continue using those builds until you are ready to port your
business logic into scripts that can run in the new builds.
You should also take a look at these series of articles by jessehouwing devoted specifically to the case like yours.
About how to create a build, you could refer this tutorial from MSDN.

Keeping History when moving Team Projects TFS

I am working on a TFS Implementation where the original Project that was created has a cpace in the name. This is causing issue in our builds since we need to kick off a batch file for the Deploy process and the space in the name creates some issues with the path name of the build folder. With this, I want to create a new project without the space. As you can imagine, I would like to keep the revision history of the Source Code if possible.
I have looked at this StackOverflow
Team Foundation Server - Moving Source with History
But I am a bit confused about what I would need to do. Is there someone out there that can point me to a document that is more friendly to someone who doesn't have a lot of TFS experience.
We've been faced with a similar task and we've used the TFS Integration Platform which might be of use to you.
Here's a couple of good blog posts on how to use it:
TFS Integration Tools - Part 1
TFS Integration Tools - Part 2

Run only recently re-built tests in TFS

My team has TFS build machine building checkins.
Today, we have more than a dozen build definitions to prevent building projects/running test in unaffected areas. This was when we weren't using incremental build.
Now that we enabled incremental sync/build, I am thinking about creating one giant gate definition that include all my team's source code. Since incremental sync/build is enabled, unchanged files don't get built anyway. But TFS is still running all tests.
Is there a way to dynamically pick just test assemblies that were built recently?
I can do it by modifying build template to filter out test assemblies that are more x hrs old but before I go that route, I wanted to check if there is something already available.
thanks
Customizing the template is the right path. Beside the official documentation, take a look at ALM Rangers' Build Customization Guide.
The FindMatchingFiles activity has no date filtering, so you have to roll your own.

How to quickly delete all build definition?

In Build page in Team Explorer, we have a list of build definition and when select them all, the delete command is disabled.
Selecting only one enable us to delete it.
Is there other places where we can quickly clear all the build definition?
To Deletion of the build, The documentation is here have a look for deletion
http://msdn.microsoft.com/en-us/library/gg475877(v=vs.100).aspx#deletebuild
just goto "To delete a completed build" this section and read
Updated: (I thought you were asking for build deletion)
Here I found a tool called Team Project Manager, It allows you to automates various tasks as they mentioned. you can try this
http://teamprojectmanager.codeplex.com/
There is a free tool called the Community TFS Build Manager that allows bulk operations on Build Definitions (including Delete). You can find the 2013 version here: http://visualstudiogallery.msdn.microsoft.com/73bf2d8e-aec6-406c-8e7f-1c678e46557f

Resources