Hi if you run bstask from the command line, with a setup you know that should fail, what is the return code ? running echo %errorlevel% immediately after bstask will show it
if that returns 0, CCNet can not know that bstask failed a possible workaround is the following : place the bstask in a batch file, and pass all arguments to it. redirecting output to a file with the findstr command you can search for 'Command succeeded with 0 errors, 0 warnings.' if not found, exit the batch program with a non zero number : exit 1 http://www.computerhope.com/findstr.htm with kind regards Ruben Willems On 16 August 2012 19:12, Tom Ruska <[email protected]> wrote: > I am using the exec task to run a command line exe from Microsoft. When it > works, I would see this in the server log: > [DeployTestApp_Package E:\Program Files (x86)\Microsoft BizTalk Server > 2009\btstask.exe] Command succeeded with 0 errors, 0 warnings. > However when there is a problem, it will read: > [DeployTestApp_Package E:\Program Files (x86)\Microsoft BizTalk Server > 2009\btstask.exe] Command succeeded with 1 errors, 0 warnings. > The problem is the build status will reflect "Successful" but there will > be a message indicating the step in which the above occurred. > If I could have it actually fail the build and not give a false positive > is what I want. > My task looks like this: > <exec> > <description>Adding resources: Port Bindings Excel > Spreadsheet</description> > <executable>$(btscommand)</executable> > <buildArgs>AddResource /A:$(name.prefix).$(ProjectName) > /T:File /Ov > /So:$(WorkingDir)\Test\$(ProjectName)$(ProjectType)\Bindings\SettingsFileGenerator.xml > </buildArgs> > </exec> > > I am hoping it's something I am missing or I need to do some kind of > redirecting of the command line output so CCNet can properly interpret the > success code? > > Thanks, Tom > > > On Sunday, August 12, 2012 1:52:52 AM UTC-5, Ruben Willems wrote: > >> Hi >> >> are these errors not seen in the build log? >> why look at the server log to see for errors of a certain build? >> >> >> with kind regards >> Ruben Willems >> >> On 9 August 2012 13:22, Tom Ruska <[email protected]> wrote: >> >>> Is there a way to display more then 100 lines of server log output on >>> the web dashboard using the view server log plugin? I am running v1.8 >>> I am using CCNet to build Biztalk solutions and running numerous >>> commands to build and package the artifacts into an msi and the output of >>> these commands are very verbose and when there is an error, it would be >>> nice to view the log on the dashboard instead of viewing the log directly. >>> >>> Thanks, Tom >>> >> >>
