youngmon/atlassian-qna huggingface dataset:
mongodb in bamboo
Asked by Eslam Mamdouh El Husseiny:

Hi,

i'd like to know if there is any possiblity to add mongodb as a capability to bamboo server /agents

and if there is a plugin for that

Thanks in advance


Answers:
author: Przemek Bruski
body: You can use a custom capability for that.


author: amsross
body: I'd love some more information on this otherwise vague answer.
Checking out custom refs from git with bamboo
Asked by vmpn:

Is it possible to checkout refs outside of the ref/heads namespace using bamboo. Documentation seems to imply that it would not be possible, but perhaps someone was able to do so.

Thank you,

Vladimir


Answers:
author: PiotrA
body: How about specifing the ref directly in the 'branch' field (in the Git Repository configuration):

refs/custom/myRef

?

comments: author: vmpn
body: Figure out why it did not work originally. The ACL on the git server were hiding the refs from the bamboo.

Thank you very much


Tags: git
Configure Bamboo to build Xcode projects
Asked by Diana Dikovski:

I have a Bamboo server installed on my Windows7 OS,how can I do the continuos integration tests to the Xcode projects that I get from SVN repository?


Answers:
author: yche276
body: you need a mac to build the Xcode project.


author: CelsoA
body: Hi there,

I think that this plugin can help you:

<https://marketplace.atlassian.com/plugins/com.atlassian.bamboo.plugins.xcode.bamboo-xcode-plugin>

"

Provides tasks for building Cocoa and iOS applications, recording OCUnit/SenTestKit results and keychain management.

This is an early preview and Atlassian appreciates any feedback you may have to help us improve this product."

Regards.

comments: author: Amit Rajput
body: Yoshioka -

We are planning to have same set up in place for us..

who can we reach out for some support ?


Tags: xcode
Install second Bamboo Remote Agent Windows Service
Asked by John Bowker:

Is there a way to have 2 remote agents on a single pc as Window services?


Answers:
author: Adam Myatt
body: Hi John. Yes you can have multiple agents running as Windows Services on the same Windows PC. I have 5or 6 running on one just fine, but make sure you do not overload too many agents on one machine unless it has good hardware. I typically say 1 agent per CPU core, excluding 1 core for Windows itself.

In general the best practices I've found for installing multiple agents include the following from my own personal notes :

When installing the agents, ensure you use the command line switch -Dbamboo.home=DIR where DIR is the unique directory where you are installing the individual agents.

Additionally, if you are installing multiple agents as Windows Services you need to edit the names or the services after installing each service.

**The agent configuration is mostly contained in the file \<bamboo.home\>/conf/wrapper.conf**

In the wrapper.conf file the very bottom defines the names of the NT services that were installed.

If you have 1 windows agent installed, use the BAT files that are part of the agent to UNINSTALL the agent service, then edit the fields "wrapper.ntservice.name" and "wrapper.ntservice.displayname" to use numbers for example :

**Change :**

# Name of the service  
wrapper.ntservice.name=bamboo

# Display name of the service  
wrapper.ntservice.displayname=Bamboo

**To Something like this :**

# Name of the service  
wrapper.ntservice.name=bambooagent01

# Display name of the service  
wrapper.ntservice.displayname=Bamboo Agent 01

Then save and use the BAT file to reinstall as a service. Then follow the standard installation steps for installing a second windows agent and repeat the steps above to then uninstall the agent, rename the NT service parameters, and REINSTALL the second service (and 3rd and 4th, etc.)

comments: author: John Bowker
body: Wow that was quick. Thanks Adam I will try this.


Tags: remote-agent

server

service

windows
Disabling local agents in a stage
Asked by Magi:

Hi,

I have three local agents, so within a stage they are running simultaneously. Is there any possibility to configure a stage/job/executable to use only one local agent?

Greetings, Magda


Answers:
author: Adam Myatt
body: Magi,

By design, if you have multiple Bamboo Agents, then Jobs can run across any of them. The way the Stages and Jobs work are that say you have a Stage1 containg Job1, Job2, and Job3. Assuming you have 3 agents, then Job1, Job2, and Job3 can run at the same time, since by design all jobs inside a single stage can run simultaneously. Stages execute sequentially, so if you only want one agent executing at a time, move each job to a separate stage.

