Return-Path: Delivered-To: apmail-continuum-dev-archive@www.apache.org Received: (qmail 54488 invoked from network); 16 Feb 2009 03:14:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Feb 2009 03:14:19 -0000 Received: (qmail 27190 invoked by uid 500); 16 Feb 2009 03:14:19 -0000 Delivered-To: apmail-continuum-dev-archive@continuum.apache.org Received: (qmail 27161 invoked by uid 500); 16 Feb 2009 03:14:19 -0000 Mailing-List: contact dev-help@continuum.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@continuum.apache.org Delivered-To: mailing list dev@continuum.apache.org Received: (qmail 27150 invoked by uid 99); 16 Feb 2009 03:14:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Feb 2009 19:14:18 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ctan@exist.com designates 209.85.200.173 as permitted sender) Received: from [209.85.200.173] (HELO wf-out-1314.google.com) (209.85.200.173) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Feb 2009 03:14:10 +0000 Received: by wf-out-1314.google.com with SMTP id 25so2005269wfc.14 for ; Sun, 15 Feb 2009 19:13:49 -0800 (PST) MIME-Version: 1.0 Received: by 10.143.6.19 with SMTP id j19mr1241309wfi.128.1234754029141; Sun, 15 Feb 2009 19:13:49 -0800 (PST) In-Reply-To: <3E051BE5-C422-4C05-959F-1CD3B2BDEA2D@apache.org> References: <10c62ca80901221807w5cbd1020i69fdd2dd8f15e92a@mail.gmail.com> <10c62ca80901260443p771171a3ob3c9b92a9ef58c1@mail.gmail.com> <3E051BE5-C422-4C05-959F-1CD3B2BDEA2D@apache.org> Date: Mon, 16 Feb 2009 11:13:49 +0800 Message-ID: <10c62ca80902151913q61ef286fqa0254846ad167373@mail.gmail.com> Subject: Re: In distributed build, how does Continuum decide whether there have been scm changes? From: Marica Tan To: dev@continuum.apache.org Content-Type: multipart/alternative; boundary=00504502c7a74abf9604630093f6 X-Virus-Checked: Checked by ClamAV on apache.org --00504502c7a74abf9604630093f6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On Tue, Jan 27, 2009 at 8:46 AM, Brett Porter wrote: > > On 26/01/2009, at 5:43 AM, Marica Tan wrote: > > So here's my problem. As you can see from the scenario above, when it >> tried >> to build from agent 2 at 2:00, it checked out the project at r101 with no >> scm changes. >> How can it get the changes from r100 to r101? This also happens at 3:00. >> It >> only gets the scm changes from r101 to r102. It can only have the scm >> changes from r100 to r102 if it build on agent 1 again just like at 3:30 >> (merging of scm results will happen). >> >> Do you know how to solve this? Any suggestions? >> > > One of the reasons I initially thought it'd be good to attach the agent to > use to a build definition was that it meant that it wouldn't matter - the > checkout on the agent could be used to determine (because we actually want > to separate the update checks per build definition). > > >> >> >> Here's also a solution on what Wendy wants: (though i'm not that familiar >> with version controls, just know how to use one, so I don't know if this >> will work) >> >> 1.) agent updates checkout >> 2.) return result with revision number? >> 3.) master checks if up to date and perform other checks to determine >> whether agent should build the project or not. scm result may need an >> additional field like "Revision Number" >> 4.) master then decides whether to let the agent build or not based on #3 >> >> >> Is it possible to get the revision number when we do an update in >> continuum? >> > > Yep, but something to bear in mind is that not all systems support an > atomic revision number (eg, CVS). Perhaps the date could be used in its > stead here - as long as it's used consistently (with no gaps in time) it > should be fine (though date is bad to use in subversion, since it doesn't > always work). > > I was actually thinking we should create a separate record from the > checkout about what the last build was anyway (as this would support the > multiple build definitions as well). This might be a good opportunity. > > How do you get the last commit date in Maven SCM? --00504502c7a74abf9604630093f6--