Getting errors in build.

BambooBuildErrors.PNG

 

Please see above errors in my Bamboo Build Plan, can anyone help me resolve them.

1 answer

0 votes

I'm not sure they're errors in Bamboo - it's reporting that your code is missing libraries or includes when it tries to build the objects.

There is an exe called 'postsharp' which i have installed on my machine so that I can build the project, how do i install that on Bamboo server ? 
Or should i remove its references from project itself and then try to build on bamboo. 

The Bamboo build environment needs to contain whatever your code requires in order to build it.

But I have included DLL for postsharp and reference is also there, so why the build plan throws error as DLL not found??  

 

That would be because you've not installed them in the way the environment needs them.

I would try stepping outside bamboo and seeing if you can build manually in the same environment - if it fails, it should be able to tell you why.

if you referring to Bamboo environment as 'same environment' then i do not have access to Bamboo server. I can ask the support team to install the Postsharp exe. But before that i need to be very sure about that.

Yes, I am, the server you are building on needs to be able to build the code without Bamboo.  If the build needs postsharp.exe installed, then you need to install it (you could rig a Bamboo task to install it, but only if it can be installed automatically - command line or one-off executable with no gui)

By the way, it's not the Bamboo server you need to look at, its the machine which is trying to do the build - where the Bamboo agent runs.  This could be the Bamboo server (a lot of us do build on the same server), but it might not.

Could you please elaborate on  'rig a Bamboo task to install the the postsharp exe'.
What is the script which i should write in task ?

I can't tell you that - I don't know what postsharp.exe is or how to install it with a script.  Once you've got that, you can tell Bamboo to run it, but I can't help you with installing your software.

Thnanks Nic, 
But even if postsharp dll is present in the package, why it keeps saying that DLL not present ?
Is it a Nuget package manager issue ? 

I can't tell you that - it's your environment, not mine.  All I know about it is that you are using Bamboo to handle builds, so that must be installed.

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Thursday in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

938 views 5 18
Read article

Atlassian User Groups

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!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot