Files are not generated

Hi,

We are running wyBuild from TFS Build 2010. We generated a batch file that runs the following command:

"c:\program files (x86)\wyBuild\wyBuild.exe" "C:\wypfolder\Definitions.wyp" /bwu -add="C:\Sources\VersionAutoUpdateXml.xml"

The build server runs the batch. It outputs the error level: 0, but nothing else happens.

We rechecked the XML file. We rerechecked the wyp file. We rererechecked everything. But the .wyc and wyUpdate.exe are NOT created in the folder specified in the definition file.

When running the above command manually from a command window, the files are created and everything is ok. The user running the manual command is the SAME user running the TFS build service.

Can you please assist solving the mystery?

Thanks,

Gil & Noam

First of all, you can't add versions when you're building wyUpdate alone. So, the -add="C:\Sources\VersionAutoUpdateXml.xml" commandline switch is being completely ignored. You must also build the updates for the new version to be added. However, wyUpdate should still be built successfully.

What's the console output when running in the TFS Build 2010? What version of wyBuild are you using?

What's the console output when running in the TFS Build 2010? What version of wyBuild are you using?

Thanks for your reply,

We are using version 2.6.9.0 and the build log does not indicate any error messages from wybuild. The result WyBuild gives back is 0, but no file are generated.

Again, same command from console command line would generate the files and give a success message.

Gil & Noam

Can you send me your 2 files (Definitions.wyp and C:\Sources\VersionAutoUpdateXml.xml)? Send them to support@wyday.com

Hi Sam,

Thanks again for replying. We found the problem and made it work! Well... Sort of...

Apparently, when the TFS Build controller is a Windows Service, wyBuild does nothing when being run by it. Alternatively, when we stopped the TFS Build controller service and ran it in Interactive Mode (i.e. - as a console application and not a service), it ran wyBuild successfully.

We know that a Windows Service cannot perform desktop activities: open forms, react to user events or present graphics. That's probably why wyBuild doesn't work - it's a form based application.

The workaround works, but it makes it hard for us: we need the build to run as a service.

Is there a pure console version of wyBuild we can use?

Thanks,

Noam & Gil

Is there a pure console version of wyBuild we can use?

Not yet, but we're working on it.