Bamboo skipping certain Visual Studio projects

Pavel
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 13, 2019

Hi everyone,

We're using a Bamboo instance on Windows Server with 1 agent, installed on the same server, to build (using Visual Studio) and deploy our ASP.NET MVC solution to our staging environment whenever a commit is performed to our repository. It has been working great for a while, but recently we noticed an increase in build failures due to an inability to generate certain artifacts.

That turned out to be because, when run within Bamboo, Visual Studio seems to be skipping building certain projects.

Interestingly enough, when building normally via the command line, all the projects build fine and nothing is skipped.

We've tried writing a batch script, the same one we used to test command line building, and the result is the same - certain projects are being skipped when that script is being run within Bamboo.

So far we have tried/checked:

  • Permissions. The user that Bamboo runs under has sufficient permissions over the working folders in Bamboo.
  • Building the solution in the working directory outside of Bamboo - both via the GUI and command line, both as the non-administrative Bamboo user and as an administrator. It builds fine in all these cases.
  • Upgrading Bamboo to the latest version. Nothing changed.
  • Upgrading Visual Studio 2017 that we initially used to the latest version. Nothing changed.
  • Installing and using Visual Studio 2019 instead. Nothing changed.
  • Deleting the .vs folder in our solution. Projects are still being skipped. In fact, we even included this action as a script within our build plan, to no effect on project skipping.
  • Deleting and re-initializing Visual Studio's user data.

Any suggestions would be greatly appreciated as we've tried lots of things to no avail. I'm already starting to lose my hair over the issue :) 

1 answer

1 accepted

1 vote
Answer accepted
Pavel
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 13, 2019

I was able to resolve the issue... Turned out that the project settings were to blame.

Un-checking this box in the project settings > Web got Bamboo building the missing projects again. Having these in the project file seemed to prevent the project from loading in some cases.

Capture.PNG

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events