Re: Unable to Trigger Build
Jie Sheng Chua <[email protected]>
| Newsgroups | gmane.comp.java.cruise-control.user |
|---|---|
| Message-ID | <CAKuaaP4nkmpdTLYqsvv19jOq8+vmcCoFGkjriDiNVKkD5NJsrg@mail.gmail.com> |
I just happen to find a similar bug, I would say, dated back to May this year. A the following: http://old.nabble.com/mercurial-detects-changes-but-does-not-trigger-build-td31534608.html I went and read through the code. The last modification for Mercurial.java was on Fri Jan 9 11:19:04 2009 UTC which 2 years, 7 months ago. The code located at: http://cruisecontrol.svn.sourceforge.net/viewvc/cruisecontrol/trunk/cruisecontrol/main/src/net/sourceforge/cruisecontrol/sourcecontrols/Mercurial.java?revision=4268&view=markup Have an interesting comment in getModifications() which says, // TODO: should we filter out the results ? // modifications = filterModifications(modifications, lastBuildDate, now); Seem to make me think that something is missing from the code? Do you have any problem with the build not triggered? Regard Jie Sheng On 17 August 2011 05:15, Dan Rollo <[email protected]> wrote: > > If I follow what's happening correctly, it sort of makes sense: > > Only the <boostrapper> does a "pull" to update your local repo. > > The <modificationset> does not do anything to update the local files. > > So I'm not surprised no change is detected when you comment out the > bootstrapper. > > Of more concern is why no change is detected when the bootstrapper is > active. (Even when the log shows the bootstrapper updated the local dir > with changes). > > To decrease the noise in the log, you may want to disable the Dashboard > communication thread while you debug this (see: > http://cruisecontrol.sourceforge.net/main/install.html#startupcruisecontrol) > "-postenabled false > > With -debug, I'd expect to see the exact command the mercurial > modificationset is executing. You could then stop CC and execute the > same command manually and see if any changes are found (and/or see why > not...). But I don't see that command in the log you posted. This may be > a case where the command you need only shows in the console output (not > in the log)... > > Dan > > > > Date: Mon, 15 Aug 2011 23:18:52 +0800 > From: Jie Sheng Chua <[email protected]> > Subject: Re: [Cruisecontrol-user] Unable to Trigger Build > To: [email protected] > > Hi, > > I discover something that I find it interesting. > I unabled to attach a log.txt. It is located here: > http://www.comp.nus.edu.sg/~jiesheng/log.txt > This is the log which have -debug switched on but config.xml unchanged. > Look at the time around "Aug-15 21:58:21" for log.txt, which is when > the change is commited. > > Another attached is log2.txt > This is done with a slight change to config.xml. > I comment off the mercurialbootstrapper. > This time it build, but changes are not updated. i.e detected change > but file not updated > > <project name="CS2103T_CE1"> > > <listeners> > <currentbuildstatuslistener > file="logs/${project.name}/status.txt"/> > </listeners> > > <bootstrappers> > <!--<mercurialbootstrapper > localworkingcopy="projects/${project.name}"> > </mercurialbootstrapper>--> > <!--<antbootstrapper > anthome="apache-ant-1.7.0" > buildfile="projects/${project.name}/build.xml" target="test" />--> > </bootstrappers> > > <modificationset quietperiod="30"> > <!-- touch any file in connectfour project to > trigger a build --> > <mercurial > localworkingcopy="projects/${project.name}" hgcommand="incoming" /> > <!--<filesystem > folder="/projects/${project.name}" />--> > </modificationset> > > <schedule interval="300"> > <ant anthome="apache-ant-1.7.0" > buildfile="projects/${project.name}/build.xml" target="test" /> > </schedule> > > <log> > <merge > dir="projects/${project.name}/target/test-results"/> > </log> > > <publishers> > <artifactspublisher > dest="artifacts/${project.name}" dir="projects/${project.name}/report" > /> > <onsuccess> > <artifactspublisher > dest="artifacts/${project.name}" > file="projects/${project.name}/dist/${project.name}.jar"/> > </onsuccess> > </publishers> > > </project> > > Thanks alot for helping me out with this! > > Thank and Best Regard > Chua Jie Sheng > > On 15 August 2011 10:44, Dan Rollo <[email protected]> wrote: > > > Hi, > > > > > ------------------------------------------------------------------------------ > Get a FREE DOWNLOAD! and learn more about uberSVN rich system, > user administration capabilities and model configuration. Take > the hassle out of deploying and managing Subversion and the > tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 > _______________________________________________ > Cruisecontrol-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user ------------------------------------------------------------------------------ Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 _______________________________________________ Cruisecontrol-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user