ANT scripts - Visual Studio Installer projects. Fails more often than it succeeds.
I have created a build within Eclipse which is an ANT script ('.xml') which uses Visual Studio Enterprise 2017 on my build machine.
It extracts the files from RTC onto the build machine, builds a couple of projects and then finishes off by creating an Installer package ('.msi').
Sometimes the Build works but more often it doesn't : it fails to create the '.msi'
The Visual Studio log just says "Error: Unrecoverable build error"
The ANT build log just says "The Build did not issue a zero return code"
And on my build machine each time the job fails I get an "MSBuild....failure.txt" file in my user's "\AppData\Local\Temp" folder which says System.IO.IOException : Pipe is broken.
I suspect this is more of a Visual Studio problem rather than anything RTC is doing. But I just thought I'd ask on this forum in case anybody else had been having similar problems.
At the moment I just keep making a "Request Build" from Eclipse until it works (currently about 1 in 10).
Thanks
Peter
2 answers
A few things to check
Comments
Thanks for the reply Lakshmi.
There is only one Jazz Build Engine for the build definition on the machine.
The 'build.xml' does call Visual Studio which succeeds in compiling a couple of projects but fails to build the installer.
The error in the Visual Studio Log is "Error: Unrecoverable build error".
Your point about the resources being held from a previous build is probably valid. We have noticed that going off for lunch and then trying again can sometimes (not always) lead to a successful build.
Meanwhile we're trying to get help from the Visual Studio people.
For the time being we have decided to forget about creating an '.msi' installer program. We will just compile the projects and then we can install them from the command line.
This is not the ideal solution but the bug must be something fairly obscure in MS Visual Studio.
This thread can be closed.
Thanks
Peter