From jersinghaus at nmda.nmsu.edu Mon Nov 2 13:48:07 2009 From: jersinghaus at nmda.nmsu.edu (Joe Ersinghaus) Date: Mon, 02 Nov 2009 11:48:07 -0700 Subject: [Cruisecontrolrb-users] a few noob questions Message-ID: <4AEF2967.80301@nmda.nmsu.edu> Hello, I've got cruisecontrol.rb running and testing an air/fluint application successfully and just had a few questions I could not find the answers to in the docs although that doesn't mean they're not there? :) 1. Is there a way to publish the junit formatted xml test output for a fluint test run inside the projects dashboard? 2. Is there a way to publish the junit formatted xml test output for a fluint test run in an email upon build failure? 3. Is it possible to trigger some kind of script upon test passing that would allow me to then copy/deploy/stage a "cruised" rails project to a remote server? Thanks, Joe -- Joe Ersinghaus Information Technology & Communications New Mexico Department of Agriculture/New Mexico State University MSC 3189, P.O. Box 30005 Las Cruces, NM, USA 88003-8005 Phone: (575) 646-7094 Fax: (575) 646-1841 Email: jersinghaus at nmda.nmsu.edu Confidentiality Notice: New Mexico has a very broad public records law. Most written communications to or from state employees are public records. Your e-mail communications may therefore be subject to public disclosure. This e-mail, including all attachments is for the sole use of the intended recipients. Any unauthorized review, use, disclosure or distribution is prohibited unless specifically provided under the New Mexico Inspection of Public Records Act. From btguthrie at gmail.com Wed Nov 4 02:50:17 2009 From: btguthrie at gmail.com (Brian Guthrie) Date: Tue, 3 Nov 2009 23:50:17 -0800 Subject: [Cruisecontrolrb-users] a few noob questions In-Reply-To: <4AEF2967.80301@nmda.nmsu.edu> References: <4AEF2967.80301@nmda.nmsu.edu> Message-ID: Hi Joe, 1. There's currently no official way to get the dashboard to render content generated by your test run, if that's what you mean, although I've seen teams in the past that have modified the CCRB HTML templates to do that. Do you just want the resulting content to be pretty-printed as XML? 2. Likewise, you can modify the build_report.html.erb template to include whichever pieces of the build you wish. Note that you have the full Build object available to you at email render time. At the moment EmailNotifier doesn't support more fine-grained template specification, but you can subclass that plugin to do the right thing if you need to support multiple templates. 3. Projects can be triggered by the successful completion of other projects, as follows: project.triggered_by :some_other_project You can set up an automatic deploy workflow by adding a project whose build command is the command you typically use to deploy your app and which is triggered by the successful completion of the first build. Does that help? Cheers, Brian On Mon, Nov 2, 2009 at 10:48 AM, Joe Ersinghaus wrote: > Hello, > > I've got cruisecontrol.rb running and testing an air/fluint application > successfully and just had a few questions I could not find the answers to in > the docs although that doesn't mean they're not there? :) > > 1. Is there a way to publish the junit formatted xml test output for a > fluint test run inside the projects dashboard? > > 2. Is there a way to publish the junit formatted xml test output for a > fluint test run in an email upon build failure? > > 3. Is it possible to trigger some kind of script upon test passing that > would allow me to then copy/deploy/stage a "cruised" rails project to a > remote server? > > > Thanks, > Joe > > -- > Joe Ersinghaus > Information Technology & Communications > New Mexico Department of Agriculture/New Mexico State University > MSC 3189, P.O. Box 30005 > Las Cruces, NM, USA ?88003-8005 > Phone: (575) 646-7094 > Fax: (575) 646-1841 > Email: jersinghaus at nmda.nmsu.edu > > > Confidentiality Notice: > New Mexico has a very broad public records law. ?Most written communications > to or from state employees are public records. ?Your e-mail communications > may therefore be subject to public disclosure. ?This e-mail, including all > attachments is for the sole use of the intended recipients. ?Any > unauthorized review, use, disclosure or distribution is prohibited unless > specifically provided under the New Mexico Inspection of Public Records Act. > _______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users > From jersinghaus at nmda.nmsu.edu Wed Nov 4 10:48:07 2009 From: jersinghaus at nmda.nmsu.edu (Joe-NMDA) Date: Wed, 4 Nov 2009 07:48:07 -0800 (PST) Subject: [Cruisecontrolrb-users] a few noob questions In-Reply-To: References: <4AEF2967.80301@nmda.nmsu.edu> Message-ID: <26198751.post@talk.nabble.com> Hi Joe, 1. There's currently no official way to get the dashboard to render content generated by your test run, if that's what you mean, although I've seen teams in the past that have modified the CCRB HTML templates to do that. Do you just want the resulting content to be pretty-printed as XML? Yes 2. Likewise, you can modify the build_report.html.erb template to include whichever pieces of the build you wish. Note that you have the full Build object available to you at email render time. At the moment EmailNotifier doesn't support more fine-grained template specification, but you can subclass that plugin to do the right thing if you need to support multiple templates. 3. Projects can be triggered by the successful completion of other projects, as follows: project.triggered_by :some_other_project You can set up an automatic deploy workflow by adding a project whose build command is the command you typically use to deploy your app and which is triggered by the successful completion of the first build. Does that help? Yes it does, thank you. :) -- View this message in context: http://old.nabble.com/a-few-noob-questions-tp26169151p26198751.html Sent from the CruiseControl.rb - Users mailing list archive at Nabble.com. From Nick.Adamson at generaldynamics.uk.com Tue Nov 17 09:35:50 2009 From: Nick.Adamson at generaldynamics.uk.com (Nick.Adamson at generaldynamics.uk.com) Date: Tue, 17 Nov 2009 14:35:50 -0000 Subject: [Cruisecontrolrb-users] SSH keeps prompting for a password. Message-ID: <634C6DD300F1EE46879A1A84896F3614026D4599@GDUKADH850.uk1.r-org.net> Hi All. I'm new to Cruise Control having just taken over a set of build servers which use it to build our software on Windows and Ubuntu Linux. I'm in the process of making a couple of changes and have run in to a couple of problems which I can't find an answer for in the documentation. Cruise control is running on a windows box. One of our projects is a build on Linux. Cruise control SSH's in to the Linux server to perform the build. I've recently had to change the user and password for the account it logs in to. I've changed the line in the RB file to identify the new user. this seems to be working fine apart from every time cruise control detects a new build in SVN it prompts for the SSH password before continuing with the build. How can I get it to remember the password? Thanks. Nick. Nick Adamson Software Engineer General Dynamics United Kingdom Limited Bryn Brithdir, Oakdale Business Park, Blackwood, South Wales, NP12 4AA Telephone: +44 (0)1495 23 6467 Email: Nick.Adamson at generaldynamics.uk.com Website: www.generaldynamics.uk.com To help reduce waste paper, please only print this email if you really need to. This email and any files attached are intended for the addressee and may contain information of a confidential nature. If you are not the intended recipient, be aware that this email was sent to you in error and you should not disclose, distribute, print, copy or make other use of this email or its attachments. Such actions, in fact, may be unlawful. In compliance with the various Regulations and Acts, General Dynamics United Kingdom Limited reserves the right to monitor (and examine for viruses) all emails and email attachments, both inbound and outbound. Email communications and their attachments may not be secure or error- or virus-free and the company does not accept liability or responsibility for such matters or the consequences thereof. General Dynamics United Kingdom Limited, Registered Office: 100 New Bridge Street, London EC4V 6JA. Registered in England and Wales No: 1911653. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 2071 bytes Desc: Signature.gif URL: From Nick.Adamson at generaldynamics.uk.com Tue Nov 17 09:42:35 2009 From: Nick.Adamson at generaldynamics.uk.com (Nick.Adamson at generaldynamics.uk.com) Date: Tue, 17 Nov 2009 14:42:35 -0000 Subject: [Cruisecontrolrb-users] How to do a clean check out. Message-ID: <634C6DD300F1EE46879A1A84896F3614026D45A4@GDUKADH850.uk1.r-org.net> Hi All. Second and last question from me for at least 5 minutes. I'm trying to get CruiseControl to do a clean check out from SVN every time it does a build. I've read the section in the documentation regarding this however when ever I add the following line to my RB script for the project I get errors when trying to view the HTTP server. The line I'm adding: project.do_clean_checkout :always The error I get is: There has been a problem, we've been notified about it ...... Any ideas where I'm going wrong? Thanks. Nick. Nick Adamson Software Engineer General Dynamics United Kingdom Limited Bryn Brithdir, Oakdale Business Park, Blackwood, South Wales, NP12 4AA Telephone: +44 (0)1495 23 6467 Email: Nick.Adamson at generaldynamics.uk.com Website: www.generaldynamics.uk.com To help reduce waste paper, please only print this email if you really need to. This email and any files attached are intended for the addressee and may contain information of a confidential nature. If you are not the intended recipient, be aware that this email was sent to you in error and you should not disclose, distribute, print, copy or make other use of this email or its attachments. Such actions, in fact, may be unlawful. In compliance with the various Regulations and Acts, General Dynamics United Kingdom Limited reserves the right to monitor (and examine for viruses) all emails and email attachments, both inbound and outbound. Email communications and their attachments may not be secure or error- or virus-free and the company does not accept liability or responsibility for such matters or the consequences thereof. General Dynamics United Kingdom Limited, Registered Office: 100 New Bridge Street, London EC4V 6JA. Registered in England and Wales No: 1911653. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 2071 bytes Desc: Signature.gif URL: From thewoolleyman at gmail.com Tue Nov 17 10:12:00 2009 From: thewoolleyman at gmail.com (Chad Woolley) Date: Tue, 17 Nov 2009 08:12:00 -0700 Subject: [Cruisecontrolrb-users] SSH keeps prompting for a password. In-Reply-To: <634C6DD300F1EE46879A1A84896F3614026D4599@GDUKADH850.uk1.r-org.net> References: <634C6DD300F1EE46879A1A84896F3614026D4599@GDUKADH850.uk1.r-org.net> Message-ID: On Tue, Nov 17, 2009 at 7:35 AM, wrote: > How can I get it to remember the password? > > Set up a no-passphrase SSH key. -------------- next part -------------- An HTML attachment was scrubbed... URL: From thewoolleyman at gmail.com Tue Nov 17 10:13:18 2009 From: thewoolleyman at gmail.com (Chad Woolley) Date: Tue, 17 Nov 2009 08:13:18 -0700 Subject: [Cruisecontrolrb-users] How to do a clean check out. In-Reply-To: <634C6DD300F1EE46879A1A84896F3614026D45A4@GDUKADH850.uk1.r-org.net> References: <634C6DD300F1EE46879A1A84896F3614026D45A4@GDUKADH850.uk1.r-org.net> Message-ID: On Tue, Nov 17, 2009 at 7:42 AM, wrote: > Any ideas where I'm going wrong? > > Check CCRBs SVN working copy. DO you have files which were modified by your build which have merge conflicts? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Nick.Adamson at generaldynamics.uk.com Wed Nov 18 09:45:33 2009 From: Nick.Adamson at generaldynamics.uk.com (Nick.Adamson at generaldynamics.uk.com) Date: Wed, 18 Nov 2009 14:45:33 -0000 Subject: [Cruisecontrolrb-users] SSH keeps prompting for a password. In-Reply-To: References: <634C6DD300F1EE46879A1A84896F3614026D4599@GDUKADH850.uk1.r-org.net> Message-ID: <634C6DD300F1EE46879A1A84896F3614026D47F6@GDUKADH850.uk1.r-org.net> Hi Chad. Thanks for pointing me in the write direction. I've now generated my keys and need to work out where to put the private key file on the windows box running cruisecontrol. The file I've got is id_rsa. Any ideas? Thanks. Nick. -----Original Message----- From: cruisecontrolrb-users-bounces at rubyforge.org [mailto:cruisecontrolrb-users-bounces at rubyforge.org] On Behalf Of Chad Woolley Sent: 17 November 2009 15:12 To: cruisecontrolrb-users at rubyforge.org Subject: Re: [Cruisecontrolrb-users] SSH keeps prompting for a password. On Tue, Nov 17, 2009 at 7:35 AM, wrote: How can I get it to remember the password? Set up a no-passphrase SSH key. This email and any files attached are intended for the addressee and may contain information of a confidential nature. If you are not the intended recipient, be aware that this email was sent to you in error and you should not disclose, distribute, print, copy or make other use of this email or its attachments. Such actions, in fact, may be unlawful. In compliance with the various Regulations and Acts, General Dynamics United Kingdom Limited reserves the right to monitor (and examine for viruses) all emails and email attachments, both inbound and outbound. Email communications and their attachments may not be secure or error- or virus-free and the company does not accept liability or responsibility for such matters or the consequences thereof. General Dynamics United Kingdom Limited, Registered Office: 100 New Bridge Street, London EC4V 6JA. Registered in England and Wales No: 1911653. From thewoolleyman at gmail.com Wed Nov 18 11:15:01 2009 From: thewoolleyman at gmail.com (Chad Woolley) Date: Wed, 18 Nov 2009 09:15:01 -0700 Subject: [Cruisecontrolrb-users] SSH keeps prompting for a password. In-Reply-To: <634C6DD300F1EE46879A1A84896F3614026D47F6@GDUKADH850.uk1.r-org.net> References: <634C6DD300F1EE46879A1A84896F3614026D4599@GDUKADH850.uk1.r-org.net> <634C6DD300F1EE46879A1A84896F3614026D47F6@GDUKADH850.uk1.r-org.net> Message-ID: On Wed, Nov 18, 2009 at 7:45 AM, wrote: > Thanks for pointing me in the write direction. > I've now generated my keys and need to work out where to put the private > key file on the windows box running cruisecontrol. The file I've got is > id_rsa. > Any ideas? SSH-fu is pretty basic stuff and outside the scope of this list. However, it's really useful to know if you are a developer and/or sysadmin. Google for "ssh key tutorial" or similar, and look for a good page which explains it in a way you can understand, and play around until you understand it. Google for any error messages you don't understand. Good Luck, -- Chad From Nick.Adamson at generaldynamics.uk.com Wed Nov 18 13:36:16 2009 From: Nick.Adamson at generaldynamics.uk.com (Nick.Adamson at generaldynamics.uk.com) Date: Wed, 18 Nov 2009 18:36:16 -0000 Subject: [Cruisecontrolrb-users] How to do a clean check out. In-Reply-To: References: <634C6DD300F1EE46879A1A84896F3614026D45A4@GDUKADH850.uk1.r-org.net> Message-ID: <634C6DD300F1EE46879A1A84896F3614026D48B3@GDUKADH850.uk1.r-org.net> Hi Chad. Having looked in to this further what appears to be happening is that the project/work folder is being deleted and then CC isn't able to work out where it should be checking stuff out from. Below are the log messages. Any ideas? This log was generated by: Stopping CC, Making sure the ATIS-windows/work folder was there and was at revision 2473. Starting CC. Thanks. Nick. [info] [2009-11-18 16:52:06] Builder for project 'ATIS-Windows' started [info] [2009-11-18 17:39:48] New revision 2474 detected [error] Repository location is not specified [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../ script/../config/../lib/source_control/subversion.rb:35:in `checkout' [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../ script/../config/../lib/source_control/abstract_adapter.rb:30:in `clean_checkout' [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../ script/../config/../app/models/project.rb:277:in `update_project_to_revision' [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../ script/../config/../app/models/project.rb:274:in `open' [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../ script/../config/../app/models/project.rb:274:in `update_project_to_revision' [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../ script/../config/../app/models/project.rb:303:in `build_without_serialization' [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../ script/../config/../app/models/project.rb:289:in `build' [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../ script/../config/../app/models/project.rb:213:in `build_if_necessary' [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../ script/../config/../app/models/polling_scheduler.rb:13:in `run' [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../ script/builder:79 [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../ script/builder:78:in `catch' [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../ script/builder:78 [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/init.r b:47:in `load' [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/init.r b:47:in `builder' [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/init.r b:10:in `send' [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/init.r b:10:in `run' [error] ./lib/cruise_control/../../script/../config/../cruise:5 [error] No such file or directory - C:/builds/projects/ATIS-Windows/work [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../ script/../config/../lib/source_control/abstract_adapter.rb:51:in `chdir' [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../ script/../config/../lib/source_control/abstract_adapter.rb:51:in `execute_in_local_copy' [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../ script/../config/../lib/source_control/subversion.rb:127:in `svn' [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../ script/../config/../lib/source_control/subversion.rb:111:in `log' [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../ script/../config/../lib/source_control/subversion.rb:59:in `latest_revision' [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../ script/../config/../lib/source_control/subversion.rb:66:in `up_to_date?' [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../ script/../config/../app/models/change_in_source_control_trigger.rb:11:in `build_necessary?' [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../ script/../config/../app/models/project.rb:234:in `build_necessary?' [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../ script/../config/../app/models/project.rb:221:in `any?' [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../ script/../config/../app/models/project.rb:234:in `each' [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../ script/../config/../app/models/project.rb:234:in `any?' [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../ script/../config/../app/models/project.rb:234:in `build_necessary?' [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../ script/../config/../app/models/project.rb:211:in `build_if_necessary' [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../ script/../config/../app/models/polling_scheduler.rb:13:in `run' [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../ script/builder:79 [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../ script/builder:78:in `catch' [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../ script/builder:78 [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/init.r b:47:in `load' [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/init.r b:47:in `builder' [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/init.r b:10:in `send' [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/init.r b:10:in `run' [error] ./lib/cruise_control/../../script/../config/../cruise:5 -----Original Message----- From: cruisecontrolrb-users-bounces at rubyforge.org [mailto:cruisecontrolrb-users-bounces at rubyforge.org] On Behalf Of Chad Woolley Sent: 17 November 2009 15:13 To: cruisecontrolrb-users at rubyforge.org Subject: Re: [Cruisecontrolrb-users] How to do a clean check out. On Tue, Nov 17, 2009 at 7:42 AM, wrote: Any ideas where I'm going wrong? Check CCRBs SVN working copy. DO you have files which were modified by your build which have merge conflicts? This email and any files attached are intended for the addressee and may contain information of a confidential nature. If you are not the intended recipient, be aware that this email was sent to you in error and you should not disclose, distribute, print, copy or make other use of this email or its attachments. Such actions, in fact, may be unlawful. In compliance with the various Regulations and Acts, General Dynamics United Kingdom Limited reserves the right to monitor (and examine for viruses) all emails and email attachments, both inbound and outbound. Email communications and their attachments may not be secure or error- or virus-free and the company does not accept liability or responsibility for such matters or the consequences thereof. General Dynamics United Kingdom Limited, Registered Office: 100 New Bridge Street, London EC4V 6JA. Registered in England and Wales No: 1911653. From thewoolleyman at gmail.com Wed Nov 18 15:42:49 2009 From: thewoolleyman at gmail.com (Chad Woolley) Date: Wed, 18 Nov 2009 13:42:49 -0700 Subject: [Cruisecontrolrb-users] How to do a clean check out. In-Reply-To: <634C6DD300F1EE46879A1A84896F3614026D48B3@GDUKADH850.uk1.r-org.net> References: <634C6DD300F1EE46879A1A84896F3614026D45A4@GDUKADH850.uk1.r-org.net> <634C6DD300F1EE46879A1A84896F3614026D48B3@GDUKADH850.uk1.r-org.net> Message-ID: On Wed, Nov 18, 2009 at 11:36 AM, wrote: > Below are the log messages. Any ideas? Find out what is deleting it and stop it. :) From Nick.Adamson at generaldynamics.uk.com Thu Nov 19 05:47:01 2009 From: Nick.Adamson at generaldynamics.uk.com (Nick.Adamson at generaldynamics.uk.com) Date: Thu, 19 Nov 2009 10:47:01 -0000 Subject: [Cruisecontrolrb-users] How to do a clean check out. In-Reply-To: References: <634C6DD300F1EE46879A1A84896F3614026D45A4@GDUKADH850.uk1.r-org.net> <634C6DD300F1EE46879A1A84896F3614026D48B3@GDUKADH850.uk1.r-org.net> Message-ID: <634C6DD300F1EE46879A1A84896F3614026D4949@GDUKADH850.uk1.r-org.net> Hi Chad. Nothing out side of CC is modifying that folder. Its CC that's deleting it, I guess as the first step of the clean checkout code. Thanks. Nick. -----Original Message----- From: cruisecontrolrb-users-bounces at rubyforge.org [mailto:cruisecontrolrb-users-bounces at rubyforge.org] On Behalf Of Chad Woolley Sent: 18 November 2009 20:43 To: cruisecontrolrb-users at rubyforge.org Subject: Re: [Cruisecontrolrb-users] How to do a clean check out. On Wed, Nov 18, 2009 at 11:36 AM, wrote: > Below are the log messages. Any ideas? Find out what is deleting it and stop it. :) _______________________________________________ Cruisecontrolrb-users mailing list Cruisecontrolrb-users at rubyforge.org http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users This email and any files attached are intended for the addressee and may contain information of a confidential nature. If you are not the intended recipient, be aware that this email was sent to you in error and you should not disclose, distribute, print, copy or make other use of this email or its attachments. Such actions, in fact, may be unlawful. In compliance with the various Regulations and Acts, General Dynamics United Kingdom Limited reserves the right to monitor (and examine for viruses) all emails and email attachments, both inbound and outbound. Email communications and their attachments may not be secure or error- or virus-free and the company does not accept liability or responsibility for such matters or the consequences thereof. General Dynamics United Kingdom Limited, Registered Office: 100 New Bridge Street, London EC4V 6JA. Registered in England and Wales No: 1911653.