Is there an alternative to SCM polling when using the TFS plug-in

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Is there an alternative to SCM polling when using the TFS plug-in

MikeB

I'm very new to Hudson but I'm investigating its potential use in an MSBuild/MSTest/TFS environment. Things look good so far and I'm really impressed with Hudson's overall ease of config. However, I'll soon be looking at how well it integrates with TFS.

I don't have access to a TFS server at the moment and won't until next week. However, I'd be interested to know whether it's possible to trigger a build as a result of a TFS check-in or is it necessary to poll the SCM?

TIA,
MikeB
Reply | Threaded
Open this post in threaded view
|

Re: Is there an alternative to SCM polling when using the TFS plug-in

MikeB
MikeB wrote
I'd be interested to know whether it's possible to trigger a build as a result of a TFS check-in or is it necessary to poll the SCM?
I've RTFM now  and find that the TFS plugin only supports polling a Team Foundation Server to automatically start builds when there are changes.

My main concern here was that when the number of projects being managed is large, the polling could generate a lot of network traffic even for an essentially quiescent codebase. Of course that depends on how the polling it done and after a brief look at the sources for the plugin, it appears to use the history command from the tf.exe command line utility. I'll need to look into this.

A final point: I'm aware that this the TFS plugin is probably a bit of a niche subject on a Hudson mailing list. If there's a more appropriate forum for this, I'd appreciate it if someone could give me directions.

TIA,
/MikeB
Reply | Threaded
Open this post in threaded view
|

Re: Is there an alternative to SCM polling when using the TFS plug-in

Erik Ramfelt
On Sun, Jan 10, 2010 at 12:37, MikeB <[hidden email]> wrote:

>
>
> MikeB wrote:
>>
>>
>> I'd be interested to know whether it's possible to trigger a build as a
>> result of a TFS check-in or is it necessary to poll the SCM?
>>
>>
>
> I've RTFM now :blush: and find that the TFS plugin only supports polling a
> Team Foundation Server to automatically start builds when there are changes.

Yes, most of the Hudson SCMs supports polling only. Im not a TFS
expert but perhaps you could add some post commit (checkin policy?)
action on the TFS server to queue a build (by requesting
http://YOURHOST/hudson/job/PROJECTNAME/build).Subversion has post
commit hook scripts which can do it. Other than that, i cant think of
any other way Hudson than polling to determine if there has been any
changes on another server.

If you find out any info on how to do this, please add a section about
it at http://wiki.hudson-ci.org/display/HUDSON/Team+Foundation+Server+Plugin

>
> My main concern here was that when the number of projects being managed is
> large, the polling could generate a lot of network traffic even for an
> essentially quiescent codebase. Of course that depends on how the polling it
> done and after a brief look at the sources for the plugin, it appears to use
> the history command from the tf.exe command line utility. I'll need to look
> into this.

I would guess the polling can be both quite time consuming on the
Hudson and TFS servers. But I would use that approach when starting to
use Hudson to find out if it suits your needs. Then when you are
getting loads of projects, you can look into post commit actions.

>
> A final point: I'm aware that this the TFS plugin is probably a bit of a
> niche subject on a Hudson mailing list. If there's a more appropriate forum
> for this, I'd appreciate it if someone could give me directions.

Well, Hudson is a cross platform/tool CI server so this is definetly
the right forum to ask such questions.

//Erik

>
> TIA,
> /MikeB
>
> --
> View this message in context: http://n4.nabble.com/Is-there-an-alternative-to-SCM-polling-when-using-the-TFS-plug-in-tp1010281p1010638.html
> Sent from the Hudson users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Is there an alternative to SCM polling when using the TFS plug-in

Benson Margulies
In reply to this post by MikeB
If TFS has triggers, you can do the same thing that is recommended for svn.

On Sun, Jan 10, 2010 at 6:37 AM, MikeB <[hidden email]> wrote:

>
>
> MikeB wrote:
>>
>>
>> I'd be interested to know whether it's possible to trigger a build as a
>> result of a TFS check-in or is it necessary to poll the SCM?
>>
>>
>
> I've RTFM now :blush: and find that the TFS plugin only supports polling a
> Team Foundation Server to automatically start builds when there are changes.
>
> My main concern here was that when the number of projects being managed is
> large, the polling could generate a lot of network traffic even for an
> essentially quiescent codebase. Of course that depends on how the polling it
> done and after a brief look at the sources for the plugin, it appears to use
> the history command from the tf.exe command line utility. I'll need to look
> into this.
>
> A final point: I'm aware that this the TFS plugin is probably a bit of a
> niche subject on a Hudson mailing list. If there's a more appropriate forum
> for this, I'd appreciate it if someone could give me directions.
>
> TIA,
> /MikeB
>
> --
> View this message in context: http://n4.nabble.com/Is-there-an-alternative-to-SCM-polling-when-using-the-TFS-plug-in-tp1010281p1010638.html
> Sent from the Hudson users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Is there an alternative to SCM polling when using the TFS plug-in

Mark Waite
----- Original Message ----

> From: Benson Margulies <[hidden email]>
> To: [hidden email]
> Sent: Sun, January 10, 2010 12:15:41 PM
> Subject: Re: Is there an alternative to SCM polling when using the TFS plug-in
>
> If TFS has triggers, you can do the same thing that is recommended for svn.

I think this runs the risk of being a premature optimization.

Our Perforce experience was that a poll for new updates was inexpensive and not worth optimizing out, even with the server 8 time zones away.  Subversion may be different, but I would guess that TFS will behave more like Perforce than Subversion in this area.

Mark Waite

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]