0

チームビルドの達人

ビルドメール通知に含まれる「関連するチェンジセット」リストを探しています

たとえば、デフォルトでは、次のようなビルド通知を受け取ります。

Team Project:   Content Server
Build Number:   MerchantPortal_1.0.0707.69
Build Agent:    \Content Server\MerchantPortalBuildBox
Build Definition:   \Content Server\MerchantPortal QA
Build started by:   ENETDOM\jrichter
Build Start Time:   7/7/2009 8:25:30 AM
Build Finish Time:  7/7/2009 8:30:49 AM

Notes: 
- All dates and times are shown in GMT -05:00:00 Central Daylight Time
- You are receiving this notification because of a subscription created by ENETDOM\enbuild
Provided by Microsoft Visual Studio® Team System 2008

私が本当に欲しいのは、変更を含む電子メールです。したがって、ユーザーは変更のリストを取得するためにURLをクリックする必要はありません。だから...私は代わりに次のようなメールになります:

Team Project:   Content Server
Build Number:   MerchantPortal_1.0.0707.69
Build Agent:    \Content Server\MerchantPortalBuildBox
Build Definition:   \Content Server\MerchantPortal QA
Build started by:   ENETDOM\enbuild
Build Start Time:   7/7/2009 8:25:30 AM
Build Finish Time:  7/7/2009 8:30:49 AM


**Associated changesets:
482 DOMAIN\johny    Not needed...
486 DOMAIN\adam A final synchronization with SourceSafe files after the 15 december release.
487 DOMAIN\bob  Corrected the naught millenium bug....
488 DOMAIN\sarah    Reverted back to csproj file with SC changes....
Associated  work items:**
....


Notes: 
- All dates and times are shown in GMT -05:00:00 Central Daylight Time
- You are receiving this notification because of a subscription created by ENETDOM\enbuild
Provided by Microsoft Visual Studio® Team System 2008
4

2 に答える 2

0

次のコードを使用して、関連する変更セットを取得できます。

TeamFoundationServer tfs = TeamFoundationServerFactory.GetServer(TeamFoundationServerUrl);
IBuildServer buildServer = (IBuildServer)tfs.GetService(typeof(IBuildServer));
IBuildDetail build = buildServer.GetAllBuildDetails(new Uri(BuildUri));

List<IChangesetSummary> assocChangesets = InformationNodeConverters.GetAssociatedChangesets(build);

Web サービスを使用してビルドをリッスンし、eventXml から BuildUri を読み取ることができます。

于 2010-11-25T07:27:48.610 に答える
0

これを可能にする構成オプションは私が知っているものではありません。

サーバーにアクセスできる場合は、サーバー上のイベント システムにフックするカスタム コードを記述して、独自の電子メール形式を作成する方法があると思います。しかし、それは私が思うに多くの仕事になるでしょう。

メールの内容をカスタマイズする方法がないのがもどかしいのは同意します。

于 2010-05-05T20:32:59.597 に答える