[Anthill-Pro] email template - finding the name of the branch
Antoine Levy-Lambert
antoine at gmx.de
Thu Aug 24 13:01:58 CDT 2006
Hello Eric,
I have tried your suggestion and it works. However, the output of BuildOwner.getBranch().getName() seems to be the concatenation of the project name and of the branch name itself. I was looking at the branch name only. Is it BuildOwner.getBranch().getBranchName() ?
Regards,
Antoine
-------- Original-Nachricht --------
Datum: Thu, 24 Aug 2006 10:56:42 -0600
Von: Eric Minick <etm at urbancode.com>
An: anthill-pro at lists.urbancode.com
Betreff: Re: [Anthill-Pro] email template - finding the name of the branch
> Fair question Antoine. This is a point of confusion for many people
> starting to work with either scripting or repository templates.
>
> There are some tips about working with the API in the extension guide:
> http://wiki.urbancode.com/home/AnthillProExtensionGuide
>
> The problem here is related to Migrated Projects. A build owner could
> either be a Build Track (like you expect) or a Migrated Project.
> Migrated Projects have no concept of a branch. That's why the BuildOwner
> interface is lacking. It has to accommadate the Migrated Projects as well.
>
> The key is to recognize that, like most users, all of your BuildOwners
> are actually BuildTracks . From the BuildTrack, you can find out just
> about anything about the build's configuration. It has exactly the
> method you are looking for as well. So you should be able to do
> buildOwner.getBranch().getName() .
>
> Cheers,
> Eric
>
> Antoine Levy-Lambert wrote:
>
> >Hi,
> >
> >we are using AnthillPro 2.6.1.19123.
> >
> >In this version, the repository branch is not editable any more when the
> versioning is done with ClearCase.
> >
> >Would like also to talk about the support of ClearCase in AnthillPro.
> >
> >Anyway my question is :
> >
> >how do I get the branch name (not repository branch) from the variables
> made available to Velocity by AnthillPro when generating an email (Anthill,
> WebUtils, and buildDef.) I had a look at your API documentation but this
> does not look obvious. I would have expected an API method such as Branch
> BuildOwner.getBranch() or something like that but did not find it.
> >
> >Regards,
> >
> >Antoine
> >_______________________________________________
> >Anthill-pro mailing list
> >Anthill-pro at lists.urbancode.com
> >http://lists.urbancode.com/mailman/listinfo/anthill-pro
> >
> >
>
> _______________________________________________
> Anthill-pro mailing list
> Anthill-pro at lists.urbancode.com
> http://lists.urbancode.com/mailman/listinfo/anthill-pro
More information about the Anthill-pro
mailing list