How to get publisher access to the build label?

bwawok <[email protected]>
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <[email protected]>
I am trying to make a publisher that does a git tag with the current label.

I am close, but need access to the label var. What I have looks like:


<publishers>
<onsuccess>
<execute command="gittag.sh ${project.name} ${label}" />
</onsuccess>
</publishers>

And the script I wrote looks like


#!/usr/bin/env bash
echo "Creating Tag $2 in $1"
cd projects/$1
git tag $2
git push --tags

But of course, ${label} does not mean anything, so all this script does is 
create 
a label called "${label}" and push it....


If I can't get access to the label variable from inside my publisher.. 
any idea 
how to get my repo tagged and pushed out to the repo?


------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
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.