I've had a quick look at your config, the reason why this is happening is
because there are two types of default.

 

The first is the default on the parameter. This default is what is sent to
the client when they do a force build, and currently that is the only time
it is used.

 

The second is the dynamic value parameter, which is what is used when the
build actually runs. Originally this was an enforced parameter, but overtime
it has changed to become optional. This is where the problem is occurring -
one part of the code is still assuming this is a required parameter, while
another part isn't L

 

I will dig a little deeper and see if I can find a resolution for this
problem, but for the moment the easy approach is to set a default on the
dynamic values - this can be done by adding a pipe and then the default
value, e.g. $[Major|0], $[CompileType|Debug], etc.

 

I will let you know when I resolve the underlying problem.

 

 

Craig

 

From: [email protected] [mailto:[email protected]] On
Behalf Of Ruben Willems
Sent: Tuesday, 12 January 2010 8:30 p.m.
To: [email protected]
Subject: Re: [ccnet-user] Scheduled build with parameters fails unless
forced

 

Hi

I do not know the parameter code  that well, but it sounds like when the
schedule trigger is fired,
the parameters are being ignored, and another default (I guesss "") is
taken, giving the error :
Input string was not in a correct format.



with kind regards
Ruben Willems

On Mon, Jan 11, 2010 at 6:17 PM, Justin-Credible
<[email protected]> wrote:

I have a project with parameters which builds fine when forced from
the dashboard. It also has a scheduleTrigger which always fails with
the following stack trace:

System.FormatException: Input string was not in a correct format.
  at System.Number.StringToNumber(String str, NumberStyles options,
NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)

Full stack trace here:
http://www.justin-credible.net/temp/CCNET-StackTrace.txt

I don't understand why it works when I force the build and use
defaults and why it doesn't work when it runs by the scheduled
trigger. Any ideas? All of my numericParameters have defaults that are
numbers.

Project is here:
http://www.justin-credible.net/temp/CCNET-ExampleProject.config.txt

 

Reply via email to