Hi All! I''ve just migrated build process from CruiseControl for Java to new cruisecontrol.rb. All looks great but I''m missing one thing.. My project is in Java so I launch Ant builder from cruise_config.rb. In the end it creates and publishes war file. I''m used to having build number in this file''s name, e.g. build 787 corresponds to services-20070514-1550-build.787.war. In Cruisecontrol for Java Ant was given ${label} property with value '' build.787'' for this case; in cruisecontrol.rb Ant don''t seem to have this info. May be there''s some way to give this info to Ant in cruisecontrol.rb? Thanks in advance, Artem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070514/e94d4864/attachment.html
Hello Jeff, Well, I''m aware of CC_BUILD_ARTIFACTS environment variable. Unfortunately this is not what I want. This way I would need to publish (make a link to) the whole /path/to/ccrb/projects/my_project directory to show the build numbers of war files; this is excessive. I would be happy if there were also CC_BUILD_NUMBER environment variable equal to 787 in this case. Regards, Artem JX> During the build process, you can copy artifacts (e.g. services.war) JX> to $CC_BUILD_ARTIFACTS directory, which is something like JX> "/path/to/ccrb/projects/my_project/build-787-success.in32s". Does it JX> work for you? JX> On 5/14/07, Artem Vasiliev <abublic at gmail.com> wrote:>> Hi All! >> >> I''ve just migrated build process from CruiseControl for Java to new >> cruisecontrol.rb. All looks great but I''m missing one thing.. >> My project is in Java so I launch Ant builder from cruise_config.rb. >> In the end it creates and publishes war file. I''m used to having build >> number in this file''s name, e.g. build 787 corresponds to >> services-20070514-1550-build.787.war. >> In Cruisecontrol for Java Ant was given ${label} property with value '' >> build.787'' for this case; in cruisecontrol.rb Ant don''t seem to have this >> info. >> May be there''s some way to give this info to Ant in cruisecontrol.rb? >> >> Thanks in advance, >> Artem >> >> _______________________________________________ >> Cruisecontrolrb-users mailing list >> Cruisecontrolrb-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users >> >>-- Best regards, Artem mailto:abublic at gmail.com
Alexey Verkhovsky
2007-May-14 19:32 UTC
[Cruisecontrolrb-users] build number to Ant script
I think it makes sense. I added a story to JIRA (http://jira.public.thoughtworks.org/browse/CCRB-120). We''ll get to it in a few weeks. Or, it''s a good easy story to make a patch for. If you do, please remember to patch documentation, too. -- Alex Verkhovsky Artem <abublic at gmail.com> Sent by: cruisecontrolrb-users-bounces at rubyforge.org 05/14/2007 11:11 AM Please respond to Artem <abublic at gmail.com> To cruisecontrolrb-users at rubyforge.org, "Jeff Xiong" <gigix1980 at gmail.com> cc Subject Re: [Cruisecontrolrb-users] build number to Ant script Hello Jeff, Well, I''m aware of CC_BUILD_ARTIFACTS environment variable. Unfortunately this is not what I want. This way I would need to publish (make a link to) the whole /path/to/ccrb/projects/my_project directory to show the build numbers of war files; this is excessive. I would be happy if there were also CC_BUILD_NUMBER environment variable equal to 787 in this case. Regards, Artem JX> During the build process, you can copy artifacts (e.g. services.war) JX> to $CC_BUILD_ARTIFACTS directory, which is something like JX> "/path/to/ccrb/projects/my_project/build-787-success.in32s". Does it JX> work for you? JX> On 5/14/07, Artem Vasiliev <abublic at gmail.com> wrote:>> Hi All! >> >> I''ve just migrated build process from CruiseControl for Java to new >> cruisecontrol.rb. All looks great but I''m missing one thing.. >> My project is in Java so I launch Ant builder from cruise_config.rb. >> In the end it creates and publishes war file. I''m used to having build >> number in this file''s name, e.g. build 787 corresponds to >> services-20070514-1550-build.787.war. >> In Cruisecontrol for Java Ant was given ${label} property with value '' >> build.787'' for this case; in cruisecontrol.rb Ant don''t seem to havethis>> info. >> May be there''s some way to give this info to Ant in cruisecontrol.rb? >> >> Thanks in advance, >> Artem >> >> _______________________________________________ >> Cruisecontrolrb-users mailing list >> Cruisecontrolrb-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users >> >>-- Best regards, Artem mailto:abublic at gmail.com _______________________________________________ Cruisecontrolrb-users mailing list Cruisecontrolrb-users at rubyforge.org http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070514/4db3a84c/attachment.html
I''ve made the required change (very simple indeed) locally but can''t access cruisecontrol.rb''s SVN repository yet to make a patch. I''ve submitted a ticket to rubyforge regarding this access problem ( http://rubyforge.org/tracker/index.php?func=detail&aid=10843&group_id=5&atid=102). For anyone interested here''s the change I made: in app/models/build.rb, add following line to in_clean_environment_on_local_copy function body: ENV[''CC_BUILD_LABEL''] = self.label I called it CC_BUILD_LABEL instead of CC_BUILD_NUMBER because the label is sometimes not a number; and this is more consistent with cruisecontrol.rb''s code and cruisecontrol.java''s "label" Ant property. Regards, Artem On 5/14/07, Alexey Verkhovsky <averkhov at thoughtworks.com> wrote:> > > I think it makes sense. I added a story to JIRA ( > http://jira.public.thoughtworks.org/browse/CCRB-120). > We''ll get to it in a few weeks. Or, it''s a good easy story to make a patch > for. If you do, please remember to patch documentation, too. > > -- > Alex Verkhovsky > > > > > *Artem <abublic at gmail.com>* > Sent by: cruisecontrolrb-users-bounces at rubyforge.org > > 05/14/2007 11:11 AM Please respond to > Artem <abublic at gmail.com> > > To > cruisecontrolrb-users at rubyforge.org, "Jeff Xiong" <gigix1980 at gmail.com> > cc > > Subject > Re: [Cruisecontrolrb-users] build number to Ant script > > > > > > > Hello Jeff, > > Well, I''m aware of CC_BUILD_ARTIFACTS environment variable. Unfortunately > this > is not what I want. This way I would need to publish > (make a link to) the whole /path/to/ccrb/projects/my_project directory to > show > the build numbers of war files; this is excessive. I would be happy if > there > were also CC_BUILD_NUMBER environment variable equal to 787 in this case. > > Regards, > Artem > > JX> During the build process, you can copy artifacts (e.g. services.war) > JX> to $CC_BUILD_ARTIFACTS directory, which is something like > JX> "/path/to/ccrb/projects/my_project/build-787-success.in32s". Does it > JX> work for you? > > JX> On 5/14/07, Artem Vasiliev <abublic at gmail.com> wrote: > >> Hi All! > >> > >> I''ve just migrated build process from CruiseControl for Java to new > >> cruisecontrol.rb. All looks great but I''m missing one thing.. > >> My project is in Java so I launch Ant builder from cruise_config.rb. > >> In the end it creates and publishes war file. I''m used to having build > >> number in this file''s name, e.g. build 787 corresponds to > >> services-20070514-1550-build.787.war. > >> In Cruisecontrol for Java Ant was given ${label} property with value '' > >> build.787'' for this case; in cruisecontrol.rb Ant don''t seem to have > this > >> info. > >> May be there''s some way to give this info to Ant in cruisecontrol.rb? > >> > >> Thanks in advance, > >> Artem > >> > >> _______________________________________________ > >> Cruisecontrolrb-users mailing list > >> Cruisecontrolrb-users at rubyforge.org > >> http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users > >> > >> > > > > > > -- > Best regards, > Artem mailto:abublic at gmail.com > > _______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users > > > _______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070515/d3f98e65/attachment.html
I have a build that is ''stuck'' and I am not sure why. I have 5 projects, and they have all worked fine up until a few days ago - Ive made a lot of changes, but I am at a loss as to how i broke it, or how to fix it. Everything seems to start up fine: gedanken at envy:/usr/local/cruisecontrolrb-1.0.0/projects$ ps -ef | grep cruise bob 5082 5081 4 May04 ? 11:47:38 ruby /usr/local/cruisecontrolrb-1.0.0/public/dispatch.fcgi bob 5084 5082 0 May04 ? 00:04:01 ruby /usr/local/cruisecontrolrb-1.0.0/public/../config/../cruise build sample-rails bob 5789 5082 0 May04 ? 00:01:29 ruby /usr/local/cruisecontrolrb-1.0.0/public/../config/../cruise build sample-rails_DEMO bob 5791 5082 0 May04 ? 00:00:35 ruby /usr/local/cruisecontrolrb-1.0.0/public/../config/../cruise build DataLogViewer bob 5793 5082 0 May04 ? 00:01:59 ruby /usr/local/cruisecontrolrb-1.0.0/public/../config/../cruise build sample-flex bob 24265 5082 0 May06 ? 00:07:38 ruby /usr/local/cruisecontrolrb-1.0.0/public/../config/../cruise build sample-server gedanken 24184 24149 0 13:32 pts/1 00:00:00 grep cruise 4 of the 5 projects all build fine. When I try to build DataLogViewer, the web interface says ''Build requested...'' but spins forever (days). But the directory looks like: gedanken at envy:/usr/local/cruisecontrolrb-1.0.0/projects/DataLogViewer$ ls build-10 build-13 build-13.3 build-3.1 build-6 build-9 build_requested build-11 build-13.1 build-13.4 build-4 build-7 builder.pid cruise_config.rb build-12 build-13.2 build-3 build-5 build-8 builder_status.sleeping work gedanken at envy:/usr/local/cruisecontrolrb-1.0.0/projects/DataLogViewer$ cat builder.pid gedanken at envy:/usr/local/cruisecontrolrb-1.0.0/projects/DataLogViewer$ And never changes from sleepign to anything else... How do I debug this please? -- gedanken
Hello Alexey, I''ve attached a small patch to CCRB-120. Best regards, Artem AV> I think it makes sense. I added a storyto JIRA AV> (http://jira.public.thoughtworks.org/browse/CCRB-120). AV> We''ll get to it in a few weeks. Or,it''s a good easy story to make a AV> patch for. If you do, please rememberto patch documentation, too. AV> -- AV> Alex Verkhovsky AV> Artem <abublic at gmail.com> AV> Sent by: cruisecontrolrb-users-bounces at rubyforge.org AV> 05/14/2007 11:11 AM AV> Please respond to AV> Artem <abublic at gmail.com> AV> To AV> cruisecontrolrb-users at rubyforge.org,"Jeff Xiong" <gigix1980 at gmail.com>cc AV> Subject AV> Re: [Cruisecontrolrb-users] build numberto Ant script AV> Hello Jeff, AV> Well, I''m aware of CC_BUILD_ARTIFACTS environment variable. Unfortunatelythis AV> is not what I want. This way I would need to publish AV> (make a link to) the whole /path/to/ccrb/projects/my_project directoryto show AV> the build numbers of war files; this is excessive. I would be happy ifthere AV> were also CC_BUILD_NUMBER environment variable equal to 787 in this case. AV> Regards, AV> Artem JX>> During the build process, you can copy artifacts (e.g. services.war) JX>> to $CC_BUILD_ARTIFACTS directory, which is something like JX>> "/path/to/ccrb/projects/my_project/build-787-success.in32s".Does it JX>> work for you? JX>> On 5/14/07, Artem Vasiliev <abublic at gmail.com> wrote:>>> Hi All! >>> >>> I''ve just migrated build process from CruiseControl for Java tonew >>> cruisecontrol.rb. All looks great but I''m missing one thing.. >>> My project is in Java so I launch Ant builder from cruise_config.rb. >>> In the end it creates and publishes war file. I''m used to havingbuild >>> number in this file''s name, e.g. build 787 corresponds to >>> services-20070514-1550-build.787.war. >>> In Cruisecontrol for Java Ant was given ${label} property withvalue '' >>> build.787'' for this case; in cruisecontrol.rb Ant don''t seem tohave this >>> info. >>> May be there''s some way to give this info to Ant in cruisecontrol.rb? >>> >>> Thanks in advance, >>> Artem >>> >>> _______________________________________________ >>> Cruisecontrolrb-users mailing list >>> Cruisecontrolrb-users at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users >>> >>>