Hi Steven,

 

William's solution works.  It is actually very simply. Grant Holliday 
<http://ozgrant.com/>  recently showed me how to do this.

 

Team Build already has the property 'NoCICheckInComment' that contains the 
***NO_CI*** value.

 

 

<Exec WorkingDirectory="$(SolutionRoot)"

Command="$(TF) checkin /comment:&quot;$(NoCICheckInComment) AssemblyInfo 
updated to: $(MaxAssemblyVersion). AssemblyFileVersion updated: to 
$(MaxAssemblyFileVersion)&quot; /noprompt /override:&quot;Auto-Build: Version 
Update&quot; /recursive &quot;$(AssemblyInfoFile)&quot;"/>

 

Where AssemblyInfoFile = '{Path}AssemblyInfo.cs'

 MaxAssemblyVersion='x.x.x.x'.


Cheers

Dave

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of William 
Bartholomew
Sent: Wednesday, 16 April 2008 10:00 AM
To: [email protected]
Subject: RE: [OzTFS] Versioning causes CI build

 

Steven,

 

Buck discusses this here:

http://blogs.msdn.com/buckh/archive/2007/07/27/tfs-2008-how-to-check-in-without-triggering-a-build-when-using-continuous-integration.aspx

 

Basically, if the comment contains ***NO_CI*** then a build won't be initiated.

 

Cheers,

William

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Nagy
Sent: Wednesday, 16 April 2008 9:51 AM
To: [email protected]
Subject: [OzTFS] Versioning causes CI build

 

Hi folks,

So we have a nightly build and a check in build.

When our nightly build runs, we update the version number, and during this 
process we also checkout the main app's version.cs file to update the version 
numbers and check it back in again. 

 

This checkin from our nightly build causes a checkin build to run, which we 
don't want to happen.

How can I prevent this from happening?

 

- Can we disable checkin builds form happening during set times, Ie 12am to 6am.

- Could we tell CI builds to ignore checkins from a particular account? (ie, 
the build service account)

- Set the version.cs file as permanently ignore for sparking a checkin build?

 

Any other ideas welcome.

Cheers! Steve

 

OzTFS.com - to unsubscribe from this list, send a message back to the list with 
'unsubscribe' as the subject. View the web archives at 
http://www.mail-archive.com/[email protected]/
Powered by mailenable.com, supported by www.readify.net 

OzTFS.com - to unsubscribe from this list, send a message back to the list with 
'unsubscribe' as the subject. View the web archives at 
http://www.mail-archive.com/[email protected]/
Powered by mailenable.com, supported by www.readify.net 

**********************************************************************
                                WARNING

This email message and any attached files may contain information
that is confidential and subject of legal privilege intended only for
use by the individual or entity to whom they are addressed.   If you
are not the intended recipient or the person responsible for
delivering the message to the intended recipient be advised that you
have received this message in error and that any use, copying,
circulation, forwarding, printing or publication of this message or
attached files is strictly forbidden, as is the disclosure of the
information contained therein. If you have received this message in
error, please notify the sender immediately and delete it from your
inbox.

AFP Web site: http://www.afp.gov.au
**********************************************************************



OzTFS.com - to unsubscribe from this list, send a message back to the list with 
'unsubscribe' as the subject. View the web archives at 
http://www.mail-archive.com/[email protected]/

Powered by mailenable.com, supported by www.readify.net

Reply via email to