Build restarts itself, killing the log?

Paul Müller-Salget <[email protected]>
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <02738CCB0516AA4DB10D40CC92B19D9F4351663744@MBX12.EXCHPROD.USA.NET>
Hi all,

I have a strange CruiseControl issue:

Every night we run a special build target, that builds a tag that was done automatically.

This target needs ~90 minutes to complete.

Since some days, I only get logs if the build fails, but not if it succeeded.

The Wrapper log shows the following:

INFO   | jvm 4    | 2009/10/12 23:56:54 | [cc]Oct-12 23:56:54 ScriptRunner  -    [testng]   at org.testng.TestNG.main(TestNG.java:874)
INFO   | jvm 4    | 2009/10/12 23:56:55 | [cc]Oct-12 23:56:55 ScriptRunner  -      [echo] Finished 20091012 run at 2356
INFO   | jvm 4    | 2009/10/12 23:56:55 | [cc]Oct-12 23:56:55 ScriptRunner  -      [echo] [cleanup]
INFO   | jvm 4    | 2009/10/12 23:57:12 | [cc]Oct-12 23:57:11 ScriptRunner  -      [exec] Remove-Item : The specified path, file name, or both are too long. The fully qu
INFO   | jvm 4    | 2009/10/12 23:57:12 | [cc]Oct-12 23:57:11 ScriptRunner  -      [exec] alified file name must be less than 260 characters, and the directory name must
INFO   | jvm 4    | 2009/10/12 23:57:12 | [cc]Oct-12 23:57:11 ScriptRunner  -      [exec]  be less than 248 characters.
INFO   | jvm 4    | 2009/10/12 23:57:12 | [cc]Oct-12 23:57:11 ScriptRunner  -      [exec] At D:\CruiseControl\scripts\cleanup_nightlytag.ps1:38 char:24
INFO   | jvm 4    | 2009/10/12 23:57:12 | [cc]Oct-12 23:57:11 ScriptRunner  -      [exec] +                     $out = remove-item  <<<< $DIR -force -recurse
INFO   | jvm 4    | 2009/10/12 23:59:44 | [cc]Oct-12 23:59:44 Project       - Project HEAD_night_tag_permwin04:  idle
INFO   | jvm 4    | 2009/10/12 23:59:44 | [cc]Oct-12 23:59:44 jectController- HEAD_night_tag_permwin04 Controller: build progress event: idle
INFO   | jvm 4    | 2009/10/12 23:59:44 | [cc]Oct-12 23:59:44 Project       - exception attempting build in project HEAD_night_tag_permwin04
INFO   | jvm 4    | 2009/10/12 23:59:44 | net.sourceforge.cruisecontrol.CruiseControlException: ant logfile D:\CruiseControl\.\log.xml does not exist.
INFO   | jvm 4    | 2009/10/12 23:59:44 |               at net.sourceforge.cruisecontrol.builders.AntBuilder.getAntLogAsElement(AntBuilder.java:444)
INFO   | jvm 4    | 2009/10/12 23:59:44 |               at net.sourceforge.cruisecontrol.builders.AntBuilder.build(AntBuilder.java:227)
INFO   | jvm 4    | 2009/10/12 23:59:44 |               at net.sourceforge.cruisecontrol.Schedule.build(Schedule.java:169)
INFO   | jvm 4    | 2009/10/12 23:59:44 |               at net.sourceforge.cruisecontrol.Project.build(Project.java:226)
INFO   | jvm 4    | 2009/10/12 23:59:44 |               at net.sourceforge.cruisecontrol.Project.execute(Project.java:147)
INFO   | jvm 4    | 2009/10/12 23:59:44 |               at net.sourceforge.cruisecontrol.ProjectConfig.execute(ProjectConfig.java:402)
INFO   | jvm 4    | 2009/10/12 23:59:44 |               at net.sourceforge.cruisecontrol.ProjectWrapper.run(ProjectWrapper.java:69)
INFO   | jvm 4    | 2009/10/12 23:59:44 |               at java.lang.Thread.run(Thread.java:619)

I read this like:
At 23:57:12 the build was almost done and doing the cleanup (never mind the error message there, it can be ignored).
Than at 23:59:44 the build went idle and was restarted, effectively killing the still running build and its logfile?

Anyone ever experienced something like this?

This is the configuration of the project:

<project name="${env.BRANCH}_night_tag_${env.HOSTNAME}">

                <listeners>
                               <currentbuildstatuslistener file="logs/${project.name}/status.txt" />
                </listeners>


                <bootstrappers>
                               <cvsbootstrapper localWorkingCopy="projects/${project.name}/checkout/build"/>
                </bootstrappers>

                <modificationset quietperiod="30">
                               <!-- filesystem folder="stuff/nightlytag_${env.BRANCH}"/ -->
                               <alwaysbuild
                               username="build">
                               </alwaysbuild>
                </modificationset>

                <schedule>
                               <ant
                                               time                      ="2230"
                                               target                   ="night_cc_tag_${env.BRANCH}"
                                               buildfile               ="build.xml"
                                               antscript              ="C:\Program Files (x86)\apache-ant-1.6.5\bin\ant.bat"
                                               antWorkingDir  ="."
                                               usequiet="true">
                                               <property name="branch" value="${env.BRANCH}"/>
                                               <property name="projectName" value="${project.name}"/>
                                               <property name="noDepends" value="true"/>
                               </ant>
        </schedule>


                <log
                               dir                          ="logs/${project.name}">
                </log>

                 <publishers>
                                               <execute
                                                               command="scripts/publish.bat ${project.name}">
                                               </execute>
                                               <onfailure>
                                                               <antpublisher antscript="C:\Program Files (x86)\apache-ant-1.6.5\bin\ant.bat"
                                                                              antworkingdir="."
                                                                              buildfile="build.xml"
                                                                              uselogger="true"
                                                                              usedebug="false"
                                                                              usequiet="true"
                                                                              target="cleanup_fail_nightlytag">
                                                                              <property name="branch" value="${env.BRANCH}"/>
                                                                              <property name="projectName" value="${project.name}"/>
                                                               </antpublisher>
                                               </onfailure>

                                               <onfailure>
                                                               <antpublisher antscript="C:\Program Files (x86)\apache-ant-1.6.5\bin\ant.bat"
                                                                              antworkingdir="."
                                                                              buildfile="build.xml"
                                                                              uselogger="true"
                                                                              usedebug="false"
                                                                              usequiet="true"
                                                                              target="failure">
                                                                              <property name="project.name" value="${project.name}"/>
                                                               </antpublisher>
                                               </onfailure>
                </publishers>

</project>

---------------------------------------------------------------------------
[cid:[email protected]]<http://www.recommind.de/>

Paul Müller-Salget
Release Management - Services & Infrastructure
Senior Systems Engineer
Recommind, Inc.

Office: +49 2226 159 66-17
Fax:+49 (0) 2226 159 66 99
Email: [email protected]<mailto:[email protected]>



Recommind GmbH, Vertretungsberechtigter Geschäftsführer Hartwig Laute, Registergericht Amtsgericht Bonn, Registernummer HRB 10646

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference

_______________________________________________
Cruisecontrol-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user
image001.png (image/png, 5.7 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.