Appear to be a known issue , found it on JIRA : http://jira.public.thoughtworks.org/browse/CCNET-1804
I voted for it :) On Mon, Feb 8, 2010 at 4:31 PM, Christophe Planty < [email protected]> wrote: > > Hi, > > With the RC1 version (never tryed with older versions), I encountered a > strange behaviour while trying to use CCNetLabel value in publisher block > : > > i can retreive $[$CCNetLabel] , but it's the label of the previous build > , not the current one . > > I wonder if it's the expected result. (I'd expect the current's build > label , then there's maybe some changes to do in my config) > > config is basically like : > > > > <project .... > > <labeller type="defaultlabeller"> > > <initialBuildLabel>1</initialBuildLabel> > > <prefix>MyBuild-</prefix> > > <incrementOnFailure>true</incrementOnFailure> > > <labelFormat>00000</labelFormat> > > </labeller> > > <tasks> > > .. some tasks > > <tasks> > > <publishers> > > .. some other publishers > > <exec> > > <executable>test.bat</executable> > > <buildArgs>logForTest $[$CCNetLabel]</buildArgs> > > </exec> > > </publishers> > > > > the small test.bat just echo and logs in a file the arguments ... > > i observed same bahaviour with <labeller type="lastChangeLabeller"> > > is there a way to retreive current's build label from within ccnet config ? > > ( mail publisher , statistics publisher retreives the good label ... ) > > > >