If you want to tie all the jobs in a single stage to a specific Agent, then for that agent define a custom capability for the agent (go to Admin \> Agents \> click the agent, click Add Capability) such as "agent-id" with a value of "01" of any other key=value definition. Then in each Job, go to the Requirements tab and you can add the "agent-id"="01" as a Requirements to EACH JOB, that way even though you may have 3 local agents available to run Job1, Job2, Job3 in parallel if they are all in STage1, they cannot run in parallel since only agent 1 has the custom capability.

comments: author: Magi
body: Thanks, it works!


author: Magi
body: Bamboo 4.1.


author: Thomas Schlegel
body: maybe you should give us a little bit more information. Which Atlassian application ? Jira ? What do you mean with agent ? Customers ? Users ? What do you mean with stage ? At least you should mention the application with a label.


Tags: agent
Run branch/plan with different build configurations
Asked by tkhduracell:

Is it possible to run Bamboo with different build configurations?  
We have a Main branch and several feature branches, and we want to build them with different configurations.  
This is mainly regarding tests, which being created on feature branches and then delivered to Main.  
*E.g.*

#### {#Main}Main {#toc-hId--653012583}

* Job1
* Job2

#### {#ftsdsdsd}ft-sdsdsd {#toc-hId-234491098}

* Job1
* Job3

#### {#ftwsws}ft-wsws {#toc-hId-1121994779}

* Job1

*Actual Usage:*

#### {#main}Main {#toc-hId-2009498460}

* Build Job
* Test1 Job

#### {#ft120}ft-120 {#toc-hId--1397965155}

* Build Job
* Test1 Job
* Test2 Job

#### {#ft121}ft-121 {#toc-hId--510461474}

* Build Job
* Test3 Job


Answers:
author: Przemek Bruski
body: No, it's not possible. Branches inherit build configuration from master, there are very few things that can be modified or overridden. You cannot create new Jobs or Tasks in Branches.

comments: author: tkhduracell
body: Do you have any tips how we can make this work?  

Or do we have to implement this manually using branch-detection and plan-cloning.  


author: tkhduracell
body: So I have to implement this myself using branch detection and plan cloning, this will be fun...


Tags: branch
Bamboo starter license
Asked by Jaroslaw Szatylowicz:

Hello,

My question regards a Bamboo starter license and its limit details.

What the limit exactly means, how it works?

* Do I have 10 jobs per Bamboo instance, so I can define either 10 plans with a single job or 1 plan with 10 jobs?
* How do local agents conform with the limit?

Thanks for the answer ;)

Jarek


Answers:
author: James Dumay
body: Hi Jaroslaw,

You can only have 10 Jobs for the server total. That means if you have 1 Plan with 10 Jobs, it won't be possible to create another Job for your new plan unless you delete an existing job or upgrade the license.

You can have as many Local Agents as you like - there is no limit.

Thanks

James
ETA on Github integration
Asked by Oleg Shpynov:

Hello,

Recently we've read that Atlassian Ondemand supports Github and Bitbucket repositories, so we've moved sources to the GitHub, and were really dissapointed, that it is all about support for now.

I searched your forums and here are several related issues:

[https://answers.atlassian.com/questions/36892/can-i-use-a-github-repo-in-the-on-demand-version-of-fisheye](/questions/36892/can-i-use-a-github-repo-in-the-on-demand-version-of-fisheye)

[https://answers.atlassian.com/questions/25033/can-i-work-with-an-on-demand-instance-of-fisheye-crucible-only-using-github-or-bitbucket-or-using-self-hosted-git-repository-too](/questions/25033/can-i-work-with-an-on-demand-instance-of-fisheye-crucible-only-using-github-or-bitbucket-or-using-self-hosted-git-repository-too)

<https://studio.atlassian.com/browse/JST-2090>

Do you have any ETA on when itegration of Crucible and Github will be implemented?

Here is another question on Bamboo and Github:

[https://answers.atlassian.com/questions/45460/bamboo-ondemand-jira-ondemand-bitbucket-integration](/questions/45460/bamboo-ondemand-jira-ondemand-bitbucket-integration)

Please, please make DVCS support a first class citizen!

Regards,

Oleg


Answers:
author: Richard Banks
body: According to the most recent feedback from Atlassian in issue [#JST-2090](https://studio.atlassian.com/browse/JST-2090?focusedCommentId=60977&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-60977):
> We are going to focus FishEye/Crucible development to be optimized for an installed solution going forward, to manage multiple repos and scale appropriately.

You can read more in the full comment but it appears that FishEye/Crucible will be replaced by Bitbucket at some point in the future for OnDemand users.

Also since both Bitbucket and GitHub have code review in the form of Pull Requests and built in source browsers, it's unlikely we will see any integration in the near future.


author: Ellen Feaheny [AppFusions]
body: Happy to help you with moving to direct managed hosting - just as turnkey and 24x7 monitored and supported as OnDemand, but with the install versions - and so you will get some of the needed additional extension flexibility that you are seeking..

Its really a pretty stellar option, and I do not think you would be disappointed - to the contrary. email me.

Best,

Ellen

ellen at appfusions dot com


Tags: cloud

integration
Error occurred during initialization of VM ---- Could not reserve enough space for object heap
Asked by bsarkar:

today i got a error while trying to start my bamboo

```
Error occurred during initialization of VMCould not reserve enough space for object heap
```

why this is happening??

please help


Answers:
author: Jobin Kuruvilla [Adaptavist]
body: Seems you are using 32 bit JDK and have used more than 1280MB as max heap. Try using 64bit JDK or reduce the max heap.

comments: author: bsarkar
body: i am using 64bit JDK.

Actually in that system already 2 tomcat is running.

if i reduce the max heap of bamboo, how much do i need to reduce.


author: Jeff Curry
body: `Could not reserve enough space ``for` `object heap`  
\^ is saying there is not enough system memory available to start Bamboo with your maximum heap setting
Bamboo sometimes does not execute scheduled plan
Asked by Achim Kuwertz:

When configuring a Bamboo plan to an automatic, cron based scheduling build strategy (set to execute the plan at a specific time each weekday, no triggering conditions, build whenever triggered), Bamboo occasionally neither executes the plan nor states any error (in the GUI, in the log files).

----------

Configuration details:

- Build Strategy: Scheduled builds, Cron Based Scheduling

- Schedule: Each Monday, Tuesday, Wednesday, Thursday and Friday at 12:30 am


Answers:
author: Chris Bellar
body: Anyone figure this out? I'm troubleshooting this same problem now. If I find a solution, I'll post it here.


author: Christian Kunz
body: Hi, we encounter the same issue. Scheduled tests are not executed sometimes. No errors in logs.  

The curious thing is, that at one day everything is working fine, then the next day nothing happens...

Any ideas?


author: Brent Villalobos
body: Could it be that the plan is already running at that time and you don't have concurrent building enabled?
Bamboo: Create own build strategy
Asked by wfrank:

Is it possible to create an own BuildStrategy for Bamboo 4.1?

We need additional to a polling to SVN a polling to an external component repository.


Answers:
author: wfrank
body: It is and ivy based component repository (e.g. nexus). I only need a way to trigger a build, if a component my source depends on was released to this repository.

I currently think about implementing a Repository to using PollingStrategy for this. I do not need to download any sources from this repository.

comments: author: PiotrA
body: Hm... are you able to call arbitrary script (hook) when a new component was released to your repository? I was wondering if you could go with "repository triggers the build" build strategy in Bamboo and hook into your nexus a script that would 'prod' the Bamboo whenever new component is uploaded. But I might talk nonsenses here...


author: wfrank
body: I think it could be a solution to do this. But the problem is, that I don't know exactly which new/changes component needs to trigger which plan in Bamboo. And even one new/changes component should trigger three or four plans in bamboo.

I have now a solution. I have implemented a new repository. I only use this repository to collect the changes. Works fine.


author: PiotrA
body: What is that 'external component repository' ?


Tags: build
"Failed to read required data from JIRA Response." while using the new & fancy "Create Issue for Build" Feature
Asked by Maximilian Friedmann:

Hi there,

we are using Bamboo 4.1 together with Jira 4.1.1 (don't ask why pls).

The Application Link seems to work via Basic Auth, unfortunately not the "Create Issue for Build" functionality. Neither Jira nor the Bamboo log are providing any information, why it does not work.

In the bamboo server log I see an entry like "http://localhost:8085/ajax/editCreateNewJiraIssue.action?returnUrl=%2Fchain%2Fresult%2FviewChainResult.action%3FplanKey%3DBLAAABLAAAA- LAAABLA%26buildNumber%3D87\&planResultKey= BLAAABLAAAA - LAAABLA-87\&bamboo.successReturnMode=json\&decorat" which is called in my local browser. But the address is obviously not accessible from my client... Could that be the reason?

Our bamboo runs on localhost:8085 of course, but there's an apache in front of that proxy redirects all traffic to localhost:8085...


Answers:
author: Przemek Bruski
body: Sorry, I got sidetracked with the Base URL stuff and did not answer your question. Bamboo uses JIRA's REST API to create issues. Although your JIRA version does have a basic REST API, it's missing issue creation functionality. In other words, you need at least JIRA 5 for this feature to work.

comments: author: Maximilian Friedmann
body: > you need at least JIRA 5 for this feature to work.

Jap, thats what I thought too :(


author: Przemek Bruski
body: What's the Base URL in Bamboo?

comments: author: Maximilian Friedmann
body: Which, for example, is also not used in the "Application Links" Section. There you always have to right-click, copy the iframe URL which contains localhost:8085 to your browser, replace it with the base url and hit go :)


author: Maximilian Friedmann
body: The external one...
java.net.UnknownHostException: api while adding a new DVCS repository
Asked by Ganesh Gembali:

We have a github repository hosted @ <https://github.scm.corp.company.com/reposiotory>.git

When I try to add this I am getting following error :

**Error!**

The repository url \[ <https://github.scm.corp.company.com/reposiotory>.git \] is incorrect or the repository is not responding.

In the logs:

/rest/bitbucket/1.0/urlinfo \[plugins.bitbucket.spi.DefaultRequestHelper\] java.net.UnknownHostException: api.github.scm.corp.company.com

/rest/bitbucket/1.0/urlinfo \[plugins.bitbucket.spi.DefaultRequestHelper\] Unable to retrieve repository info for: <https://github.scm.corp.company.com/reposiotory>.git

Note that I have replaced original urls


Answers:
author: Dennis Kromhout van der Meer
body: This is a low level error which says that it simply cannot find the host. Are you able to succesfully reach this host without JIRA? Are your network settings correct?

comments: author: Ganesh Gembali
body: Yes ... I am able to connect jira to git via other git plugins (Jira Git Plugin).


Tags: bitbucket
How to Change Bamboo default port(8085) ??
Asked by bsarkar:

I have successfully installed bamboo. and its working great.

But now I need to change the bamboo default port(8085). I dont know how to do that.

Please anyone help me.


Answers:
author: Ganesh Hegde
body: This is out of date as of Bamboo 5.9.4.

You should edit the following :

In your bamboo home directory: **$BAMBOO_HOME/xml-data/configuration/administration.xml**:

change

```
&lt;myBaseUrl&gt;http://&lt;your URL&gt;:&lt;yourfancyport&gt;&lt;/myBaseUrl&gt;
```

Also do note that you should edit server.xml to reflect the same:

**$BAMBOO_INSTALL/conf/server.xml**

```
&lt;Connector port="&lt;yourport&gt;"                   maxThreads="150"                   minSpareThreads="25"                   connectionTimeout="20000"                   enableLookups="false"                   maxHttpHeaderSize="8192"                   protocol="HTTP/1.1"                   useBodyEncodingForURI="true"                   redirectPort="&lt;yourport&gt;"                   acceptCount="100"                   disableUploadTimeout="true"/&gt;
```

comments: author: Quentin Luc
body: Thanks, that's what I was looking for :)


author: Jobin Kuruvilla [Adaptavist]
body: You can change it in the wrapper.conf file under Bamboo_Install_Dire/conf folder. See the following property.

```
# The Bamboo port number - this is the port number the Bamboo web server listens on.#wrapper.app.parameter.2=8085
```

comments: author: bsarkar
body: thanks .... :)


author: adams kpewa
body: I need to pick another port number for my new bamboo server i created ? what is the best alternative server port and connector port

Thank you


Tags: cloud
Repository size issu
Asked by Andrius:

I am getting sizer problems on repository

This repository's size is over 2 GB. If it reaches 2 GB, we'll restrict the repository to read-only access.

I can push, any changes and try to resize the rep.

local size shows:

git count-objects -v  
count: 0  
size: 0  
in-pack: 855  
packs: 1  
size-pack: 1969237  
prune-packable: 0  
garbage: 0  
size-garbage: 0  


Answers:
author: Theodora Boudale
body: Hi [@Andrius](/t5/user/viewprofilepage/user-id/2452872),

Is this repository owned by the Bitbucket Cloud account with the same email as your community account?

Checking the repos of this account in our system, I don't see any repo with a size over 2 GB. However, there are some repos with a size over 1 GB. would you like me to run a git gc on these repos? This may help reduce their size.

Kind regards,  
Theodora

comments: author: Andrius Dum?ius
body: hi, thank you for response.

This is not my repository, I am added as administrator and developer.

Repository name I am talking about is : \<repo-name-removed\>

And email i wrote is should be correct as I see.


author: Theodora Boudale
body: Hi [@Andrius Dum?ius](/t5/user/viewprofilepage/user-id/2304594),

Thank you for your reply. Your first question was created with a different account and I couldn't find this repo associated with it. However, I can see now the repo associated with the account you replied from.

I ran a git gc on the repo, its size is now 2.5 GB. If you have rewritten history on this repo and your local clone has a size smaller than that, and you want to push these changes, then another git gc will be needed after you push your changes (so that the change in size is reflected).

Please feel free to let me know after you push (in case you push from a clone with reduced repo size) and I can run another git gc.

Kind regards,  
Theodora


author: Andrius Dum?ius
body: Thank you very much for the help.

I will let you know if I need to run git gc one more time.

Thank you


author: Theodora Boudale
body: You are very welcome, I'm glad to have helped!


Tags: bitbucket-cloud

cloud
Code suggestion on pull request not available
Asked by Boris Detry:

Referring to this article we are supposed to be able to create a code suggestion directly on the pull request for small changes.

<https://confluence.atlassian.com/bitbucketserver/commenting-on-a-pull-request-1027119882.html>

![Capture.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/165371i9585DAA951E8BDF3/image-size/large?v=v2&px=999 "Capture.PNG")

**But I don't see the "code suggestion icon" on the bitbucket web interface.**This is what I see in the comment box :

![Capture.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/165372i90F6F523D3B35829/image-size/large?v=v2&px=999 "Capture.PNG")


Answers:
author: Alex Karcher
body: How has this feature been implemented on bitbucket server for seemingly 3+ years and it's still not available on the cloud version?

I've just onboarded to bitbucket, but I won't be moving forward without this seemingly simple functionality. Github, Azure Dev Ops, they have supported this for years.


author: Ulrich Kuhnhardt _IzymesCo_
body: You may be referring to a Bitbucket server feature, however the tags on this post suggest you're on BBCloud. Can you confirm?

comments: author: Boris Detry
body: Yes, it's Bitbucket cloud. We access our repos through bitbucket.org

The feature is only available with Bitbucket server?


author: seanaty
body: Correct. This feature is only available on Bitbucket Server.


author: Philippe Carpentier-Savard
body: Pitiful. GitHub has had this feature on cloud for over half a decade now...


author: Ryan Mulready
body: It's beyond me why cloud is lagging behind server features.


author: mariusb
body: This feature would be very useful indeed.  
Any update [@seanaty](/t5/user/viewprofilepage/user-id/1301071) ?


Tags: bitbucket-cloud

cloud

pull-request
Not receiving any bitbucket invitation mail
Asked by Viktoryia.Tsikhanava:

Hi [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) ! It seems our team experience exactly the same issue with Bitbucket access. Could you please remove following emails from the suppression list:

\<email_removed_for_privacy\>

Thanks in advance !

Victoria


Answers:
author: Theodora Boudale
body: Hi [@Viktoryia.Tsikhanava](/t5/user/viewprofilepage/user-id/4600394),

Of course, I can help. All the emails you listed were in a suppression list, I went ahead and removed them from that list. If the emails are operational, the users should be able to receive Bitbucket/Atlassian emails now.

Could you please send a new invitation to these users? A new invitation needs to be sent, as the previous ones were dropped.

Just a heads up, I removed the emails from your question for privacy reasons, and I also moved your message to a separate question.

If you ever face the same issue, I would advise posting a new question. I'm more than happy to help even if you post a reply to another user's question. However, if I am out of office, such a message won't be visible to my colleagues. If there is a new question for the issue, then my colleagues will be able to see it and assist if I am out of office.

Please feel free to let me know if things are ok now and if you need anything further!

Kind regards,  
Theodora

comments: author: Viktoryia.Tsikhanava
body: Hi [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) !

Thanks for your help, the issue is resolved !

Will raise a new question in case of any issues.

Thanks !