youngmon/atlassian-qna huggingface dataset:
Is there a way to get the wallboard to show all plans for a branch rather than the trunk?
Asked by rutherfurdm-truelocal:

We have a reasonably large number of plans split into projects by type. The wallboard is great for showing the current state of the trunk but I need to see the state of all the projects/plans associated with a particular branch. Is there a simple parameter or similiar I can use on the telemetry action to achieve this or do I need to look for (or build) a plugin?


Answers:
author: rutherfurdm-truelocal
body: Unfortunately the only answer at the moment seems to be write your own. I've written a groovy script which checks all plans/branches and correlates branch names to yeild a combined result but it runs as an external service using the REST interface so it takes a while to run and isn't integated with the bamboo webapp.


author: rutherfurdm-truelocal
body: Unfortunately the only answer at the moment seems to be write your own. I've written a groovy script which checks all plans/branches and correlates branch names to yeild a combined result but it runs as an external service using the REST interface so it takes a while to run and isn't integated with the bamboo webapp.


author: rutherfurdm-truelocal
body: Unfortunately the only answer at the moment seems to be write your own. I've written a groovy script which checks all plans/branches and correlates branch names to yeild a combined result but it runs as an external service using the REST interface so it takes a while to run and isn't integated with the bamboo webapp.


author: Felix K?hler
body: Did u find a way to do this ? im further looking for the same thing.
Source repository does not show tags from Bitbucket using Mercurial
Asked by Stuart Fenton:

The documentation from Bamboo 5.2 say that you can select a branch or tag when selecting a source repository. However bitbucket (using mercurial) only shows branches.  
<https://confluence.atlassian.com/display/BAMBOO/Mercurial>  
How can I select a tag instead or a branch?  
SourceTree used to leave the branch in place but now it deletes it (no options panel any more).  
Which makes hgFlow's ability to release a version no longer connectable with Bamboo as the tag cannot be selected.


Answers:
author: PiotrA
body: Hello Stuart,

I believe you have no other option that to 'fallback' from "Bitbucket" source repository to "Mercurial" one. There you could configure your Mercurial repository to point to your bitbucket repo, specifying the desired tag.

Is that what you needed?


author: Stuart Fenton
body: closed.


author: Stuart Fenton
body: You were right.

Using mercurial instead of bitbucket did the job.

Thanks for your help.

comments: author: PiotrA
body: You're welcome.
No agent can build this job
Asked by Trond Kvarenes:

Hi.

I have a build defined where the only task is to get the source code from GIT.

I also have defined an elastic image configured with the GIT capability and GIT installed on the correct path.

When I look at the "Agent Matrix" I see the job and the elastic image configuration with a green hook.

Even so, when I start the job I get the message:

No agents are available to build this job.   
this job can be run on an elastic agent by starting a new [elastic instance](https://devoteam.atlassian.net/builds/admin/elastic/manageElasticInstances.action).

However, the elastic instance is running and the agent has the status pending.

What else to I have to configure to get it running?

Where can I find any log or information about what goes wrong during a build? The system error logs are empty.

Regards

Trond


Answers:
author: Trond Kvarenes
body: Ok.

I used the AMI from the us-east region, and it worked.

Would be nice to have these pre-configured AMIs om other regions as well. At least some more information about that these are only avaliable in the us-east region, so one does not have to spend too mutch time setting the image up.


author: Felipevsw
body: Additionally, here is a Knowledge Base article with step-by-steps instructions on how to change the region so the stock AMIs can be selected: <https://confluence.atlassian.com/display/BAMKB/Unable+to+view+or+select+default+images>


Tags: cloud
Scaling up our Bamboo instance
Asked by Jan Swaelens:

Hello,

Because our ye old bamboo instance is starting to grow outside of its pot, we are looking to scale things up a little bit.

Mainly because performance is degrading (CPU's are strugling) and we are about to enable branch builds - which would increase the need for resources even more.

Our current situation looks as follows:

* Virtualualized VM running CentOs with 8 cores and 8GB ram
* Dedicated Oracle database hooked to bamboo (on same VM)
* Bamboo 5.2 with 5 Remote agents and 5 local ones
* 30 build plans
* 6 deploy plans
* 300GB storage to fit bamboo home

The server is usually busy with compiling our Java sources and doing GWT compiles (multiple threads per compile).

Our first idea is to increase the hardware to about 16 cores and 16-32 GB ram.

Adding additional remote agents seems like a very expensive solution as we would need additional licenses as well as several additional hosts with at least 2 cores with 2-4GB ram and 300GB storage each.

Givens this setup, would you think that scaling up the hardware would result in a better performance experience? If not are there other options?

thanks!


Answers:
author: Sergey Podobry _Stellarity Software_
body: You don't need a powerfull bamboo server. You need powerfull agents.

I've done some tests for the MSVC compilers it the past and determined that a build process is mostly CPU bound. More CPU = faster builds.

comments: author: Jan Swaelens
body: Thanks, yeah that complies with what we are seeing too. We also run 5-8 local agents on the bamboo server itself, which is where the build of the load happens actually. I clarified this in my question - thanks!


Tags: bamboo-administration
Bamboo Ondemand and AWS
Asked by Salman Sayyed:

Hi,  

I'm using Bamboo Ondemand, it says in the online documentation that the Bamboo onDemand uses Amazon Web Services to create an elastic agent where it run the builds. Is this mandatory? or, does atlassian provide its own computional service to run Bamboo builds.   

I'm worried cause using Amazon web service could raise security issues?


Answers:
author: Przemek Bruski
body: Internally, Atlassian uses EC2 infrastructure for builds too. It's really secure, if there are any issues you're worried about, feel free to ask.


author: Dave
body: The only way to use elastic agents in Bamboo OnDemand is to use AWS.


Tags: aws
TestNG not picking up **/test-results/*.xml
Asked by jonathan major:

hi ,

I'm facing a problem with Bamboo on-demand, multi-project gradle and TestNG.

Tests are executing and are writing xml and html results to their respective folders i.e.

* /home/bamboo/bamboo-agent-home/xml-data/build-dir/RCC-NIT-BRQA/RaptureHttpApiIntegration/build/test-results
* file:///home/bamboo/bamboo-agent-home/xml-data/build-dir/RCC-NIT-BRQA/RaptureKernelIntegration/build/reports/tests/index.html
* /home/bamboo/bamboo-agent-home/xml-data/build-dir/RCC-NIT-RaptureKernelIntegrationresults
* file:///home/bamboo/bamboo-agent-home/xml-data/build-dir/RCC-NIT-BRQA/RaptureKernelIntegration/build/reports/tests/index.html
* /home/bamboo/bamboo-agent-home/xml-data/build-dir/RCC-NIT-BRQA/RaptureKernelIntegration/build/test-results

The testNG parser is using ant style: \*\*/test-results/\*.xml

The build log is as follows:

simple23-Nov-2013 16:19:03Finished task 'RaptureQA Gradle build'

simple23-Nov-2013 16:19:03Starting task 'collect testng results' of type 'com.atlassian.bamboo.plugins.testresultparser:task.testresultparser.testng'

simple23-Nov-2013 16:19:03Parsing test results...

**simple23-Nov-2013 16:19:04Failing task since test cases were expected but none were found.**

simple23-Nov-2013 16:19:04Finished task 'collect testng results'

Not sure why its not finding the xml test results?

additionally, I have noticed it you rerun only the parse task (by disabling other tasks) the entire contents of the build folder are deleted.

Jonathan


Answers:
author: jonathan major
body: so I got it working (i.e. Bamboo reporting testng reports), which requires a couple of changes:

1. 1. in top level build.gradle
   * use 'useDefaultListeners=true' this produces the testng-results.xml files in each dir
   * put everything in a code block under useTestNG()
2. use \*\*/testng-results.xml in Bamboo's

here is the build.gradle:  
test {  
useTestNG(){  
useDefaultListeners = true  
ignoreFailures = true  
options.suites("src/test/resources/testng.xml")  
}  
}


Tags: test
Is it possible to show commit number instead of build number on the dashboard?
Asked by Vasily Konoplyanikov:

![](../../upfiles/dashboard_1.png)

Bamboo shows build number for each plan on the dashboard. History page uses build number for indexing too. Revision number is available on Build Summary tab after open a build page. It's uncomfortable. [CruiseControl.net](http://CruiseControl.net) can do it. How it possible in Bamboo?


Answers:
author: Sergey Podobry _Stellarity Software_
body: Hi Vasknop,

Revision number doesn't make sense because you can have zero repositories or dozens of them in one build plan. Also you can have more than one build from the same sources.

comments: author: Vasily Konoplyanikov
body: If you do not have any repository then another labeling is possible. See details [](http://cruisecontrolnet.org/projects/ccnet/wiki/Labeller_Blocks)<http://cruisecontrolnet.org/projects/ccnet/wiki/Labeller_Blocks>

For me and our developers it have the sense about 7 years. All except to see only revision number ( Perforce,AccuRev, SVN) right on the start page. If the build Forced to build twice it's not a problem. The logs are separate. The lable Unknown if no any build yet.

![](../../upfiles/atlasian1.png) (Sorry, this screen from slightly modified CruiseContorl.NET. Native version shows "Fail" instead of revision number)


author: Vasily Konoplyanikov
body: ![](../../upfiles/scr22_3.png)

How [CruiseControl.net](http://CruiseControl.net)dashboard shows it


author: Sergey Podobry _Stellarity Software_
body: Labellers is an interesting idea.


author: Sultan Maiyaki
body: Hi Vasknop,

I have raised this as an improvement request at [](https://jira.atlassian.com/browse/BAM-14115)<https://jira.atlassian.com/browse/BAM-14115>which you can watch for updates


Tags: bamboo-administration
Current generation EC2 instance types unavailable in configuration
Asked by Ryan McDonnell:

The latest generation of EC2 instance types (M3 and C3) are not available as instance types when configuring an elastic image. Why is that? Will be become available in the near future?


Answers:
author: Przemek Bruski
body: They are missing, because Amazon does not provide an API that would let you list all available instance types and each new type has to be manually added.

There's a good chance that the new instances will be included in OnDemand within 5.3 release timeframe - but as you said, there's no timetable for that for now.


author: Ryan McDonnell
body: Looks to be in development, althought no timetable given yet.

<https://jira.atlassian.com/browse/BAM-14023>


Tags: cloud
Plugin Manager is Missing in Bamboo On Demand
Asked by Metrekare Teknoloji Hizmetleri Danismanlik ve Ticaret AS:

I was trying to follow the guidelines that are described here (<https://saucelabs.com/bamboo/2>), but I cant find plugin manager in my bamboo administration.

It seems plugin manager only available to download customers. Is that it ? Why is that ?

----  
Metrekare - Ev aramanin yeni yolu!  
[Metrekare Web](http://www.metrekare.com/)[Metrekare Android](https://play.google.com/store/apps/details?id=com.metrekare.android.app)[Metrekare Iphone](https://itunes.apple.com/us/app/metrekare-emlak-ilanlar/id730956184)


Answers:
author: Nic Brough -Adaptavist-
body: OnDemand has a strictly limited list of plugins that it can support for stability and complexity reasons.

See <https://confluence.atlassian.com/display/AOD/Restricted+Functions+in+Atlassian+OnDemand> for Atlassian's information on the subject


Tags: cloud
Unable to see Builds in STASH
Asked by HB:

Hi,

I am using STASH 2.9.2 and Bamboo version 5.0 build 3715. I have given full access to Application links also but still not able to see Builds status in STASH. Please suggest.

Thanks,


Answers:
author: Michael Heemskerk
body: Hi,

Have you configured a build notification in your Bamboo plan (see the [documentation](https://confluence.atlassian.com/display/BAMBOO/Integrating+Bamboo+with+Stash))?

Cheers,

Michael


author: HB
body: My Bad.. I have tried everything and forgot to do this step.

Thanks for the help, Michael.


Tags: bitbucket-server
How do I completely uninstall bamboo on linux?
Asked by Phil Hoppes:

Ok, so I'm new to Atlassin tools and I installed a trial version of Bamboo on our server but did it with all of the default settings. I later discovered it was desired that I install it connected to our local mysql database. Looking through the documentation there is lots of info on running the Setup Wizard but nada on how to make it rerun. I figured no problem, I'll just wack the install directory (/opt/bamboo/...) and the home directory. Then I'll do an untar again on the binaries, put in the necesary mysql connection jar file and restart. Nope. It acts like the install was fine but no setup wizard and now I've wiped the local user home directory so that is totally messed up. How do I get back to square one and start the process again?


Answers:
author: Phil Hoppes
body: Ok well I got it to work by deleting the install and the home directories. I think the issue I was having is there is obviously some persistance in having the browser running. I never quit the browser I was using between my previous uninstall/install/restart. I'm guessing this has to do with my issue. I killed the browser in fact killed the VNC session I was connected to the server I was installing Bamboo on. Once I did this, did the reinstall and reran everthing it worked this time.


author: Ronald Bolante
body: The best way i think is to just "reverse" the procedures in the installation guide:

[](https://confluence.atlassian.com/display/BAMBOO/Running+Bamboo+as+a+Linux+service)<https://confluence.atlassian.com/display/BAMBOO/Running+Bamboo+as+a+Linux+service>

I'm currently into saltstack as of the moment so if i were to use salt states to uninstall it it would be like the one below:

{% set installdir = salt\['pillar.get'\]('bamboo:installdir', '/opt/atlassian/bamboo') %}

bamboo-svc:

service.dead:

- name: bamboo

/etc/init.d/bamboo:

file.absent:

- require:

- service: bamboo

{{ installdir }}:

file.absent:

- require:

- file: /etc/init.d/bamboo

bamboo-user:

user.absent:

- name: bamboo

- require:

- file: {{ installdir }}

It worked fine on my end. :-)


Tags: install

uninstall
Bamboo OnDemand REST API?
Asked by Tech Vendors:

Is the Bamboo REST API available in Bamboo OnDemand?


Answers:
author: Michael Knight
body: Yes. Try the following:

```
$ curl -u mysuer:mypass "https://example.atlassian.net/builds/rest/api/latest/info"
```

More information can be found at <https://developer.atlassian.com/display/BAMBOODEV/Bamboo+REST+Resources>


author: Paul Greig
body: Hi there,

Currently the only API's supported in OnDemand are Confluence and JIRA. There is a page available with these details: <https://confluence.atlassian.com/pages/viewpage.action?pageId=253231624>

Cheers,

Paul


Tags: cloud
Will there be support for bamboo parsing ninja output?
Asked by Rafael Campana:

Hello,

We've been using Bamboo for a long time but have now switched from using msbuild to build our project to ninja: <http://martine.github.io/ninja/>

Right now whenever it fails, the email and the build summary page has:

ninja: Died with exit code 1

We have to click on the link to the log in order to see why things failed.

Is there or will there be any support for showing the errors in the Build Summary/email page like for msbuild, etc?

Thanks


Answers:
author: Rafael Campana
body: Any comments Atlassian?
Bamboo REST API
Asked by John Bowker:

Is it possible to get the Version Control Repository information for a plan in Bamboo?

I'm able to get VCS information in the /result page however I don't see any other information like url or username.


Answers:
author: John Bowker
body: I was able to find it by passing the full job key with a build number and expanding the meta data.

comments: author: Gretchen
body: Might you share your solution? I haven't seen many examples of this kind of reporting. Thanks, Gretchen


author: Jason Monsorno
body: Example: <http://bamboo/rest/api/latest/result/A3B-DEV-BUILD/17?expand=metadata>


author: Gretchen
body: broken link.


Tags: bamboo-administration
Configuration changes to disable checkboxes in permission tab in Bamboo?
Asked by varun korde:

Hi,

Is there any xml file or configuration file where i can change such that it will automatically disable the checkbox in permission tab in bamboo.

Currently for 700 build plans i'm manually unchecking in permission tab of bamboo build plan.

And also i need to know what builds plans are disabled in bamboo through some xml or configuration file instead of checking GUI, so that it will helpful for me in doing some automation.

Thank you


Answers:
author: varun korde
body: In Builk edit plan permission window, we don't know which builds are disabled and which builds are enabled,

Actually in my project there are 800 build plans, out of it, approx around 200 build plans are enabled and rest of all are disabled,

I need to hide all disabled build plans,

For that, in dashboard im going plan by plan for disabled, and changing permission,

Is there any xml file or configuration file where i can get all disabled build plans or any database query?

Thanks for your support in advance.

comments: author: PiotrA
body: Hm, I see. So, from what I understand you're trying to 'archivize' the plans. Sort of. Interesting.

I imagine you could retrieve the list of the disabled build plans by examining your "BUILD" table in your database. I believe that table stores information about your plans (like planKey, the name) including 'suspended_from_building' flag - which I presume defines whether the plan is enabled/disabled).

Also, I think you could retrieve the list of disabled plans by Bamboo REST api. For example following query should return you the list of your main plans with information whether plan is enabled - you would just need to parse the response:

<http://my.bamboo.com:8085/rest/api/latest/plan?max-results=10000>

I'm not sure how you could use that data later for removing 'view' permissions for all disabled plans (in some automated way...). Maybe you would have to manually review the above results and use "Bulk edit plan permissions"?

Is that helpful to you?


author: PiotrA
body: Hi Varun,

For the permission manipulation question: have you considered using "Bulk edit plan permissions" in the Bamboo -\> Admin -\> Plans -\> Bulk edit plan permissions? And if it isn't suitable for your needs, could you explain a little bit more what are you trying to achieve and why "Bulk edit plan permissions" is not enough?

regards


Tags: bamboo-administration
Share releases between deployment projects
Asked by Skylar Saveland:

I have 2 deployment projects which use the same source build plan.

I would like to have the same releases available to both deployment projects.

Right now, it seems releases are automatically created for deployment project A. But, for deployment project B, I am prompted to go to /bamboo/deploy/createDeploymentVersion.action to define the release version. I just want to reuse the releases that are available for deployment project A.


Answers:
author: Skylar Saveland
body: Why would you use 2 different deployment projects for this use case? Is there any reason you can't create more environments within deployment project A? If I were you, I would try to just create more environments in the deployment project you already have.


author: Jeff MacDonald
body: Did you answer your self? :P


Tags: bamboo-administration
Bamboo Tear Down in case of build failure
Asked by Rahul Rohilla:

I have a Bamboo setup that runs some Unit tests that access a set of services. I start those services before Unit Tests run( as a Job) and in case of a Unit Test failure the Job after unit tests (Job 4 below ) which Stop the services are not run.

Is there a way where irrespective of a Build result there can be a tear down called that I can use to stop all services.

Note: All this is being run using a single agent and single stage with multiple jobs in that stage.

Job1 - Start Services

Job2 - Checkout code

Job3 - Run maven clean install

Job4- Shutdown services


Answers:
author: Gretchen
body: Not sure, but you may be able to use the pre-post build plugin to do that. Checkout the plugin info in the marketplace.

It looks to me (upon very cursory review) that this might do the trick. It is a free plugin. No idea if it works or not. I don't currently use it myself.

<https://marketplace.atlassian.com/plugins/com.sysbliss.bamboo.plugins.prepost-build-command>
Configuring bamboo with aws
Asked by Jelle:

I'm configuring elastic bamboo and I'm facing some issues doing so.   
I have followed the documentation that is available but sometime I'm missing some parts.

The biggest problem is in the configuration of the AMI, I find the documentation a bit vague on this part. I have selected the amazon linux AMI ([ami-f1ec0e86](https://console.aws.amazon.com/ec2/home?region=eu-west-1#launchAmi=ami-f1ec0e86 "amzn-ami-pv-2013.09.1.x86_64-s3")) and configured this inside my elastic bamboo. Now I have an elastic image configuration, but when I try to start my instance, I get an error:

Failed to start elastic instances: Error when starting a new instance

Since this is the onDemand version of bamboo, I can't access the logs. Where do I go from here?


Answers:
author: Jelle
body: Is anyone using this succcesfully? My plan always states 'No agents are available to build this job.' but in the agent matrix I clearly see that the plan is able to build on the instance that is running.


author: Jelle
body: I still get the same error

Failed to start elastic instances: Error when starting a new instance


author: Jelle
body: I'm looking forward to monday...


author: Przemek Bruski
body: It's a bug, some new EC2 accounts can't start instances due to a changes Amazon did to account configuration.

The only known workaround is to delete the security groups "elasticbamboo" and "controlledByBamboo" on your EC2 account. Unfortunately, this has to be done everytime you start an instance. The good news is that the bug should be fixed with Monday update.


Tags: cloud
do I need Amazon EC2 for Bamboo onDemand?
Asked by Iman Khabazian:

Do I need to get Amazon EC2 inorder to use Bamboo onDemand? I want to create a script that runs a unity3d command line build everytime code is checked in, but I dont know where to start and the UI seems to be driving me towards getting an EC 2 instance which I rather not do. Any tips on running a unity3d command line build on commit to a bitbucket repo without an Amazon EC2?


Answers:
author: Przemek Bruski
body: Bamboo OnDemand does all its builds on EC2 at the moment. This may change in the future, but for now, it's the only option.

comments: author: Viktor Nagy
body: Is this still the case? I have my own dev and staging servers, I thought on setting up the Bamboo agents on my dev server. Is this an option or only EC2 is supported by ondemand?


author: Przemek Bruski
body: Yes, it's still the case. Vote here: <https://jira.atlassian.com/browse/BAM-11870>


Tags: aws