Getting errors in build.

BambooBuildErrors.PNG

 

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

1 answer

0 vote

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 Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published yesterday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

48 views 0 3
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