youngmon/atlassian-qna huggingface dataset:
How to automatically map source repository alias to Bamboo username?
Asked by Mark McD:

I have configured Bamboo to use LDAP authentication \& it is the same LDAP tree our source repositories use for authentication.

Is there a way to get Bamboo to map its usernames to the usernames attached to commits in the source repositories? Ideally behaving the same way as FishEye does.


Answers:
author: James Dumay
body: At the moment, you have to setup the mappings manually. I've [opened a improvement issue](https://jira.atlassian.com/browse/BAM-11574) for this.

What version control system do you use? Does it use the same LDAP directory for authentication as Bamboo?

comments: author: Mark McD
body: Ahh yes - I can set the same LDAP repository for Bamboo \& FishEye when I set an application link and it auto-maps correctly. Thanks!


Tags: authentication

ldap
Bamboo SCP/SSH Task - Set SSH Port
Asked by Ryan Bonham:

Hi,

When creating and SCP task, is there a way to set the ssh port?


Answers:
author: Przemek Bruski
body: It's not possible. The plugin is open source though, it is fairly trivial to add the port conf functionality. I am sure the author will accept a pull request. The source is stored [here.](https://bitbucket.org/i386/bamboo-scp-plugin)


Tags: scp
Agent hangs when using GIT Capability on agent to "C:\Program Files (x86)\Git\bin\git.exe"
Asked by mcapodici:

I'm hosting Bamboo on Windows. I want to get a project from GIT and build.

Now the get source step works OK with the default GIT. :-)

However I need to use the "GIT capability" because I need submodule support. :-o

But when I add the GIT capability to the Agent to point to "C:\\Program Files (x86)\\Git\\bin\\git.exe" which is the msysgit git **then the job will run indefinitely**. It hangs at the point of trying to get the source.

