Re: Unable to Trigger Build
Dan Rollo <[email protected]>
| Newsgroups | gmane.comp.java.cruise-control.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, I don't see anything obviously wrong with your config.xml. From your log, it seems the mercurialbootstrapper is working. (I noticed the log message uses the wrong classname [svnbootstrapper], I've fixed that in the trunk). You might try running CruiseControl with the -debug switch to see the exact commands being issued by the mercurial sourcecontrol. Then you can try executing the same commands manually in a shell and see if you get any changes shown in the history result. Have you also tried leaving out the 'hgcommand' attribute (should not make any difference), and/or using hgcommand='log' ? If you try this, the "-debug" switch output might help to find out why no changes are being detected. Please let us know what you find. Dan From: Jie Sheng Chua <[email protected]> Subject: [Cruisecontrol-user] Unable to Trigger Build To: [email protected] Hi People, I have a project that I was CruiseControl to build whenever I commit to Mercurial, Bitbucket. But I only manage to let it update and it does not trigger build. How do I make it build when he detect a commit in Mercurial? Please help. ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- config.xml ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- <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" /> </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> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Log from CruiseControl ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- [cc]Aug-14 17:13:48 Project - Project CS2103T_CE1: in build queue [cc]Aug-14 17:13:48 jectController- CS2103T_CE1 Controller: build progress event: in build queue [cc]Aug-14 17:13:48 BuildQueue - now adding to the thread queue: CS2103T_CE1 [cc]Aug-14 17:13:48 Project - Project CS2103T_CE1: bootstrapping [cc]Aug-14 17:13:48 jectController- CS2103T_CE1 Controller: build progress event: bootstrapping [cc]Aug-14 17:13:51 VNBootstrapper- warning: certificate for bitbucket.org can't be verified (Python too old) [cc]Aug-14 17:13:52 VNBootstrapper- warning: certificate for bitbucket.org can't be verified (Python too old) [cc]Aug-14 17:13:53 VNBootstrapper- warning: certificate for bitbucket.org can't be verified (Python too old) [cc]Aug-14 17:13:53 VNBootstrapper- pulling from https://[username]:***@bitbucket.org/chuajiesheng/cs2103t_ce1 [cc]Aug-14 17:13:54 VNBootstrapper- warning: certificate for bitbucket.org can't be verified (Python too old) [cc]Aug-14 17:13:55 VNBootstrapper- searching for changes [cc]Aug-14 17:13:55 VNBootstrapper- warning: certificate for bitbucket.org can't be verified (Python too old) [cc]Aug-14 17:13:55 VNBootstrapper- warning: certificate for bitbucket.org can't be verified (Python too old) [cc]Aug-14 17:13:56 VNBootstrapper- warning: certificate for bitbucket.org can't be verified (Python too old) [cc]Aug-14 17:13:57 VNBootstrapper- warning: certificate for bitbucket.org can't be verified (Python too old) [cc]Aug-14 17:13:58 VNBootstrapper- warning: certificate for bitbucket.org can't be verified (Python too old) [cc]Aug-14 17:13:59 VNBootstrapper- warning: certificate for bitbucket.org can't be verified (Python too old) [cc]Aug-14 17:14:00 VNBootstrapper- adding changesets [cc]Aug-14 17:14:00 VNBootstrapper- warning: certificate for bitbucket.org can't be verified (Python too old) [cc]Aug-14 17:14:00 VNBootstrapper- adding manifests [cc]Aug-14 17:14:00 VNBootstrapper- adding file changes [cc]Aug-14 17:14:00 VNBootstrapper- added 1 changesets with 1 changes to 1 files [cc]Aug-14 17:14:01 VNBootstrapper- warning: certificate for bitbucket.org can't be verified (Python too old) [cc]Aug-14 17:14:01 VNBootstrapper- 1 files updated, 0 files merged, 0 files removed, 0 files unresolved [cc]Aug-14 17:14:02 Project - Project CS2103T_CE1: checking for modifications [cc]Aug-14 17:14:02 jectController- CS2103T_CE1 Controller: build progress event: checking for modifications [cc]Aug-14 17:14:02 Mercurial - Using Mercurial: 'version 1.9.1' [cc]Aug-14 17:14:05 Mercurial - warning: certificate for bitbucket.org can't be verified (Python too old) [cc]Aug-14 17:14:06 Mercurial - warning: certificate for bitbucket.org can't be verified (Python too old) [cc]Aug-14 17:14:07 Mercurial - warning: certificate for bitbucket.org can't be verified (Python too old) [cc]Aug-14 17:14:08 Mercurial - warning: certificate for bitbucket.org can't be verified (Python too old) [cc]Aug-14 17:14:08 Project - Project CS2103T_CE1: No modifications found, build not necessary. [cc]Aug-14 17:14:08 Project - Project CS2103T_CE1: idle [cc]Aug-14 17:14:08 jectController- CS2103T_CE1 Controller: build progress event: idle [cc]Aug-14 17:14:08 Project - Project CS2103T_CE1: next build in 5 minutes [cc]Aug-14 17:14:08 Project - Project CS2103T_CE1: waiting for next time to build [cc]Aug-14 17:14:08 jectController- CS2103T_CE1 Controller: build progress event: waiting for next time to build Thanks and Best Regards Chua Jie Sheng ------------------------------------------------------------------------------ uberSVN's rich system and user administration capabilities and model configuration take the hassle out of deploying and managing Subversion and the tools developers use with it. Learn more about uberSVN and get a free download at: http://p.sf.net/sfu/wandisco-dev2dev