Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get the changeset number of a triggered build in TFS 2010

Tags:

tfs

tfsbuild

Can someone please tell me how I can get the changeset number, the current build of TFS 2010 was triggered for?

I want to extend the build worklfow if the build was triggered by a checkin and want to do some more processing for which I need the changesetnumber of the changeset that was created by the checkin.

Any ideas?

like image 247
Scordo Avatar asked Aug 19 '10 12:08

Scordo


People also ask

How do I find my TFS changeset number?

Find a changeset by IDIn Source Control Explorer, press Ctrl + G. The Go to Changeset dialog box appears. Type the number of the changeset and choose OK. If you don't know the number, choose Find.

How do I get a specific changeset in TFS?

Take searching for a changeset in Visual Studio's TFS Source Explorer. Luckily if super easy to do! When you're in the Source Explorer, simply press Ctrl + G and the Find ChangeSet dialog will appear.


1 Answers

I found the Solution. The Changesetnumber for which the build is triggered is populated in the Variable: BuildDetail.SourceGetVersion

like image 130
Scordo Avatar answered Oct 18 '22 22:10

Scordo