mercurial detects changes but does not trigger build
Stephen Roberts <[email protected]>
| Newsgroups | gmane.comp.java.cruise-control.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Folks,
I am trying to set up the connectfour project that comes with CC to trigger
a build when a file in mercurial changes. Here is what I did:
INSTALL_DIR\projects\connectfour\ I did a hg init
Then in
INSTALL_DIR\stephensprojects\chekout I clone it.
This then my config.xml:
<cruisecontrol>
<project name="connectfour" buildafterfailed="true">
<listeners>
<currentbuildstatuslistener file="stephensprojects/logs/status.txt" />
</listeners>
<!-- Bootstrappers are run every time the build runs, *before*
the modification checks -->
<bootstrappers>
<mercurialbootstrapper localworkingcopy="stephensprojects/checkout" />
</bootstrappers>
<!-- Defines where cruise looks for changes, to decide whether
to run the build -->
<modificationset quietperiod="10">
<mercurial localworkingcopy="stephensprojects/checkout" />
</modificationset>
<!-- Configures the actual build loop, how often and which
build file/target -->
<schedule interval="15">
<ant anthome="apache-ant-1.7.0"
buildfile="stephensprojects/checkout/build.xml" />
</schedule>
<!-- directory to write build logs to -->
<log>
<merge dir="projects/${project.name}/target/test-results" />
</log>
<publishers>
<onsuccess>
<artifactspublisher dest="artifacts/${project.name}"
file="projects/${project.name}/target/${project.name}.jar" />
</onsuccess>
</publishers>
</project>
<dashboard />
</cruisecontrol>
Now, I make a change in the original project from where I cloned, and in the
logs I see:
[cc]May-03 19:16:08 VNBootstrapper- pulling from d:\Program
Files\CruiseControl\projects\connectfour
[cc]May-03 19:16:08 VNBootstrapper- searching for changes
[cc]May-03 19:16:08 VNBootstrapper- adding changesets
[cc]May-03 19:16:08 VNBootstrapper- adding manifests
[cc]May-03 19:16:08 VNBootstrapper- adding file changes
[cc]May-03 19:16:08 VNBootstrapper- added 1 changesets with 1 changes to 1
files
[cc]May-03 19:16:08 VNBootstrapper- 1 files updated, 0 files merged, 0 files
removed, 0 files unresolved
[cc]May-03 19:16:08 Project - Project connectfour: checking for
modifications
[cc]May-03 19:16:08 jectController- connectfour Controller: build progress
event: checking for modifications
[cc]May-03 19:16:08 Mercurial - Using Mercurial: 'version 1.8.2'
[cc]May-03 19:16:08 Project - Project connectfour: No modifications
found, build not necessary.
[cc]May-03 19:16:08 Project - Project connectfour: idle
So it picks up the changes but doesn't kick off a build. What is wrong here?
Thanks
Stephen
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today. Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Cruisecontrol-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user