Hi,

I've been busy upgrading my 1.4 projects to 1.5 and am eager to use
the new Dynamic Parameter functionality. For the most part, like in my
Task and Source Control block, this seems to work.

Unfortunately when passing a dynamic parameter to my custom labeller,
it only works -sometimes-. I really hoped I could report something
reproducable but I can't figure out why it will sometimes work, and
sometimes won't. All I can do is give some background information:

*Note: I'm only having trouble with passing dynamic parameters to the
labeller!

- Dynamic parameters first worked after I modified my custom labeler
to inherit from LabellerBase - yey!
- Dynamic parameters stopped working after I changed my project name
(deleting the state files, artifact directories and restarting CCNET
service and IIS and the machine made no difference)
- I nest my config files using includes and scopes so that they can be
reused as much as possible.
- I also pass the same dynamic parameters to a custom source code
plugin, but that works every time.

I tried creating a very basic test project with a very basic labeller
to illustrate the problem and that failed as well! So I thought,
great, it's reproducable. Unfortunately I then found out I was still
including some of my problematic projects in ccnet.config and decided
to remove those be sure. After that, dynamic parameters in the basic
test project worked... so it wasn't that simple. But, the weird thing
is, that after I re-added my problematic projects, the dynamic
parameters now worked! without changing anything else in the config!

I may try to continue working on a sample but before I do I would
greatly appreciate if anybody recognizes these symptoms and can point
me in the right direction.

Regards,

Christopher Hughes

Reply via email to