I have a setup that creates a deployment file using msbuild, and is later used by msdeploy. Its a zip file. I've noticed that most of the time, the artifact will be corrupt but if I look at the build-dir on the build agent machine, it is in fact not corrupt.
How are these files getting corrupted in the copy process through bamboo?
It ended up being a setting in the network card setup. The "Large Send Offload" needs to be set to Disabled for it to work properly. This setting is in "Advanced" un the network card -> properties on the build agent.
A related problem of artifacts randomly not copying led us to this solution.
Define "essentially a zip file". If you are creating something like a .msi then by default it is only valid on the machine it is built on. Msbuild is extremely configurable to do a handful of different operations; you'll need to provide more information on how you're actually using it first. It sounds more like you need help with the build; Bamboo is copying correctly just not what you want to see as a result of the build.
It is a zip file. Its created using msbuild as follows:
msbuild.exe solution.sln /T:Build /p:DeployOnBuild=True /p:PublishProfile='Dev Server'
My deploy method is to use parameterized deployment. The zip file it creates contains the site. Also, I forgot to mention, it will finally create non-corrupt artifact after attempting the build 4 to 5 times.
That seems like odd behavior to me. If the zip files were corrupt 100% of the time, I'd say that they're being corrupted in transit. If, for example, the zip file is being copied somewhere using a non-binary streaming method then it would be corrupted. If I were you, I still wouldn't rule this possibility out until I examined the setup more closely.
Do you only have the 1 build agent capable of performing the build or multiple? That might explain why it works every now and then.
Hello Community, Today we are going to talk about the three Scrum Roles. There is the Development Team, the Scrum Master and the Product Owner. In my opinion these three are all really impo...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG