Note that there are some explanatory texts on larger screens.

plurals
  1. POCustom build activity - display changes made since previous commit
    primarykey
    data
    text
    <p>Using a custom activity inside the build template, is there a way to enumerate through the changes made since the previous build?</p> <p>I plan on eventually compiling a list of changes so when the build is triggered an E-mail is sent displaying information on the build as well as the changes made.</p> <p>Any information or links would be great.</p> <p>Thanks</p> <p><strong>Edit</strong></p> <p>Would something similar to this work, if I passed the changeset into my custom activity?</p> <pre><code>public sealed class ChangeSetActivity : CodeActivity { // Define an activity input argument of type string public InArgument&lt;string&gt; Text { get; set; } public InArgument&lt;IBuildDetail&gt; currentBuild { get; set; } public InArgument&lt;List&lt;IChangesetSummary&gt;&gt; changes { get; set; } public OutArgument&lt;string&gt; changeSet { get; set; } // If your activity returns a value, derive from CodeActivity&lt;TResult&gt; // and return the value from the Execute method. protected override void Execute(CodeActivityContext context) { // Obtain the runtime value of the Text input argument string text = context.GetValue(this.Text); string str = ""; foreach (IChangesetSummary c in changes.Get(context)) { str = string.Format("User - {0} Comment - {1}", c.CheckedInBy, c.Comment); } context.SetValue&lt;string&gt;(this.changeSet, str); } } </code></pre> <p>Obviously this is very basic stuff at the minute, just to get it working.</p> <p><strong>Edit</strong></p> <p>Found this:</p> <p><a href="http://blogs.msdn.com/b/codejunkie/archive/2010/09/02/custom-build-activity-for-tfs-2010-to-send-email-with-build-details-part-1.aspx" rel="nofollow">http://blogs.msdn.com/b/codejunkie/archive/2010/09/02/custom-build-activity-for-tfs-2010-to-send-email-with-build-details-part-1.aspx</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload