[Cruisecontrolrb-users] build number to Ant script

Artem Vasiliev abublic at gmail.com
Tue May 15 03:02:29 EDT 2007


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 


More information about the Cruisecontrolrb-users mailing list