:-(

Infact the only way to get the agent back so I can run another job is to restart the service.

:-( :-(

I am able to use git locally and clone the repo on the command line from the server hosting Bamboo.

:-\|

----

Notes:

Git installed from: [http://code.google.com/p/msysgit/downloads/detail?name=Git-1.7.10-preview20120409.exe\&can=2\&q=full+installer+official+git](http://code.google.com/p/msysgit/downloads/detail?name=Git-1.7.10-preview20120409.exe&can=2&q=full+installer+official+git)

The article that suggested I use a capability: <http://blogs.atlassian.com/2011/12/bamboo-34-git-submodules-ec2-windows/>


Answers:
author: James Dumay
body: There is currently [bug report open](https://jira.atlassian.com/browse/BAM-11096) that sounds like the problem you are experiencing. I've also contacted our support engineers who will be in touch with you to try to get to the bottom of this problem.

comments: author: mcapodici
body: Thanks James - tell them to feel free to call me. I also suspect that it could be the "proxy-SSH fingerprint host key checking" as this is a step that on the command line I had to say YES to (although only once).


author: Pankaj Jangid
body: Try changing the protocol that you use for git - http, ssh.

comments: author: mcapodici
body: Thanks for the suggestion. Http is not available. I am using ssh at the moment. How would this help anyway. I am able to connect to ssh from the box within the GIT BASH tool, so why shouldn't Bamboo be able to do the same using the same toolset?
Name on remote agent changes when upgraded and sometimes on restart in agents page in administration.
Asked by Andrew Morin:

So I have had this hapeen in both situations listed above. So today I upgraded Bamboo from 3.4.3 to 4.0.1. I also upgraded the the remote agents with the 4.0.1 jar file. When I bring the build servers back online I get the following...

Pre-Upgrade **build.server (1)**All custom capabilities setup.

Post-Upgrade **build.server (2)**I lose all custom executables, if I try to edit the name it tells me the name already exists.

Major PITA when you have ten build servers with multiple custom executables. Is there a work around for this??


Answers:
author: Przemek Bruski
body: > Major PITA when you have ten build servers with multiple custom executables. Is there a work around for this??

Don't update the remote agents, because then you are essentially reinstalling them as new agents. Just start them against the upgraded server - they willl be updated automatically and all configuration data should be preserved.


author: Andrew Morin
body: So what if I already upgraded them is there any work around? This should be stated in the documentation. I figured we should be running the remote agent that was the same as the version of Bamboo...so much for common sense...

comments: author: Przemek Bruski
body: > I figured we should be running the remote agent that was the same as the version of Bamboo...so much for common sense...

Even ancient remote agents from Bamboo 2.2 can self-update to 4.0, despite completely different classloading mechanism - it would just be to much pain the make sure all the agents are up to date all the time. It's even better than that - if you install new 3rd party plugins on the server, they will be upgraded on the agents as well. Same goes for downgrading.

We sometimes mentioned that the remote agent upgrade is not needed in the upgrade guide - but after all, the upgrade guide is a bad place to list things that should not be done ;-)


author: Przemek Bruski
body: You can try undoing the changes to bamboo-agent-home/bamboo-agent.cfg.xml (or restore the file from backup). The content of QUEUE table in DB should be helpful if you don't have backup.

The tags that have to be restored are  
\<agentDefinition\>/\<id\> and \<agentDefinition\>/\<name\> (not sure about agentUuid).


author: Andrew Morin
body: Note that changing the Name and ID were sufficient. UUID was not needed.

Thanks

Przemek

Still think there should be a note or warning message to not mess with remote agents :-) At least I know going forward...
Perforce workspace per build plan in Bamboo?
Asked by emddudley:

Per the [documentation](http://confluence.atlassian.com/display/BAMBOO032/Perforce):
> Do not create two Plans/Jobs that use the same client (e.g. one client set to manage, the other client set to not manage). This setup will create major issues in your builds.

Am I really expected to create a new workspace for every build plan? Is there any way to use a single workspace on multiple build plans?


Answers:
author: bmccoy

author: bmccoy
body: Hi,

The idea is that you dont want two things accessing the client at the same time. So if a circumstances arises where PLAN B suddenly starts building while the PLAN A is still going, PLAN B would cause a sync on that workspace, resulting in the first half of PLAN A building one revision and the second half building another revision.

You might be able to use the same client, for e.g. multiple jobs in a plan (if each job is in its own stage). Or, if you can guarentee none of the plans are going to execute at the same time (e.g. you only have one agent).

You may also be able to use the same client if your provide a different depot view for each plan. However I have not tested this.

In either of these scenarios you should not select the "manage my workspace" option.

Cheers,

Brydie


Tags: perforce
Does Bamboo 4 support notifications when executing branch plans?
Asked by Mark McD:

I've just set up quite a few branches across my Bamboo plans using version 4's new branching feature but I am not getting emails when the plan should be triggering them (on failed builds). The test email sends successfully.

Does Bamboo trigger notifications on branch events? If no, can it be configured to? If so, any idea what might be wrong?


Answers:
author: Przemek Bruski
body: The way is should work: all people who committed changes included in a build and all people who have favourited a branch should receive notifications for build failures and first success after failure. If that does not work, it's best if you [contacted support](http://support.atlassian.com) - it's either a bug or an infrastructure issue. Do the notifications (build failure/first success) work for the parent plan?

comments: author: Mark McD
body: I set up a new notification to email committers on every build \& that's working for the branches, but I have an "email this address for failures \& first success" that isn't working for all of them. Looks like it's time to call support. Thanks.


author: Ian Vaughan
body: I too have this problem, emails work fine for the main plan branch builds, but for Plan branches I get nothing!


author: James Dumay
body: If you want to setup different notifications for each branch, there is a [feature request open for that](https://jira.atlassian.com/browse/BAM-11121). Please vote on it :)


Tags: branch

email

notification
Is it possible to setup an Elastic Bamboo instance to use a EBS Volume instead of an EBS Snapshot
Asked by Matthew Hillier:

We have just begun setting up our JIRA-Studio / OnDemand system to use Bamboo. I've got the builds running, however because we are using Subversion, I notice that an instance has to do a fresh-checkout of a working copy every time it starts (using auto-managed elastic instances).

I would like to setup my elastic instances to have a persistent volume that houses the bamboo_home directory, but that doesn't seem possible. Am I missing something?


Answers:
author: Przemek Bruski
body: That is not possible at the moment. The feature requests you'd be interested in are [here](https://jira.atlassian.com/browse/BAM-5930) and [here](https://jira.atlassian.com/browse/BAM-11525). Please watch and vote.

comments: author: Matthew Hillier
body: That's a shame - but thanks for the links. I will be adding my vote for sure!


Tags: cloud

jira-studio
Bamboo Fails a build just beacuse i dont have tests
Asked by Madhu Raj soudathikar:

I have configured a Maven project with goal as Clean package. the Compilation goes on fine and i see build successful message. In the next line , i see a message "Failing task since test cases were expected but none were found."

Is there a way i can get around this


Answers:
author: Bob Swift (personal)
body: Check your build specific configuration - there is a place to specify whether or not tests are expected. If you have no test, then change configuration to reflect that so the build does not fail.

Go to your plan: Actions -\> Configure Plan -\> Default Job -\> Tasks

Then if you have a Maven task, look at the bottom where it talks about Test results. Or it may be in another task depending on your plan configuration.

comments: author: Madhu Raj soudathikar
body: Could you please specify where i can set this --\> not to fail build in case of no tests .. i Am new to Bamboo.. trying toexplore this


author: Sebastien Tardif
body: Did you found an answer?


author: Shadab Bigdel
body: Go to you job configuration and click edit, at the end of the page, there is a line which says:

### Where should Bamboo look for the test result files? {#toc-hId-1593240243}

### The box near the option "The build will produce test results." shouldn't be clicked {#toc-hId--958916718}


author: miratif_ali87
body: Thankyou [@Shadab Bigdel](/t5/user/viewprofilepage/user-id/1186010) .Its working now.


Tags: build

error

message
Integration between jira ondemand and bamboo ondemand
Asked by gustavo monarin:

Hi,

We are moving from a local bamboo jira instalation to the atlassian onDemand but looks like ondemand doesnot have support for a important feature for us, the jira bamboo integration mainly to version management.

In our instalation we have Applications link configured and we can see and select between the jira versions in bamboo.

Once that Applications links are not available in the ondemand version, what would be the best approach to integrate jira - bamboo, mainly for releasemanagement, artifact management.

Thanks in advance.


Answers:
author: Przemek Bruski
body: Bamboo version used on OnDemand does not have all of the JIRA integration features available in the newer, Download version. Among others, release management is missing.

You should be able to use the integration features once OnDemand upgrades to Bamboo 4.x version. We are currently working on upgrading it.

comments: author: gustavo monarin
body: Thank for your answer.

Do you have idea when this upgrade will happens? I 've checked on ondemand confluence but i haven't found anything about this upgrade.


author: Przemek Bruski
body: An official date is not yet announced. We are currently working on it - it's a tricky update (for us) and it will take some time before it's available.


author: gustavo monarin
body: Hi,

The upgraded bamboo on demand has really good new features however i haven't found a way to configure link applications or a way to do the r[elease\[1\]](https://confluence.atlassian.com/display/JIRA/Running+a+Bamboo+Build+when+Releasing+a+Version) management work. Is it possible in the new bamboo release ?

<br />

Thank you in advance.


author: James Dumay
body: Gustavo, this feature should be available in 1 to 2 weeks when we deploy an update to the JIRA and Bamboo integration.


Tags: jira-bamboo-plugin

jira-cloud
I would like to install another agent on a machine that currently has an agent installed
Asked by Brian Stubbs:

I would like to install a second agent on a machine and was wondering if it was possible to do so without running a vmware virtual machine. If it, I would appreciate if you could point me to some directions on how to do so.

Thanks,

Brian


Answers:
author: James Dumay
body: I've raised an [issue to improve this situation](https://jira.atlassian.com/browse/BAM-11560).


author: Cameron Ferguson
body: For our setup, we currently run some really big build boxes (24 cores, 24gb of ram, etc)

We actually have 3 agents setup on these boxes since they can handle more than 1 compilation at a time. The key is to give the agents different "homes" to work in, then you can ideally run as many as you want. The way we do it depends differently on if it's windows or linux.

If it's linux (we use centos, but this should be the same for most) we launch our agents from the rc.local file during startup. We have 3 entries in that file for all 3 agents we run. We start our agents this way:
> java -Dbamboo.home=/bamboo-agent-home-1/ -jar /bamboo-agent-home-1/atlassian-bamboo-agent-installer-3.3.2.jar <http://host:port/agentServer> \&
>
> java -Dbamboo.home=/bamboo-agent-home-2/ -jar /bamboo-agent-home-2/atlassian-bamboo-agent-installer-3.3.2.jar <http://host:port/agentServer> \&
>
> java -Dbamboo.home=/bamboo-agent-home-3/ -jar /bamboo-agent-home-3/atlassian-bamboo-agent-installer-3.3.2.jar <http://host:port/agentServer> \&

If it's windows, we did things a bit differently. We created a "bat" script that's executed at the system startup that launches all 3 agents. The contents look like this:
> rem ## START THE FIRST AGENT ##  
> start java -Dbamboo.home=C:\\\\bamboo-agent-home-1\\\\ -jar C:\\\\bamboo-agent-home-1\\\\atlassian-bamboo-agent-installer-3.3.2.jar [http://host:port/agentServer/
> rem](http://host:port/agentServer/%3Cbr%3E%3Cbr%3Erem) ## START THE SECOND AGENT ##  
> start java -Dbamboo.home=C:\\\\bamboo-agent-home-2\\\\ -jar C:\\\\bamboo-agent-home-2\\\\atlassian-bamboo-agent-installer-3.3.2.jar [http://host:port/agentServer/
> rem](http://host:port/agentServer/%3Cbr%3E%3Cbr%3Erem) ## START THE THIRD AGENT ##  
> start java -Dbamboo.home=C:\\\\bamboo-agent-home-3\\\\ -jar C:\\\\bamboo-agent-home-3\\\\atlassian-bamboo-agent-installer-3.3.2.jar <http://host:port/agentServer/>

I have no idea what OS you are using or your experience with them but I will go ahead and explain that in the linux version we add the "\&" symbol to the end of the line in order to background the task. This prevents the OS halting the script on that line during execution. We just tell it to start and move on with the rest of the commands. In windows, prefixing the command with "start" does the same thing.

Our windows script will also kill the other agents if they happen to be running.
Can't run Bamboo as a local user, just get a 503: Service Unavailable
Asked by emddudley:

I tried to change my Bamboo service (on Windows XP) to run as a local user rather than as the local system, following [Atlassian's directions](http://confluence.atlassian.com/display/BAMBOO40/Running+Bamboo+service+on+Windows+as+the+local+user). When I make the change and restart the service, I get a "503: Service Unavailabe" error when I try to connect over HTTP.

The log files don't have any useful information. Any ideas how to fix that?


Answers:
author: James Dumay
body: I recommend getting in touch with [support](http://support.atlassian.com) - they can help you from there.


author: Alan Roberts
body: For anyone else who has this problem, please first check that the account that the Bamboo service runs under has full control on the Bamboo home directory, and \[read, write, execute\] permissions on the installation directory. If it doesn't you will get a 503 error, but the logs will not tell you why because the user account that the service runs under does not have permission to write to the log.

Good luck
Why do I get a 'null' error when deleting a repository from a plan in Bamboo?
Asked by Mark McD:

When trying to delete an existing, but now unused repository from Bamboo, I get a response 'null' in the highlighted red dialog.

Here's a screenshot:

How can I fix this and move on to deleting the repository? I'm using Bamboo 4.0.


Answers:
author: PiotrA
body: Could you try to upgrade to 4.0.1?

I reckon there was similar issue in 4.0 that was fixed in 4.0.1 -\> https://jira.atlassian.com/browse/BAM-11377

comments: author: Mark McD
body: That worked, thanks!


Tags: bug

error

repository
Windows image support for Bamboo OnDemand
Asked by Subash Kalbarga:

Hi

It seems to me that with Bamboo OnDemand beingon 3.0.4 now, it requires creating custom elastic images to get Bamboo working with EC2. Is this still true? Are there any updates as to when Bamboo OnDemand will be revved up so that stock images are available for it?


Answers:
author: Przemek Bruski
body: Yes, it is stil true. Support for a stock Windows image will come with Bamboo OnDemand 4.0 upgrade.

As far as I know the release date is not yet set. What I can tell you is that from development point of view it's a complex upgrade (for us) and we are currently working on it.


Tags: aws

windows
Potenntial incopmatibilty between tomcat-dpcp, oracle, active objects
Asked by Tamas Kiss:

Dear support,

The installation of Bamboo sonar plugin has been failed. According to the information from the plugin owner the issue might be related to Active objects implementation, as the error is specific to Oracle database. (Does not cause any issues on other databases)

The related issue is: <http://issues.marvelution.com/browse/BAMSON-48>

Caused by: java.lang.IllegalAccessException: Class com.atlassian.activeobjects.bamboo.ConnectionHandler can not access a member of class org.apache.tomcat.dbcp.dbcp.PoolingDataSource$PoolGuardConnectionWrapper with modifiers public

at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:65)

at java.lang.reflect.Method.invoke(Method.java:588)

at com.atlassian.activeobjects.bamboo.ConnectionHandler.delegate(ConnectionHandler.java:43)

at com.atlassian.activeobjects.bamboo.ConnectionHandler.invoke(ConnectionHandler.java:38)

... 234 more

See the full log in the referenced ticket.

Thank you in advance,

Tamas Kiss


Answers:
author: James Dumay
body: Reposting my response from the [Marvelution bug report](http://issues.marvelution.com/browse/BAMSON-48):

The ActiveObjects support in Bamboo is currently in a incomplete beta form and we do not recommend it for persisting data at this time.

We are still working out all the kinks on the databases supported by Bamboo (e.g. MySQL, Microsoft SQL, Postgres, Oracle).

Its important to note that features such as Import/Export for ActiveObjects have not been implemented. This means if you use the Import, Export or backup functionality the data stored in ActiveObjects will not be included in the backup or restore process (however, making raw copies of the database will work).

In the next release of Bamboo, we've been working on implementing the backup and restore functionality (which includes database testing) so the situation may be improved in that version for the problem I mentioned above. However, even with the testing that we are doing in this release, we are not recommending that people rely on it for production.

When we are confident that ActiveObjects is ready to go, we will make an announcement on the [Bamboo Developer Portal](http://developer.atlassian.com/display/BAMBOODEV) to that effect.

If you have any questions or concerns, feel free to email me [james@atlassian.com](mailto:james@atlassian.com)


Tags: active-objects

database

oracle

tomcat
bamboo sonar plugin migration from old to new...
Asked by roy_lyons:

So we have been using the bamboo sonar plugin based on Ross Rowe's code for a very long time now... and it of course broke just a little on the last upgrade from 3.2 to 3.4.4 (only an annoyance really)

This made us look into Marvelution again, thinking life might be easier without re-fixing the old sonar plugin ourselves with every version upgrade...

Of course they are not compatible out of the box, so I thought perhaps I would ask if anyone has ever tried doing a batch conversion of plans which used the old plugin to use the new plugin... Anyone?


Answers:
author: James Dumay
body: Hi Roy,

Probably best to contact Marvelution and see if they are able to help you migrate.

Sorry I can't be of much more help!

comments: author: roy_lyons
body: They said impossible! So, thats that.


Tags: sonarqube
Very slow Bamboo web traffic transfers
Asked by Seravy:

Hi All,

I have been having a problem since moving our bamboo instance to a different subnet which has caused the web traffic to cap at 60-70kbps. It is most noticeable when downloading large artifacts (20+mb) or very large logs. If i access the files via file share, IIS, Tomcat, etc it all downloads at a max speed. When accessing the site from the same machine it will download at max speed.

Does anyone know how I might troubleshoot this issue?  
I installed a separate instance of tomcat and tested that which worked fine, we can access files via file share. All firewalls are turned off, ports open, etc.

Normally it would be fair to assume this is a network setup issue, however I can't explain to IT why the bamboo process if the only one affected. I am unsure if it is a network setup or something different but I can't think of how to test Bamboo in other scenarios.

Can any one point me to useful information in the logs or any ideas that will help me trouble shoot this issue?

Thanks


Answers:
author: Przemek Bruski
body: Which Bamboo version is it?

Does it run in a standalone mode or is it deployed into Tomcat?

Do you access it directly or is it fronted by Apache?

Which version of Windows?

comments: author: Seravy
body: Hi przemek,I realize my question was lacking information but that you for asking.I am using the bamboo standalone install of 3.4.3 running on windows server 2008.I am not sure what you mean by accessing it directly but there is no apache install that it uses.on monday I will attempt to install it on an instance of tomcat, but being in production it will get a bit tricky. I am somewhat confident that using it as tomcat would fix the issue but the migration will be a pain so I was hoping to rectify it in its current form. Thanks


author: Przemek Bruski
body: There are known performance issues with a standalone distribution running on Windows 2008.

Your best bet is deploy it on Tomcat - it should fix the problem.


author: Seravy
body: Ok i will give an upgrade to 4.0 a go while converting to tomcat install and let you know. Thanks.


author: Seravy
body: Installing it as a WAR package into Tomcat has fixed the issue. Infact it seems to be running much faster on all fronts. Cheers.