youngmon/atlassian-qna huggingface dataset:
Can Bamboo be used with vCloud?
Asked by Mark McD:

My organisation is in the process of implementing vCloud \& I am looking at purchasing Bamboo. I'm particularly interested in the remote agent deployment through EC2.

Is it possible to remotely deploy agents to [VMware vCloud](http://www.vmware.com/products/vcloud/overview.html) instances?


Answers:
author: ReneR
body: The integration of Bamboo and EC2 has more to do with dynamically allocating instances as you need them -- elasticness. So this is wound pretty tight with the Amazon AWS API. I'm not aware of vCloud support being planned. You can have a look through [jira.atlassian.com](http://jira.atlassian.com) to confirm.

At the same time, though, virtual instances (no matter where you host them) can also be treated as just normal remote agents. You'll have to manage the agent processes inside the instances yourself but that's fairly straightforward to do and can scale quite a bit. That's of course assuming you can also setup a secure channel between your vCloud instances and your Bamboo server instance to allow the Bamboo traffic.


author: James Dumay
body: I've opened up a [ticket to guage interest](https://jira.atlassian.com/browse/BAM-11467) for this feature.


author: Mark McD
body: I'll add to this that I've found [a plugin](https://plugins.atlassian.com/plugins/com.stiltsoft.bamboo.bamboo-vmware-plugin) that will manage VMs created through vCloud (using the vSphere API), but not the elasticity features that vCloud *could* do that Bamboo currently supports for EC2.


Tags: amazon

vmware
Nuget support on Bamboo?
Asked by Bernard O'Flynn:

Does anyone know if there is a plugin to support Nuget on Bamboo?

Its the .Net equivalent of Artifactory or Maven's repository.


Answers:
author: James Dumay
body: Bernard, what kind of integration are you looking for between Bamboo and Nuget?

comments: author: EddieW
body: We'd like a simple way to publish packages to a nuget repo without exposing the API keys on the filesystem.. looking into how tought it would be to roll our own plugin.


author: James Stracey
body: I'd like to see an integrated nuget server with propper retention policies to allow for better depedency managment in .net solutions.


author: Chris McGrath
body: look at teamcity nuget support if bamboo had this i would consider bamboo


author: roy_lyons
body: I would have to say that this would be completely dependant on your build tool of choice. Technically Bamboo doesn't support an Artifactory, Nexus, Archiva, or even a plain old maven repository.

I think that the real question should be "is there a plugin that supports the use of build tools which use nuget" and the answer is yes.

On the other hand, while I am thinking about it... there is a plugin for Artifactory, but that is to add capability to manage staging repositories, and their promotion... is that what you are looking for? If so, it would definitely be "no".

Since Sonatype just added Nuget support to their latest version of Nexus, you may want to look to see where Sonatype might be in the process of developing a Bamboo plugin for Nexus. That may turn my "no" into a "yes".
plans being built in sub-directory of xml-data/build-dir??
Asked by Dennis Ryan:

A strange thing has happened to my bamboo installation.... Our builds are configured to use a common ant build file and ivy. All of our projects reference ../CoreProject/common-build.xml, and ivy has been using a similar scheme to get it's artifacts. Since version 1 we have sym-linked the bamboo name to the "real" project name, and all this has worked pretty well.

Up until recently, bamboo has been organizing my code in $BAMBOO_HOME/xml-data/build-dir. Today i notice that some of my builds started failing and our projects were suddenly being stored in a sub-directory:

was: $BAMBOO_HOME/xml-data/build-dir/COREPROJECT-TRUNK-JOB1

is now: $BAMBOO_HOME/xml-data/build-dir/131073/COREPROJECT-TRUNK-JOB1

some projects are in still another sub-directory... Clicking around it looks like the numbers might corrspond to agent id's.

Does anyone have any insight on what might be going on here? Is this normal or do I have some corruption somewhere??

Thanks,Dennis

note: even though I was a "charter" bamboo user, I decided to get rid of some "upgrade cruft" by starting fresh and reinstalling Bamboo when I upgraded to 3.2 recently.


Answers:
author: Przemek Bruski
body: That's normal if you have concurrent builds enabled. If you disable them, you will get back to the previous layout.

If we stuck to the previous directory layout, a directory would have to be shared between two concurrent builds of the same job. So, concurrent builds -\> all job directories are per agent.

comments: author: Dennis Ryan
body: That's it, Someone clicked "Enable". Time to revoke some admin privs :-)


author: david.s.mittman
body: Przemek:

Can you have that tidbit added to the Bamboo documentation somewhere? Also, if an agent is disabled or deleted, an Admin might like to know that the ./build-dir/\<agentID\> directory can be deleted to recover disk space.
Question about running NUnit tests
Asked by Rob Carr:

Is there a way to make the NUnit tests run as part of a build in Bamboo? I can show the results using the NUnit Parser, but I can't seem to figure out how to run the unit tests from within Bamboo.

Any hints would be greatly appreciated!

Thanks guys.

Rob


Answers:
author: James Dumay
body: Hi Rob,

The latest version of the [Bamboo .NET plugin](https://plugins.atlassian.com/plugin/details/43168) has the ability to run NUnit tests directly from Bamboo. This plugin will also be included in Bamboo 3.3 when it ships in a few weeks.

Cheers,

James

comments: author: Rob Carr
body: Thanks James. I will look into it.


author: shab2908
body: sorry i couldn't found the link now, seems they have removed it.


author: Sam Stange
body: Can you run NUnit tests directly from Bamboo in this version? I'm on 3.2.2 and finding it very difficult to run nunit tests. There's very little documentation to be found in this area. Do you have any examples on how to do this?

comments: author: Joe Clark
body: I've supplied an answer to this on the question you asked about this :-)


Tags: .net

nunit
Trigger Conditions issue with Plan Keys
Asked by Rob Carr:

Hey guys,

I have setup a plan but only want it to run nightly if another plan was successful. In my case, I want the QA plan to run at midnight if the CI plan was last successful. When I edit the plan for QA and select the Source Repository tab, I see an option at the bottom of the page under Trigger Conditions.

Only run Build if other Plans are currently passing

I select the checekbox, and then it asks me to enter 1 or more Plan Keys. I entered the one I specified for my CI plan, and the plan key is "CI". I enter that and save it, but get a message

No plan with key CI exists in Bamboo  

It exists. I verified it on the plan page, and I tried another one. It too does not work.


Answers:
author: Przemek Bruski
body: Hmm, UI for plan defintion is misleading here. Plan keys are always in a format PROJECT_KEY-PLAN_KEY\[-JOB_KEY\]. The last part is optional. You need to add the project key.

comments: author: Rob Carr
body: Thanks again for your help. That worked.


Tags: condition

trigger
Bamboo, code inspection and coverage, and .NET
Asked by Rob Carr:

Hey guys, quick question. Which code coverage and inspection tools work with Bamboo for .NET? With Cruise Control we have used FxCop and nCover. What works with Bamboo?

Also, same question for PHP projects.

Thanks guys.


Answers:
author: James Dumay
body: Hi Rob,

Bamboo supports parsing and reporting NCover results by default. However, in order to get your build to generate NCover reports you will have to setup your own MSBuild or NAnt task.

Cheers,

James

comments: author: Rob Carr
body: Thanks James.


Tags: .net
How do you configure a plan to build and deploy a .ear file to a JBoss server?
Asked by Ray Hundley:

We are currently evaluating Bamboo 3.2.2. Up to now all our builds have basically been just creating a .EAR file in our IDE (JBoss developer studio) and deploying that .ear to the application server. How would you build a plan in Bamboo to do this?


Answers:
author: Jens Schumacher [Atlassian]
body: You can create an .ear file using [Ant](http://ant.apache.org/manual/Tasks/ear.html) or [Maven](http://maven.apache.org/plugins/maven-ear-plugin/) and use the Ant or Maven Tasks in Bamboo to run Ant/Maven. Regarding the deployment, you could copy the created artifact to the JBoss server via SSH and configure JBoss to auto-deploy.

comments: author: Ray Hundley
body: Thank you. I've figure out how to create the .ear file using and Ant script. But now how do I copy the created artifact to my JBoss deploy directory? I don't see any task types to do this.


author: Jens Schumacher [Atlassian]
body: Is the JBoss deploy directory on the same agent? If so, you can simply use the script task to move the file into the JBoss directory. If it's on a seperate machine, you could use an Ant SCP task to transfer the file.

<http://ant.apache.org/manual/Tasks/scp.html>

We are hoping to provide a Bamboo native SCP task soon to make this process easier.


author: Ray Hundley
body: Thank for the idea about using Ant SCP, but now it appears I'll have to install some kind of SSH server on the target machine (Windows 2003 server) in order to use it.


Tags: ear-war

jboss
Remote agent supervisor service wrapper stopping on Linux
Asked by Tom Evans:

My remote agent service wrapper stops whenever I shut down my Bamboo server. The service wrapper on Linux stops in about 5 or 10 seconds after spewing out lots of messages. Here is the end of those messages:

INFO \| jvm 6 \| 2011/09/01 09:35:19 \| 15 \[WrapperSimpleAppMain\] INFO org.apache.commons.httpclient.HttpMethodDirector - I/O exception (java.net.ConnectException) caught when processing request: Connection refused  
INFO \| jvm 6 \| 2011/09/01 09:35:19 \| 16 \[WrapperSimpleAppMain\] INFO org.apache.commons.httpclient.HttpMethodDirector - Retrying request  
INFO \| jvm 6 \| 2011/09/01 09:35:19 \| 16 \[WrapperSimpleAppMain\] INFO org.apache.commons.httpclient.HttpMethodDirector - I/O exception (java.net.ConnectException) caught when processing request: Connection refused  
STATUS \| wrapper \| 2011/09/01 09:35:19 \| \<-- Wrapper Stopped  
Waiting for the agent process to finish...  
Underlying agent process has terminated cleanly,  
Bamboo Agent Installer is shutting down, the underlying agent process has already been shut down.

Is this correct behavior? I'd like not to have to manually restart my linux agents after restarting my Bamboo server.


Answers:
author: Przemek Bruski
body: That's the correct default behaviour, the wrapper will terminate after 5 retries. You can configure it by setting:

wrapper.max_failed_invocations=100000

in wrapper.conf file in your agent's (not server) home directory.


Tags: wrapper
Bamboo: .NET Setups
Asked by Craig:

Are there any samples around of different approaches to configuring a .NET build process using Visual Studio as the builder?

I've been trying multiple jobs in a stage, multiple stages in a job, and dealing with having lots of different test projects within a solution. So it would be useful if there was a guide to good/best practice in this area.


Answers:
author: Bernard O'Flynn
body: Not that I'm aware of. We have also been using Bamboo for .Net builds. Our solutions are either a web site and many business layer projects, or a web service with associated business layer projects.

We have set up the web site and web services as web applications in VS. That way we can use the publish target to put everything into a zip and use the generated deploy.cmd to deploy to IIS.

So our first stage does our builds - up to 3 different configurations, debug(dev), test(qa) and release(live). Each build is a job in that stage so they can be done in parallel. Each job has a task that versions the dlls based on the version in JIRA and then creates shared artifacts so we can use them later on in the process without having to check everything out of SVN again. So we have 3 packages and then all the test dlls and test config files (vsmdi, etc.)

In the next stage, we run all our unit tests and code coverage (using NCover) by re-using the debug package.

In the next stage we deploy to IIS by calling the project.deploy.cmd that VS spits out when you call msbuild webproject.csproj /T:Publish

We then have another stage which is a manual stage which deploys to test. That way we can do some manual testing before we deploy to QA. Once QA is happy, we have another manual stage to deploy to live.

Hope that helps?

comments: author: Craig
body: Thanks Bernard. I was starting to head down the artifacts as inter-stage communication route but wasn't sure on whether I was about to waste a lot of time :)


author: Brandon Bird
body: I found the following ANT exec line to be effective. It calls the visual studio environment setup batch file, then invokes the solution build. If the compile/build fails, exec is returned a nonzero exit code, so ANT can act appropriately. Build output is written to a file, useful for diagnostics.

```
<exec executable="cmd.exe" failonerror="true">   <!-- execute a command which sets up and invokes the visual studio solution builder -->   <arg value="/s /c &quot; call &quot;%VS100COMNTOOLS%/vsvars32.bat&quot; &amp;&amp; devenv.exe ${gui.solution.file} /rebuild Debug /Out ${gui.build.logfile} &quot;"/></exec>
```

<br />

<br />
Comment button not working
Asked by lance_lyons:

Hi I am having some issues commenting on other peoples suggestions. I am presented with the text box, I add in my text and press comment and it does nothing. I have had to edit the original entry and add more to the end just to keep the thread going like the Bamboo thread i started below.

I have tried this in firefox and ie.

any ideas?


Answers:
author: lance_lyons
body: Does any body know what the comment size / text type requirements are?


author: lance_lyons
body: Ok i figure this out a bit. It seems like there is some filtering on the text added to this text box and in some cases the comment but will be active and in other cases it will not.

for instance you have to type 3 words to make the comment button active.


author: lance_lyons
body: test test test


Tags: comment
multi module (multi-repository in hg) builds
Asked by Ozan Yigit:

there appears to be no easy way to specify multi-repository builds where components of a system come from small repositories, rather than one monolithic repository. this is a common situation one finds with multi-million-line transition from CVS world. i realize there was an issue raised about this in oh, 2007, never fulfilled. I wonder what, if any techniques people use to deal with situations like this. i would rather not bury the repository checkouts inside a script - that deteats the purpose of invoking builds with repository activity.

thank you in advance for any suggestions, pointers.


Answers:
author: Przemek Bruski
body: Multi-repository support will come with Bamboo 3.3.

In the meantime, you may be able to apply some of the workarounds listed in <https://jira.atlassian.com/browse/BAM-955> .

comments: author: Ozan Yigit
body: and the estimated release date of bamboo 3.3 is...

workarunds are clumsy and basically unmanageable. i do not know if they will be adequate for our needs.  
i have about a couple of weeks left to fish or cut bait.


author: Przemek Bruski
body: We release every two-three months, so the next release shouldn't be more than two months away. We may release an early access version too.
Bamboo version 2.6.3 build 1904 - 30 Sep 10: Could not generate next build number
Asked by Robert McMahon:

Could not generate next build number for \[Build\] I have been getting this error on my Build server and I can't seem to find any information anywhere. I can't seem to find the location of the build log where a more detailed error hopefully would be, googling the error message doesn't give any good results and searching these forums for the error I didn't come up with anything close.


Answers:
author: Robert McMahon
body: The fix for this was to reboot the server. I think just restarting the MySQL service would have worked though.
When will Pre/Post Build Command Plugin be v3.2 compatible?
Asked by Tom Evans:

I was wondering when the Pre/Post Build Command Plugin will support Bamboo 3.2?


Answers:
author: Bob Swift (personal)
body: Atlassian support has indicated to me that it is compatible and the grid will (eventually) be updated. As mentioned above, you should move to the new support, but, it is nice to know that can be gradual once you have upgraded.


author: Przemek Bruski
body: Pre/Post plugin is supported by Atlassian - if it does not work, please contact support (or describe the problem you are having here ;-) )

Note that if you are able to achieve the same result using tasks, you should prefer them over Pre/Post.

comments: author: Tom Evans
body: I have not tried to use the plugin yet because the compatibility grid on the plugin download page says it is not compatible with v3.2. I will try to use tasks in favor of Pre/Post, thank you.


author: Przemek Bruski
body: As with all plugins, the compatibility grid is "confirmed compatibility" - i.e. unless it explicitely says a plugin is incompatible it's always worth trying it out.

Most of the popular plugins (also unsupported ones) are deployed on our internal environments and we make sure we don't break them during development of Bamboo.
Is there a way to make Bamboo run personal builds
Asked by Wendy Bohannon:

Jetbrain's TeamCity supports personal builds -- developers can submit their pre-checkin patch fles to teamcity and run a test using their changes. Is there an easy way to make Bamboo do the same thing?


Answers:
author: Christoph Feddersen
body: Not right now, but you can vote for it: https://jira.atlassian.com/browse/BAM-5174
Launch Bamboo on Mac OS X as a StartupItem
Asked by Gregory Kellum:

Does anyone have a sample configuration file for launching Bamboo as a StartupItem on OS X? I have a Bamboo installation that uses MySQL as its database. I copied and modified the MySQL to start bamboo. But although I can see in the system logs that the script is being called and bamboo.sh console is being called, Bamboo isn't being brought up, and it doesn't leave any messages in its logs explaining why.


Answers:
author: Gregory Kellum
body: I ended up configuring bamboo to run as a launch daemon by putting this script in /Library/LaunchDaemons. It would be great if you added this sort of functionality to the installers when you overhaul them later, but just putting a paragraph about this in your installation manual now would probably be enough for most people.

\<?xml version="1.0" encoding="UTF-8"?\>

\<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "\>

\<plist version="1.0"\>

\<dict\>

\<key\>Disabled\</key\>

\<false/\>

\<key\>EnvironmentVariables\</key\>

\<dict\>

\<key\>BAMBOO_HOME\</key\>

\<string\>/Applications/Bamboo\</string\>

\<key\>JAVA_HOME\</key\>

\<string\>/Library/Java/Home\</string\>

\</dict\>

\<key\>Label\</key\>

\<string\>com.atlassian.bamboo\</string\>

\<key\>OnDemand\</key\>

\<false/\>

\<key\>ProgramArguments\</key\>

\<array\>

\<string\>/Applications/Bamboo/bamboo.sh\</string\>

\<string\>console\</string\>

\</array\>

\<key\>RunAtLoad\</key\>

\<true/\>

\<key\>ServiceDescription\</key\>

\<string\>Bamboo\</string\>

\<key\>StandardErrorPath\</key\>

\<string\>/Applications/Bamboo/logs/bamboo.stderr\</string\>

\<key\>StandardOutPath\</key\>

\<string\>/Applications/Bamboo/logs/bamboo.stdout\</string\>

\<key\>UserName\</key\>

\<string\>root\</string\>

\</dict\>

\</plist\>


author: James Dumay
body: Hi Greg,

Unfortunately Bamboo does not ship with a Mac OS X startup item. However, we are going to be doing a major overhaul of our installers in the coming year so I have [raised a feature request](https://jira.atlassian.com/browse/BAM-9723) for this on your behalf.

Cheers,

James
What is everyone doing with plans that are no longer required?
Asked by Bernard O'Flynn:

We have branch plans for projects that then go live and the branch gets moved to 'dead' in our SVN repo.

We will never build that plan again. How is everyone handling this? Are you just deleting the plan? Or is there some way to mark it as archived/dead?


Answers:
author: Przemek Bruski
body: Disabling the plan and moving it into a project called "xHeaven for Plans" is a safe choice. In this way, it will never be triggered, it will stay at the bottom of your Dashboard and in case you need more disk space, you can easily find the obsolete plans and delete them.

comments: author: Bernard O'Flynn
body: Yeh that doesn't work either. When I gave them all unique names (by prefacing the name with xDead) and new keys (by prefacing the key with XDEAD) it still keeps telling me the names and keys need to be unique?


author: Bernard O'Flynn
body: When I tried this, I had to rename them all and give them all new keys?? Is there a way to do this without having to rename them?
How do I use a parameter in the artifact path?
Asked by Bernard O'Flynn:

I have a parameter that defines what configuration to build for. Configurations map to environments.

The artifacts are built out to a folder that maps to the configuration and thereby the environment.

So I'd like to use the build plan variable and use that in the artifact definition.

How do I do this?


Answers:
author: Bernard O'Flynn
body: Apparently artifact paths can't accept parameters


author: ReneR
body: What Task are you using to build? (i.e. what build tool?)

Build Plan variables are generally available during build time so assuming your build tool supports specifying this configuration it should be fine.

For example, if I'm using ant or maven and I want to pass a parameter, I set the parameter key=value pair as a Plan-level variable. Then in the task I can make my command parameters something like "${bamboo.myparameter}"
prioritise
Asked by Y:

all,  
there is a way to prioritise the job inside the stage ?  
Thanks


Answers:
author: Jens Schumacher [Atlassian]
body: You're most welcome.


author: Jens Schumacher [Atlassian]
body: No, Jobs are executed in no particular order.

comments: author: Y
body: Thanks a lot for the quick answer !!!
Migrating to SQL Server
Asked by Jose Salinas:

```
We have in production an instance of Bamboo version 3.1.4 buil 2415. 
```

```
The idea is migrate to Bamboo to an SQL Server database.
```

```
I would like know if Bamboo provide a similar tool included in FisheEye/Crucible 
```

```
where the migration to SQL Server can be done from the Crucible administration 
```

```
console.
```

```
I think that it process is better than the process of create a DB buckup and then 
```

```
make a migration with native tools.
```

```
 
```

```
Thanks in advance.
```

```
Kind regards,
```

```
Jose  
```

<br />


Answers:
author: Przemek Bruski
body: You don't need a db backup / native tools to migrate Bamboo.

The process is fairly easy:

1. set up a fresh Bamboo instance on SQL server,
2. export Bamboo into a file from Bamboo Administration console.
3. Import the file into the new instance (you can also do it during setup of the new instance).

comments: author: Jose Salinas
body: Thanks Przemek.

According to documentation <http://confluence.atlassian.com/display/BAMBOO031/Exporting+Data+for+Backup> there is a limitation when we performed the exportation.

This limits the maximum ZIP file length to 4GB and exports will fail if the resultating ZIP is over that.


Tags: database

migration