Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

0 votes



2 answers

Permanent link
Hi

A few things to check
1. Are you running multiple Jazz Build Engines for the same build definition on the same machine?
2. Does your build spawn off processes but doesn't wait for them to finish? In that case, the new build's processes are interfering with the ones from the previous build.

I am thinking that the problem here could be because some resource(s) (files, locks) are being held by a process from a previous build which the new build's process cannot get hold of and fails. The ant script should ensure that all processes started by it complete before it finishes. That way, there can be no interference between builds.

0 votes

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.


Permanent link

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

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 7,506
× 63

Question asked: Jan 23 '19, 10:12 a.m.

Question was seen: 2,146 times

Last updated: Jan 31 '19, 8:24 a.m.

Confirmation Cancel Confirm