is there is any possibility to generate a list of work items or/and changesets, associated with the team build ? We want to drop some history.log file in conjunction with setup.exe, which can be used by our quality center to identify changes between last successful build, or even better, starting from some special build. tf -history does not fullfill this requirement. List of changesets is at the moment for us more preferable, as the list of work items, because we use an external tool, tracking the tasks/bugs. This history.log will be then used for the release notes generation. Looking forward to any suggestion !
Take a look at the Trigger Files Iterator Action. This will iterate a collection of changes which we pull from tfs when the build starts. The changes are those that occurred since the last build in TFS.
This article also details how to use the Trigger Files collection from script :
Using Trigger Files Iterator action it is possible to get all files associated with the build - this feature is great and it’s good to know about it, but it does not really helps in our case. We would like to have a list of all change-sets (and in future also work items), associated with the build. It means: {CS_ID, CS_User, CS_Comment}. Would it be possible to create some special TFS action, which will generate (iterate) all that items ? Many thanks in advance !
Unfortunately what you are asking is not possible… at least we haven’t found a way to do it. The issue is that TFS doesn’t actually record that information until the build has completed, so you cannot actually determine the information during the build.