Re: Unable to Trigger Build
Dan Rollo <[email protected]>
| Newsgroups | gmane.comp.java.cruise-control.user |
|---|---|
| Message-ID | <[email protected]> |
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