youngmon/atlassian-qna huggingface dataset:
Bamboo builds are not triggered through bitbucket server
Asked by Ralph Gerbig:

Hello,

I have an application link between Bitbucket server and Bamboo Server. This works nice. Bitbucket shows information from Bamboo and vice versa. Bamboo also detects new branches in Bitbucket server. The problem, however, is that pushes to Bitbucket are not triggering bamboo builds. I looked in the logs but everything looks fine. The server URLs are:

<https://melanee2.informatik.uni-mannheim.de/stash/><https://melanee2.informatik.uni-mannheim.de/bamboo>[](https://melanee2.informatik.uni-mannheim.de/stash/)

Manually running the builds is not problem.

Thanks in advance!!

Ralph


Answers:
author: Steffen Opel _Utoolity_
body: You *might* be affected by a comparatively recent bug related to the Bamboo/Bitbucket integration, depending on whether your configuration matches the one outlined there:

* <https://jira.atlassian.com/browse/BSERV-8809>

Either way, as already recommended by Rich, [contacting Atlassian support](https://support.atlassian.com/) is likely going to be the best approach to identify and ideally address the root cause at hand.

Potential Workarounds {#toc-hId--1326814788}
--------------------------------------------

In case your are indeed running the configuration outlined in the aforementioned issue, you could apply one of the listed workarounds:
> 1. Remove HTTP-\>HTTPS redirection in Bamboo and then restart Bamboo and Bitbucket Server  
>    OR
> 2. Add an additional Trigger "Repository polling" to all Plan Configuration

comments: author: Ralph Gerbig
body: Hi,

you are right. I have two connectors. Actually I did this:

<https://confluence.atlassian.com/kb/how-to-bypass-a-reverse-proxy-or-ssl-in-application-links-719095724.html>

Thanks!

Ralph


author: Rich Duncan
body: Just to be sure, the plans have 'Bitbucket Server repository triggered' triggers on them?

comments: author: Ralph Gerbig
body: Hi,

yes. I attached a screenshot.

Ralph

triggers.png  
[](https://community.atlassian.com/t5/Bamboo-questions/Bamboo-builds-are-not-triggered-through-bitbucket-server/qaq-p/82728?attachment-id=2558){#link_1166c7a92f36e2}  
[](/tnckb94959/attachments/tnckb94959/bamboo-questions/2598/1/triggers.png){#display_1166c7a92f36e2_0}


author: Rich Duncan
body: So - I would check the bamboo and Bitbucket logs. Unless there is a glaring/obvious thing you can fix, I would take this up with the nice folks at <https://support.atlassian.com>

-Rich


Tags: bamboo-administration
Build Failed
Asked by jaanvivek:

I am running a Bamboo plan but it failed while "Creating Ear".

**Error-**

some path/build.xml:80: following error occurred while executing this line:

some path/build_non_region.xml:247: Deployment descriptor:somepath/application.xml does not exist.

As per log it shows that it failed at Line:80 in build.xml. I checked at that line number and found entry -publishEAR="artifactory".

Againg it shows that it failed at line:247 in build_non_region.xml. I checked in that file on specified line number and found that -

appxml="${build_dir}/@{environment}/entapp/META-INF/application.xml"\>

I also checked in same path in SVN and found that application.xml exist.

Please suggest nay solution for this.


Answers:
author: Krystian Brazulewicz
body: While resolving problems like this I use the following steps:

* try to reproduce the functionality of the (maven/ant) task with the script task
* try to reproduce the problem using command line (and the same user/server combination)
* make sure the environment that Bamboo uses (it is printed in the build log) is the same as the one available for the commandline

If you're still stuck then please contact our [Support](https://support.atlassian.com/servicedesk/customer/bsp)

comments: author: jaanvivek
body: Thanks Krystian.I will follow above steps. We do not have environment specific Bamboo server. We have Bamboo running on a single server.
Can I please have some more detail on the certificate?
Asked by Nicholas Hynes:

*This question is in reference to Atlassian Documentation: [Linking JIRA Cloud with self-hosted Bamboo](https://confluence.atlassian.com/pages/viewpage.action?pageId=389284242)*

The article says I need a certificate - is this a certificate for my Bamboo server? if so, where do I deploy the certificate, and can I offload the SSL on a gateway device?


Answers:
author: Krystian Brazulewicz
body: I think you should start with this documentation: <https://confluence.atlassian.com/display/BAMBOO/Securing+Bamboo+with+Tomcat+using+SSL>


Tags: application-link

bamboo-administration
Bamboo build successful for code with compilation errors
Asked by Gangani Geethika Wijewardena:

Hi,

I'm evaluating Bamboo for my company. I am trying to build an android project (IDE is Android Studio 2.1.3) with a gradle wrapper. I have introduced a compilation error in the code (e.g. missing ";" after a statement). The log file states that the build failed due to this error. However, Bamboo updates that the build was successful in the dashboard, job summary and even in JIRA.

The build.gradle of my application is as follows:

buildscript {

```
    repositories {        jcenter()    }    dependencies {        classpath 'com.android.tools.build:gradle:2.1.3'        // NOTE: Do not place your application dependencies here; they belong        // in the individual module build.gradle files    }}allprojects {    repositories {        jcenter()    }}task clean(type: Delete) {    delete rootProject.buildDir}gradle.buildFinished {	buildResult ->	if(buildResult.failure) {		return 1;	}}
```

I found <https://ruijarimba.wordpress.com/2016/02/07/powershell-scripts-running-on-bamboo-dont-return-the-correct-exit-code/> which suggests to add the following code in the powershell.  
`trap`  
`{`  
` ``write-output $_`  
` ``exit 1`  
`}`  
But still did not work for me.

Can someone please help me on this issue?


Answers:
author: Gangani Geethika Wijewardena
body: I figured out that in bamboo when I change the interpreter of the inline script from Windows Powershell to /bin/sh or cmd.exe, bamboo build failed and the error was detected in the logs.

image2016-9-15 11:56:43.png  
[](https://community.atlassian.com/t5/Bamboo-questions/Bamboo-build-successful-for-code-with-compilation-errors/qaq-p/178499?attachment-id=1291){#link_117083e07c0468}  
[](/tnckb94959/attachments/tnckb94959/bamboo-questions/5762/1/image2016-9-15%2011%3A56%3A43.png){#display_117083e07c0468_0}


author: Krystian Brazulewicz
body: Please contact [Bamboo Support](https://support.atlassian.com/servicedesk/customer/portal/10), don't forget to provide the screenshots of your task configuration.


Tags: bamboo-administration

moderators
Bamboo Backup Location
Asked by Buck Dowdell:

How do you change the backup location for Bamboo? When I look at the bamboo.cfg.xml, it shows a network path, but it does not back up to the network path.


Answers:
author: Krystian Brazulewicz
body: Can you please paste the part of your `$BAMBOO_HOME/bamboo.cfg.xml`? Also I think that Bamboo server logs should reveal the location of export file after export was completed.

If you want to change the location of export you need to:

* stop Bamboo
* edit $BAMBOO_HOME/bamboo.cfg.xml
* start Bamboo

If Bamboo doesn't pick up that change then please contact our [Support](https://support.atlassian.com/servicedesk/customer/bsp).

comments: author: David FALLAS
body: So far, this suggestion, and others, have not worked for me.

I have recently completed a Bamboo (v5.12.3.1) migration from Windows Server to Ubuntu 16. When I review the Scheduled backups settings I see the Backups path is set to '`D:\backups\Bamboo`' (which is of course the old Windows setting and is now obsolete for Ubuntu).

This field cannot however, be edited directly (there was a security warning regarding this some time ago). There are instructions for setting a switch - `bamboo.paths.set.allowed=true` - to allow editing of this field (<https://confluence.atlassian.com/bamboo/specifying-a-backup-schedule-289277252.html>). These instructions link to another page <https://confluence.atlassian.com/bamboo/configuring-system-properties-289277236.html> which in turn links to yet another page <https://confluence.atlassian.com/bamboo/configuring-bamboo-on-start-up-289277345.html>.

I have modified the $BAMBOO_INSTALL/current/bin/setenv.sh file as per the instructions on the last two links - `JVM_SUPPORT_RECOMMENDED_ARGS="bamboo.paths.set.allowed=true"` - and have restarted the service. But, I am still unable to edit the Backups path field.

I am running Bamboo as a service on Ubuntu with a file in init.d to start/stop it.

I have checked `$BAMBOO_HOME/bamboo.fcg.xml` and can confirm that it contains the line:

`<property name="daily.backup.dir">${bambooHome}/backups</property>`

What else do I need to do to change this setting from `D:\backups\Bamboo` to `/var/atlassian/application-data/bamboo/backups`?
Can you get the status of an autosys job running on unix box
Asked by Vivek Mishra:

I am using ssh to force start a job in unix box. Is there a way that I can poll the status of the job, so that I can mark my plan as success/fail based on that


Answers:
author: Krystian Brazulewicz
body: If you are able to write a shell script that will return SUCCESS/ERROR (aka 0/non-zero) result code then you're able to make Bamboo pass/fail the build.


Tags: status
How to set up a test server for bamboo?
Asked by Rahul Aich [Nagra]:

Hi All

I want to set up a test server for Bamboo.

My concern is that if i clone the production database and point it to the test instance, it will lead to triggering of scheduled jobs on test instance and cause lot of confusion.

How is the best way to set up test instance?

Rahul


Answers:
author: Krystian Brazulewicz
body: Please make sure you clone both database and home directory. What are you planning to test?

There are few options for you to limit Bamboo server building activity:

* disable all agents on a cloned instance (SQL: `UPDATE QUEUE SET ENABLED = FALSE`)
* disable all plans on a cloned instance (SQL: `UPDATE BUILD SET suspended_from_building = TRUE`)

This however will not prevent your Bamboo instance to contact source repositories (change detection). Is that needed as well?


Tags: bamboo-administration
Can I get the licence details for XebiaLabs XL Deploy Plugin? Our Legal department needs to review it.
Asked by shari_anderson:


Answers:
author: Nic Brough -Adaptavist-
body: Have you tried the docs for the add-on?

From memory of looking at it a few weeks ago, it's under the standard Apache licence, but the docs will confirm that, and link to the details.


author: Krystian Brazulewicz
body: Please contact the [vendor](https://marketplace.atlassian.com/vendors/677221) for details.
How do you delete a job's requirement, if there is no delete option next to the capability?
Asked by cjbooms:

*This question is in reference to Atlassian Documentation: [Configuring a job's requirements](https://confluence.atlassian.com/pages/viewpage.action?pageId=289277064)*

How do you delete a job's requirement, if there is no delete option next to the capability?


Answers:
author: Alexey Chystoprudov
body: If you don't have Delete option for job's requirement, it means it was added by some task. Name of the task is in column on the left from actions column.


Tags: documentation
Bamboo rest API get result variables or result logs
Asked by Periklis:

Hi  
Is there way to take build result variables(no metadata) or result logs with bamboo rest API?  
Thank you


Answers:
author: Steffen Opel _Utoolity_
body: This functionality is not yet available - please watch and vote for the following issue to guide Atlassian's roadmap in this regard:

* <https://jira.atlassian.com/browse/BAM-13511>
Multiple deployments, Multiple projects in a Visual Studio solution
Asked by Sai K:

*This question is in reference to Atlassian Documentation: [Polling the repository for changes](https://confluence.atlassian.com/pages/viewpage.action?pageId=289276903)*

Hi,

We use Bitbucket and Bamboo. We have a Visual Studio solution that has about 20 projects in it. Out of 20 projects there are about 10 projects that need to be built and deployed either as windows services or web apps in IIS. We have individual solutions for these 10 components. There are shared components across these 10 components. For example, there is a contracts project which is shared by Order and Inventory service. So, any change to contracts project should trigger build of Order and Inventory but not others. We want to go with one repository because of branching requirements of git flow. It will be too much of effort to maintain 10 repositories for each of deployable component. The question is how to configure build triggers?

Thanks,

Sai


Answers:
author: Mark de Bont
body: I think you'll find the answer on this page: <https://confluence.atlassian.com/bamboo/triggering-builds-289276897.html> (list of Bamboo triggers)


Tags: poll

repository
Can I have hundreds of bamboo plans in one instance?
Asked by Gustav Karlsson:

We're in a situation where we have hundreds (600+) of maven projects that we maintain. Will bamboo handle this huge amount of plans Or will things get out of hand? These projects all have common dependencies so some VCS changes will trigger a LOT of downstream jobs. Is there a recommended maximum or can anyone verify that they've successfully tried this?


Answers:
author: Steffen Opel _Utoolity_
body: This is no problem in principle, though *the minimum CPU and memory requirements depend on the size and complexity of your plans* , see [Bamboo Best Practice - System Requirements](https://confluence.atlassian.com/bamboo/bamboo-best-practice-system-requirements-388401170.html) for some [Hardware considerations](https://confluence.atlassian.com/bamboo/bamboo-best-practice-system-requirements-388401170.html#BambooBestPractice-SystemRequirements-Hardwareconsiderations):
> * Will your builds have functional tests as part of the plans?
> * Are your plans executed simultaneously? If so, how many plans will be running at any given time?
> * What are the requirements for your running builds, for example do they need large amounts of memory/disk/swap space?
> * How many users will be using Bamboo at any given time? Like any web application, the system resource needed is proportional to the load experienced by the server.
> * How many local agents do you plan on running?

According to the provided table, your requirements would probably ask for the outlined *16 core, 8 GB RAM, all remote agents* setup, which can accommodate:
> * 1000s of plans
> * Frequent plan branches
> * High concurrency
> * High server use


author: crochaju
body: According with the documentation you need a good configuration to do that.

Have a look in here

<https://confluence.atlassian.com/jirasoftwarecloud/blog/2016/02/make-way-for-backlogs-in-kanban-boards>

Cheers

comments: author: Gustav Karlsson
body: That article is about Jira. How does that help me with Bamboo?


Tags: bamboo-administration
Error while trying to initialise Bamboo Container. Failed to start Bamboo after migration from one instance to another instance
Asked by Sridher Rapaka:

I was trying to migrate plans from one bamboo instance to another, i have imported the backup and after import and restart of bamboo i am facing the boot issue, bamboo failed to start. I see build plans errors in the logs/catalina.out while importing. Can someone from the community respond, i need to understand what is causing this issue, Thanks in advance


Answers:
author: Alexey Chystoprudov
body: Hello @Sai Rapaka,

It's better to contact support team in your case. Create an issue at support.atlassian.com


Tags: bamboo-administration
bamboo plan variables with "bamboo" to start, as in "bambooFooBar", confuses Bamboo
Asked by Allan Poulsen:

Normally, if you configure a plan variable with a name like "myVariable", it will be accessed as "${bamboo_myVariable}" in a file script.

However, if the plan variable is given a name that already starts with keyword "bamboo", so for example "bambooFooBar", it should be accessible as "${bamboo_bambooFooBar}" in a file script, but instead Bamboo gets confused and doesn't add any prefix in the variable substitution phase, so it comes out as "${bambooFooBar}". This in clear in the logs in the variable substituion were it shows:

bamboo_myVariable=x

bambooFooBar=y

bamboo_yetAnotherVar=z

However, for inline scripts (not in an external file), where prefix "bamboo." rather than "bamboo_" is used, the normal substitution of "bambooFooBar" to ${bamboo.bambooFooBar} seems to work fine.

Is there a bug ticket already for this issue? I wasn't able to find one in a quick search.


Answers:
author: Allan Poulsen
body: No, it doesn't look like the same problem to me. My problem is specifically about when keyword "bamboo" is used as the start of a plan variable name.


author: Lorenzo Bueno
body: Hello Allan,

I found this bug [BAM-13017](https://jira.atlassian.com/browse/BAM-13017?jql=text%20~%20%22text~%20%5C%22bamboo%20variables%5C%22%22) that in my opinion is the closest one to your issue description.

Can you give it a check?


Tags: bamboo-administration
Can two different bamboo servers have a common bamboo agent?
Asked by Juan Peraza:

I have a scenario, where my IT department has a Bamboo Server in two separate sites. Let's say, site A and site B. Site A's Bamboo Server has a remote Bamboo Agent, that we'll refer to as Mac. I'd like the Bamboo Server at Site B to also have Mac as a remote Bamboo Agent. Can two different Bamboo Servers "have" a common remote agent? Assume there is required connectivity. I just wonder if Bamboo supports this.


Answers:
author: Dana Cleveland
body: Assuming connectivity of course..

I do this actually very often. I have a Test and a Production Bamboo Server that i will have multiple agents on the same server that point to either my test or production bamboo at the same time.. I kick off jobs on either Bamboo server. As far as they are considered they do not see it other. They just know they have an agent running on that server.

So to be clear.. you basically run 2 independent instances of the agent software on the same server.. Agent Instance A listens to Bamboo server A, and Agent Instance B listens to Bamboo Server B. The Bamboo servers themselves don't 'share' the one instance of the agent.

comments: author: Juan Peraza
body: Sounds logical, I'll try that. Thx.


author: Krystian Brazulewicz
body: So answering the question: 2 Bamboo instances cannot use single agent instance, but you're free to run multiple agent instances on the same host (but on different ports and separate bamboo-agent-home directories).


author: Alexey Chystoprudov
body: No, Bamboo doesn't support agent sharing between several servers


Tags: bamboo-administration
How to group multiple deployment projects?
Asked by nimnku:

*This question is in reference to Atlassian Documentation: [Creating and configuring a deployment project](https://confluence.atlassian.com/pages/viewpage.action?pageId=338363448)*

Hi Team,

I am looking for a solution to do automate my deployment into different environments through Bamboo.

Scenario:

In order to accomplish my total deployment, I have three types deployment to do.

1.Properties deployment --\> APP server

2.API deployment --\> Websphere

3.UI deployment --\> Webserver

In the same order as above.

I have 5 build plans and out that 4 build plans has both properties file deployment project and API deployment project.

I have established the dependancies to trigger the build one after the other. but I am not finding any way to start the API deployment project which is tagged with same build plan.

For ex: Build plan A --\> deployment project X and deployment project Y

I have to start the deployment Y after the deployment project X.

do we have any solution for it in Bamboo? I couldn't see any trigger option for this.

Please help me to find a solution for this issue.


Answers:
author: Jobin Kuruvilla [Adaptavist]
body: You can use "After successful deployment" trigger, if you want to deploy to one environment after another. Both environments has to be in the same deployment project though! Would that work?


Tags: deployment

project
Bamboo Artifacts directory
Asked by Young__Hahn:

Question about the Bamboo Artifacts directory.

It looks like bamboo doesnt automatically deletes the artifact plan file(?) automatically even after we delete/remove the plan..

i still see something like

drwxr-xr-x. 3 root root 19 Aug 12 17:25 plan-786443

when i deleted this plan the same day..

and this files are few GBs..

<br />

is there a way to delete this plan automatically? so that it doesn't fill up the storage size?

Not sure if it is good to keep or delete..

<br />

<br />


Answers:
author: Krystian Brazulewicz
body: This directory should be removed when the plan was removed. Please note that plan removal is done in the background so it might take a while before all data related to the Plan is deleted (it depends mainly on number of builds of a given plan).

If such problem will occur again please contact our [Support](https://support.atlassian.com/servicedesk/customer/portal/10)


Tags: artefact

bamboo-administration

directory
Bamboo rest api browser not working
Asked by Mark de Bont:

I am running Bamboo 5.12.x with Atlassian REST API browser 3.2.1 from the marketplace.

When entering items in the search box (like 'queue' etc.) I don't get any results making the Add-on useless.

Is this the correct behaviour?


Answers:
author: Alexey Chystoprudov
body: <https://jira.atlassian.com/browse/BAM-17860>


Tags: addon-com.atlassian.labs.rest-api-browser

bamboo-administration
bamboo is unable to parse junit xml file
Asked by Subu baskaran:

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

Bamboo version 5.12.3.1 build 51215 - 04 Jul 16.

My test automation tool generates the junit xml output in the working directory of the bamboo job. I used the touch command on the output file as a task and the task # 3 to parse the output.

Task #1 - run the automated tests

Task #2 - touch command for the output files(one .xml file) - the actual touch command i used -

touch -am chrome52.xml

Task #3 - junit parser with the pattern - \***/ST-ST-STC/**.xml. ST-ST-STC is within

\<bamboo home\>/xml-data/build-dir/

Any pointer is much appreciated.


Answers:
author: Krystian Brazulewicz
body: Pattern that you specify for JUnit Parser task is relative to job working directory. You can just simply use `chrome52.xml` as a pattern.

My other question is: why do you need to `touch` that XML file in task #2 ?


author: Mark de Bont
body: Try

```
ST-ST-STC/**/*.xml
```


Tags: cloud

junit