youngmon/atlassian-qna huggingface dataset:
How to migrate local bamboo users to LDAP users keeping usernames
Asked by Charlie Misonne:

Hi

I want to start using our LDAP directory instead of the local bamboo user dirctory. All users have the same username as their AD equivalent. For Confluence and JIRA this works perfectly but apparently Bamboo behaves in a different way:

According to the documentation: <https://confluence.atlassian.com/bamboo059/integrating-bamboo-with-ldap-800858652.html>
> [](https://confluence.atlassian.com/bamboo059/integrating-bamboo-with-ldap-800858652.html)**Ensure that you do not have duplicate users in your LDAP directory** --- If you have users in your LDAP directory that are also on Bamboo, the first repository definition in your atlassian-user.xml file will take precedence.

= When configuring an LDAP directory in Bamboo the exisitng local users may not have the same usernames as in LDAP.

**How can I migrate the local users to the LDAP directory by keeping their permissions etc. ?**

Currently I set both configurations in atlassian-user.xml and when I search for my user both the local user and the AD user appear in the AD groups and not in the local groups. When I switch the order of the directories in the configuration both appear in the local groups. Again, i JIRA and Confluence this works differently which is a pain


Answers:
author: Charlie Misonne
body: I solved this by:

* setting the Hibernate directory as first directory in the xml config.
* Added a new local admin user. (In case of AD problems)
* Wrote down the group memberships for each user
* Deleted each user
* set the LDAP directory as first in the xml config
* added the users to their original group memberships

TODO: figure out how to remove the local "super admin" user


Tags: bamboo-administration
Where can I download the windows stock image for a remote agent?
Asked by Stefan:

*This question is in reference to Atlassian Documentation: [stock images](https://confluence.atlassian.com/pages/viewpage.action?pageId=737184550)*

Hi,

I want to try Bamboo and want to use a remote agent - and now I want to download the windows stock image. Where can I find the download?

Ciao!  
Stefan


Answers:
author: Jonas Andersson
body: You want a complete windows OS image? I might be wrong, but as far as i know Windows is a proprietary OS so you will never get an image for free. Heard that Windows 10 would be free if you bought a Raspberry PI, but that's as close as you get, for free..

comments: author: Stefan
body: Yes, I want the image for free - I don't want the license for free...


Tags: cloud

image
How do we detect whether ant was successful or failed from a Script task?
Asked by danielsheard:

*This question is in reference to Atlassian Documentation: [statuses/build Resource](https://confluence.atlassian.com/pages/viewpage.action?pageId=779295267)*

We have an Ant task that builds our Java application.

We then have a script that CURLs the Bitbucket Cloud Rest APIs to update if it is successful. We have made the API call work, but we do not know how to detect if the Ant build was successful or not...

<https://confluence.atlassian.com/bitbucket/use-the-bitbucket-cloud-rest-apis-222724129.html>


Answers:
author: Alexey Chystoprudov
body: There is Ant task in Bamboo you can use to run your build script. Then add Script task after it which will execute REST call. If Ant task fails Bamboo will not execute sequence tasks

comments: author: danielsheard
body: But that means we cannot send failures to Bitbucket, only report successes?


author: Alexey Chystoprudov
body: Right. Then try to use this solution to receive execution result - <http://stackoverflow.com/questions/6746327/how-to-run-ant-script-from-a-shell-script>


Tags: bitbucket

bitbucket-cloud

cloud

documentation
Can i dump all my custom bamboo variables to a file
Asked by Jacobus van Heerden:

I have a lot of different bamboo plans and each with its own set of custom variables. I take these variables and then add them to the apache virtual hosts file.

But that means for every virtual hosts file i need to echo the or substitute the variables to the file. IS there a way i can just tell bamboo during a plan run to get all the custom variables on the plan and just echo it out to a file?


Answers:
author: Jacobus van Heerden
body: Thanks. Where is the log located if i dump it to log? Maybe i can then read them from the log? This would actually be a great feature in bamboo.

comments: author: Alexey Chystoprudov
body: Log is stored at server side and agent don't have access to it. So you need to create plugin to dump all variables to file at agent side. As reference you can look at implementation of

```
com.atlassian.bamboo.plugins.variable.debug.DumpVariablesTask from bamboo-variable-inject-plugin
```


author: Alexey Chystoprudov
body: Hello @Jacobus van Heerden,

There is no built-in task for it except Dump variables to log. You can use it to debug your plan configuration


Tags: variable
How to implement Query result comparison
Asked by Bas van de Lustgraaf:

Hi guys,

I'm new to Bamboo and I would like to use Bamboo to test our Data Warehouse. I've an idea but I don't have the knowledge how implement this within Bamboo.

A test consists of two queries, one on the source database and the other on the data warehouse. If the result of both queries are identical, the test passed.

Can you please point me in the right direction how to implement this test case using Bamboo?

Thank you in advance.

Regards,

Bas


Answers:
author: Bas van de Lustgraaf
body: I'll go and check out JUnit. If I remember well, you can do object comparison in JUnit. Thank you!


author: Alexey Chystoprudov
body: Hello @Bas van de Lustgraaf,

Try to think out of tool. How would you solve this task without any CI server? Maybe some shell script, or Node.js application, or JUnit test. When you can execute your task from your command line then you can use some tool, like Bamboo to execute it remotely in controlled environment.
Bamboo Upgrade failed due to an InnoDB requirement
Asked by David Penney:

I am attempting to update Bamboo form 5.9.7 to 5.10.0. I was able to successfully complete this on one server but I am failing on the other.

2016-01-23 14:33:16,666 FATAL \[localhost-startStop-1\] \[DefaultBootstrapManager\] Pre-bootstrap upgrade tasks failed  
com.atlassian.upgrade.UpgradeException: Pre-bootstrap validation tests failed: \[Task for build 51012 failed:, Bamboo DB must use InnoDB table engine.\]

I am investigating the MySQL setup but the configuration of the DB did not change between the 5.9.7 and 5.10.0 update. Was this a requirement for 5.10.0?

Edit: It looks like the successful server has all of it's tables set to InnoDB while the unsuccessful server is mixed between InnoDB and MyISAM. Can I just switch the tables to InnoDB (I am not a DBA);


Answers:
author: David Penney
body: Looks like you need to alter all of the tables:

mysql -u root -p

SHOW TABLE STATUS FROM bamboo WHERE Engine != 'InnoDB';

ALTER TABLE \<table_name\> ENGINE=InnoDB;

Note: It appears you can not do a group of tables unless you script it. Also, some tables may take a little time.

Root Cause: Initial install of Mysql has the default set to MyISAM. At some point after the initial setup of Bamboo on this server, the default was switched to InnoDB but the tables did not all get migrated.

Solution: As above.

comments: author: Justin LaRose
body: Here is an official guide to the solution you described:

<https://confluence.atlassian.com/bamkb/unable-to-start-bamboo-bamboo-db-must-use-innodb-table-engine-826871387.html>


author: rverschoor
body: InnoDB was already a requirement for older Bamboo versions.  
The change in 5.10.0 is that it now checks at startup, and refuses to continue if it detects MyISAM.  
See also <https://jira.atlassian.com/browse/BAM-15783>


Tags: bamboo-administration
bamboo 5 css fail
Asked by Ron Stanonik:

I'm testing upgrading bamboo standalone from 5.9.2 to 5.10.0.

http works, but https looks like css failed to load.

I don't see any obvious errors in the tomcat or Atlassian logs.

https worked for 5.9.2

As a test, I installed a fresh 5.10.0, confirmed that http works, then I enabled ssl (conf/server.xml, uncomment 8443 connector). Same https behavior, page looks like text, as though css didn't load.

Running on Redhat 6.3 (I tried on a 6.7 machine, same behavior).

java version "1.8.0_25"

Java(TM) SE Runtime Environment (build 1.8.0_25-b17)

Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)

atlassian-bamboo-5.10.0.tar.gz


Answers:
author: asantos1822
body: Hi Ron,  
Please try adding these values to the "8443" connector section of server.xml:  
{noformat}  
protocol="org.apache.coyote.http11.Http11NioProtocol"  
useServerCipherSuitesOrder="true"  
ciphers="  
TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384,   
TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384,   
TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384,   
TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384,   
TLS_DHE_DSS_WITH_AES_256_CBC_SHA256,   
TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA,   
TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA,   
TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA,   
TLS_ECDH_RSA_WITH_AES_256_CBC_SHA,   
TLS_DHE_DSS_WITH_AES_256_CBC_SHA,   
TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,   
TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,   
TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256,   
TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256,   
TLS_DHE_DSS_WITH_AES_128_CBC_SHA256,   
TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA,   
TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA,   
TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA,   
TLS_ECDH_RSA_WITH_AES_128_CBC_SHA,   
TLS_DHE_DSS_WITH_AES_128_CBC_SHA,   
TLS_ECDHE_ECDSA_WITH_RC4_128_SHA,   
TLS_ECDH_ECDSA_WITH_RC4_128_SHA,   
TLS_ECDH_RSA_WITH_RC4_128_SHA,   
TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,   
TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,   
TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,   
TLS_RSA_WITH_AES_256_GCM_SHA384,   
TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384,   
TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384,   
TLS_DHE_DSS_WITH_AES_256_GCM_SHA384,   
TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,   
TLS_RSA_WITH_AES_128_GCM_SHA256,   
TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256,   
TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256,   
TLS_DHE_DSS_WITH_AES_128_GCM_SHA256,   
TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA,   
TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA,   
TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA,   
TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA,   
TLS_EMPTY_RENEGOTIATION_INFO_SCSVF"

{noformat}

And remove the:  
sslProtocol:"TLS"  
Restart Bamboo and see if it works.

Regards,

Augusto


author: Ron Stanonik
body: That fixed it!

Thanks,

Ron
Add Bamboo Java to Maven project
Asked by Evan Kellogg:

I could be missing something or not understanding the API (<https://developer.atlassian.com/bamboodev/java-api-reference>) properly, but how can I add the latest bamboo java api to my maven project?

I would like to try to use this instead of the REST API in order to make calls to my instance of bamboo.


Answers:
author: Jobin Kuruvilla [Adaptavist]
body: You have to write a Bamboo plugin. Is that what you are trying to do?

<https://developer.atlassian.com/bamboodev/bamboo-plugin-guide>

comments: author: Evan Kellogg
body: Thank you Jobin. This is what I figured the case was. I was hoping that I could use the Java API in a similar manner to the REST API and not need to make a plugin. I will continue to use the REST API.


Tags: java

maven
Release management with bamboo\stash
Asked by Tomer Moshe:

Hi there,

I am trying to understand the following:

We have a project which it's CI and CD are managed by Bamboo.

Currently we have a need to manage releases which mean that when I create a release in Bamboo - I would like to be able to go back to this release using stash\\git in order to investigate bugs.

How may I do so? Is there an easy way?

Thank you very much


Answers:
author: Tim Crall
body: A release in Bamboo should be associated with a particular commit. You can see which commit it is in the "Commits" tab of a build result or release/deploy result. You can then check that commit out in git ("git checkout \<commit_id\>".  

comments: author: Gonen Jerby
body: In case that there were some commits in the same build - won't there be some "collisions"?


author: Tim Crall
body: I'm not sure I understand your question.


Tags: release-management
Bamboo home page takes long to load
Asked by Alex Gabrielian:

Our Bamboo instance has about 1000 plans on the bamboo home page ($BAMBOO_URL/allPlans.action). Every time we visit this page, it takes anywhere from 20-30 seconds to fully load. I know there is a filter feature to list only the projects you filter out but our team uses pretty much each project. Is there a way to make this load more instantaneously each time we visit?


Answers:
author: cbenard1
body: Hi Alex,

For starters let's make sure that Bamboo has been allocated enough memory. You can do so by looking at the `Bamboo Install Dir/bin/setenv.sh` or `setenv.bat` depending on your host OS (please see [here for full details](https://confluence.atlassian.com/bamboo/configuring-bamboo-on-start-up-289277345.html)). You'll want to make sure this is configured above the default 256/384.  

Additionally as Daniel has mentioned it could be DB performance. Postgres is our recommended DB so we're good there. However with that many plans you may want to up the number of DB connections from Bamboo to your DB. You can do this by upping the connection pool on your DB side and editing the `<Bamboo Home Directory>/bamboo.cfg.xml` so the `<property name="hibernate.c3p0.max_size">100</property>` is increased. The number of threads can be determined by the formula found [here.](https://confluence.atlassian.com/display/BAMBOO/Bamboo+Best+Practice+-+System+Requirements#BambooBestPractice-SystemRequirements-Databaseconnectionpoolsize)

If everything is looking good and you're still hitting performance issues please create a support ticket at <https://support.atlassian.com> and we'll take a closer look!

Thanks!

Turner

comments: author: Alex Gabrielian
body: Hi Turner, will this change require a full bamboo/postgres restart or is it applied upon change?


author: cbenard1
body: Hi Alex,

These changes will require a restart to take effect. If you're needing to up the thread count in your postgres instance to accommodate the large number of consumed threads (not always necessary) then you may need a restart as well, but just making the change to Bamboo should not require a restart of postgres.  

Best of luck!

Turner


author: Alex Gabrielian
body: We're using PostGres and Bamboo version 5.7.2. I have not looked at the database performance. What are the steps to do that and how do we analyze the performance?

comments: author: Daniel Wester
body: I would look for long running queries. It might be that you're missing an index or something. You should probably put in a support.atlassian.com issue as well


author: Daniel Wester
body: What database and bamboo version are you using? Have you looked at the database performance?


Tags: bamboo-administration
How can I set different bamboo variable value for automaticaly created branches (using regexp release/.+)
Asked by Libor Ondrusek:

*This question is in reference to Atlassian Documentation: [Using plan branches](https://confluence.atlassian.com/pages/viewpage.action?pageId=289276872)*

I have plan targeted to develop branch in git. In bamboo I set automatical creating branches for regexp release/.+

Develop branch I need build with maven profile dev but for all of releases branches need build with prod maven profile.

I have one bamboo variable with maven profile, which is set to dev for dev branches, prod for one master branch. When new release branch is created on bamboo, the variable is set to dev as in plan.  
[](https://community.atlassian.com/t5/Bamboo-questions/How-can-I-set-different-bamboo-variable-value-for-automaticaly/qaq-p/25462?attachment-id=10925){#link_1167b8b0df7f9e}  
[](/tnckb94959/attachments/tnckb94959/bamboo-questions/831/1/image2016-1-19%2012%3A4%3A0.png){#display_1167b8b0df7f9e_0}


Answers:
author: Marcin Gardias
body: This might be not the simplest way but it might just work for you:

* create script task that compares bamboo built-in variable ${bamboo.planRepositories.branchName} with the regexp
* the script should create .properties file that defines proper maven target according to the comparison's result
* you can then inject the properties from the file into the build using Variables Inject Task (bundled with Bamboo)
* re-configure maven task to use injected variable.

comments: author: Libor Ondrusek
body: Thank you Marcin.

Your solution is little bit complicated but looks acceptable for me. I will try it.

Libor


author: Libor Ondrusek
body: Thanks.

It is working very well.


author: Phill Fox
body: I would set a different release plan for production to the dev plans and follow the instructions on <https://confluence.atlassian.com/bamboo/naming-versions-for-deployment-releases-361726798.html> to set the naming convention for each.

comments: author: Libor Ondrusek
body: I would to have only one plan for one component/library.


author: Libor Ondrusek
body: image2016-1-19 12:4:0.png


Tags: bamboo-administration

branch

plan
Feature branch only runs tests, Master branch deploys.
Asked by Ryan Knopp:

So currently I have the master branch build, run tests, and deploy to an outside server. I want to have feature branches just to build and run tests. Can this be done with one plan? Looks to me I would need two plans to do this. One for master deployment on the master branch, and the other just to run tests. Is this correct?


Answers:
author: Tim Crall
body: Different branches on a plan are for building different branches from your source control, but still have the same stages, jobs, and tasks. So yes, you would have to break this up.

Typically, at least the way we do it, you would have one Build Plan that does your building and testing and another Deploy Plan (which is a whole other type of plan in Bamboo) that does your deployment steps.

comments: author: Ryan Knopp
body: So then on the feature branches I can then turn off master branch some way, since the tests will run on deployment?

Or do I have a test plan that does test on all branches then the deployment plan executes on master when the test plan finishes on master?


author: Tim Crall
body: I'd do it that second way. Use the build plan to build and test all branches, whether feature or master. And then use the deploy plan only to deploy master. A deployment plan is linked to your build plan, so it deploys the results of a specific build.


author: VikasB
body: You can use Cucumber For Bamboo plugin. This plugin adds Cucumber parsers in Build as well ad Deployment plans. It provides options to pass or fail build if any test is failed or based on failure threshold or can just print test results in Log without affecting deployment status.  
The plugin also adds new UI elements to display deployment tests, Cucumbers results and pie chart of tests. It also has features to automatically link tests with JIRA issues.  
<https://marketplace.atlassian.com/plugins/com.mdb.plugins.cucumberforbamboo/server/overview>


Tags: cloud
Moving to new server on Bamboo 5.9.7
Asked by Stephen Reece:

We are running a 2008 R2 server with Bamboo 5.9.7 using an SQL 2005 backend. We are trying to move our data to a 2012 server with SQL 2012 backend, also using Bamboo 5.9.7.

We weren't sure whether this was considered a clone or a migration, but decided to start with the migration instructions.

<https://confluence.atlassian.com/display/BAMKB/Moving+Bamboo+between+machines>

Bamboo 5.9.7 installs successfully, and I have created a Bamboo database that contains the same data (from a .bak export of the production DB) and tell the setup to use the database without overwriting the contents. This step works, and then I try to import the .zip backup of our production install. This step fails.

import corrupt.jpg

Where might I go in the log files to examine where there errors were in the import zip? Should I try to just copy the home-directory from the production server? Should the production Bamboo instance be offline while the copy is done?

Thanks,

Stephen  
[](https://community.atlassian.com/t5/Bamboo-questions/Moving-to-new-server-on-Bamboo-5-9-7/qaq-p/329415?attachment-id=6510){#link_1167b8e022b43c}  
[](/tnckb94959/attachments/tnckb94959/bamboo-questions/10384/1/import%20corrupt.jpg){#display_1167b8e022b43c_0}


Answers:
author: Marcin Gardias
body: > Bamboo 5.9.7 installs successfully, and I have created a Bamboo database that contains the same data (from a .bak export of the production DB) and tell the setup to use the database without overwriting the contents. This step works, and then I try to import the .zip backup of our production install. This step fails.

There are 2 ways to migrate Bamboo instance: clone everything by hand or use import/export feature. The problem I see is that you are trying to use both these methods at once :wink:. If you want to migrate Bamboo by cloning DB +app data *you don't need to import from .zip* . If you want to migrate by importing, you should install Bamboo on *empty* DB - export zip contains all the data from the DB anyway.

If you still have problems setting up your Bamboo I suggest contacting Atlassian Support  


author: Stephen Reece
body: Is it part of any of these steps?

moving_instr.jpg

If not, I very likely did not. How would I accomplish that step?  
[](https://community.atlassian.com/t5/Bamboo-questions/Moving-to-new-server-on-Bamboo-5-9-7/qaq-p/329415?attachment-id=6159){#link_1167b8ece3192e}  
[](/tnckb94959/attachments/tnckb94959/bamboo-questions/10386/1/moving_instr.jpg){#display_1167b8ece3192e_0}


author: Justin Novack
body: Did you copy over the application data?


Tags: bamboo-administration
Using ssh task to run deployment script instead of remote agents
Asked by klingberg:

I have a deploy script written in bash, today this is triggered using the ssh-task found among the deployment tasks using local agents.

The question is what features I won't have when using the ssh-task together with local agents rather than triggered using dedicated remote agents?

What are the benefits of using remote agents over local agents?


Answers:
author: Alexey Chystoprudov
body: Hello @Jonathan Klingberg,

In your scenario there is no benefit on using remote agents vs local. Remote agents are helpful when you need to execute a lot of task at the same time: large distributed builds, or long plan executions. If you believe you don't need to do deployment to several environment at the same time then you don't need remote agents for your setup


Tags: bamboo-administration
Commits from master not visible in plan branch build
Asked by Jakub Km?nek:

I am using Bamboo plan branch - updater feature for merging code from master to feature branches. After the build, commits that were merged from master are not visible on the tab commits/issues on the build.

Is there any solution to be able to see which issues were actually merged from master?


Answers:
author: Marcin Gardias
body: That's weird, because you should be able to see changes that are automatically merged by Bamboo (with "M" for "merged")

If you can reproduce the issue, would you kindly report it to [Atlassian Support](http://support.atlassian.com)., so that we can look into it.


Tags: branch

plan