youngmon/atlassian-qna huggingface dataset:
Run Bamboo tasks in memory
Asked by Sebastian Meyer:

Is it somehow possible to run tasks in memory out of the box? I'd like to have my working directory copied into memory to run the tasks faster, especially things like the sonar alaysis. I appreciate any hints on that topic.

Thanks in advance!


Answers:
author: Krystian Brazulewicz
body: Sebastian

What do you mean by "running tasks in memory". Do you want to use RAM-based filesystem instead of disk-based? As @Sergey Podobry \[Stellarity Software\] noticed this will not speed up Sonar analysis much. You might want to make sure that all your java processes have plenty of heap (-Xmx setting).

Please tell us more about your plan/tasks configuration and where you're having performance problems so we might provide more targeted answer.


author: Sergey Podobry _Stellarity Software_
body: I think you can use RAM disk for that. However I'm sure that sonar analysis is CPU-bound and the files are cached in memory by OS (so RAM disk won't help much).

I didn't measure sonar analysis performance but I measured speed of Visual C++ compilation and there was almost linear dependency on CPU while faster disk played not a big role.


author: Sebastian Meyer
body: Krystian,

thats exactly what I wanted to do. But since you both say, that this won't be that effective I probably don't follow that idea anymore.

Thanks a lot!


author: David S.
body: And if you're running on linux, you'll want to take a look at /dev/shm


Tags: bamboo-administration
Want to trigger the bamboo server with Git commit Id
Asked by Shylesh Yella:

I want to trigger the bamboo server with reference to Git commit Id( i.e. if I supply a commit ID, bamboo should automatically retrieve code changes in the commit and run the build.)


Answers:
author: Pawel Skierczynski
body: You can check this REST - worth a try.

POST "rest/api/latest/queue/MY-PLAN?customRevision=d8d4c1ed28a5"


author: Alexey Chystoprudov
body: Hello Shylesh,

You can choose "Run customised..." option from Run button and provide Git hash to execute build against it.
iOS, Cocoa and Xcode Support for Bamboo support for Bamboo 5.6.x
Asked by homeniuk:

Hello,

we want to use the plugin [iOS, Cocoa and Xcode Support for Bamboo](https://marketplace.atlassian.com/plugins/com.atlassian.bamboo.plugins.xcode.bamboo-xcode-plugin) but the latest version doesn't support Bamboo 5.6.x. Have someone a roadmap for this plugin? Is this plugin still in development?

Best regards


Answers:
author: Alexey Chystoprudov
body: Hello,

You can use latest beta version from Atlassian Maven repository. Please find more details in this thread: [can't find xcode plugin](https://answers.atlassian.com/questions/10395047)

comments: author: Krystian Brazulewicz
body: <https://maven.atlassian.com/public/com/atlassian/bamboo/plugins/xcode/bamboo-xcode-plugin/>


author: Krystian Brazulewicz
body: Mariusz

Just a word of explanation. At the moment this plugin and other provided by Atlassian Labs are not officially supported. This means we are not actively developing them but try to release them in sync with new Bamboo versions. As you can see we do not always update Marketplace.

Our team is discussing how should we change our approach to that type of plugins to make it easier for our customers to upgrade.


Tags: bamboo-administration
How do I get a complete list of job runs through the REST API?
Asked by Andrew Stiles:

Basically, I'm trying to get the same info through the API that you can get through the web UI when going to /browse/KEY-PLANKEY-JOB1. That is, a list of the last few runs of the job, regardless of their state. I can get most of the interesting information from /rest/api/latest/result/KEY-PLANKEY-JOB1; however, it skips any runs with an "Unknown" state (or with a lifeCycleState="NotBuilt"). Is it possible, through the REST API, to get a list that includes these runs that were in a bad state?


Answers:
author: Krystian Brazulewicz
body: As our [REST documentation](https://docs.atlassian.com/bamboo/REST/5.7.1/#d2e771) says you need to add `?includeAllStates=true` to your request URL
Why Atlassian choose to support only older version of tomcat ?
Asked by Issa:

Hi,

I'm just in the process to upgrade my Bamboo instance to version 5.7.1. Checked and found that Atlassian only supports the bundled Tomcat which is version 7.0.40.

How does Atlassian explain this choice when there are security issues (and fixes) on version 7.0.40 ?  
Just take a look at \[<http://tomcat.apache.org/security-7.html>\] and you can see that it is a bad idea to run 7.0.40.

--

Issa


Answers:
author: Krystian Brazulewicz
body: Issa

Check Oliver Pereira's response at the end of <https://jira.atlassian.com/browse/BAM-15127>. You should be able to download Bamboo WAR and install in the most recent Tomcat.

We might also bundle most recent Tomcat in next Bamboo release. Please watch that issue for future updates.

comments: author: Norman Abramovitz
body: Probably not a major issue, but if you run into problems with Bamboo, Atlassian support may not help you out.


author: Issa
body: Exactly, I'm not having a problem with finding Bamboo binaries, but more on the support policy of Atlassian on its products. If you supports Bamboo 5.7.1 when it only runs on 7.0.40, what do you do about the security fixes made my Apache on Tomcat ?Can someone at Atlassian answer this question ?


author: Norman Abramovitz
body: Please see [](https://confluence.atlassian.com/display/BAMBOO/Bamboo+security+advisories)<https://confluence.atlassian.com/display/BAMBOO/Bamboo+security+advisories> for Bamboo Security Advisories and patches.

comments: author: Issa
body: I'm not sure Atlassian patches handle Tomcat security issues...


author: Norman Abramovitz
body: Since they package tomcat internally with their products in some installation packages, they would need to since users are unaware. They would normally not fix things in tomcat, but they can provide an patch or a maintenance release if the security flaw would affect an Atlassian installation. If you read their Security Bugfix Policy they would be required to if the exploit would affect the customer system or atlassian products as per their policy.The issue is just because there are exploits it may not be possible to exploit through Atlassian product installations, so Atlassian would not need to provide a fix. This point is where contention arises. This is another reason to follow Atlassian recommended installation steps. If you have a non-standard installation, they could say fix your installation instead of providing a patch or a release.<https://www.atlassian.com/security/secpol>With Bamboo, they would provide a maintenance release based upon the current security bugfix policy.
Bamboo Cloud - Image Configuration page - Product dropdown bug?
Asked by AlexBussmann:

Hello,

I'm attempting to add a custom AMI to our Bamboo Cloud account using the Image Configuration page. However the **Create elastic image configuration - Elastic image configuration details** form has a Product field with an empty dropdown list. Being unable to select a product **Linux/Unix** or **Windows** is causing the following error when saving.

Selected product "null" does not match detected platform

Two members of my team have confirmed they are seeing the empty Product field dropdown. During testing last week I was able to add a custom AMI and saw that this was not empty. Did something change in that time? Was a bug accidentally pushed to production?

Thanks,

Alex


Answers:
author: Przemek Bruski
body: The most likely reason is that you have some additional permissions on your account that prevent Bamboo from accessing the spot price data. That's where the product list comes from.


author: AlexBussmann
body: Thanks Przemyslaw! I can confirm that the IAM account provisioned for Bamboo when given read-only permissions does fix this issue. Reading the online help we didn't see a section that describes what AWS permissions we should be assigning to our Bamboo IAM security group. Is this documented anywhere?

This problem is fixed using the AWSConnector, and ReadOnlyAccess policy groups.


Tags: cloud
Running python unittests from bamboo
Asked by Colin Galindo:

Does anybody run python unit tests with bamboo and get the results back?


Answers:
author: Marko Tibold
body: Sure, your python unittests can output xml results, which can be fed to the junit plugin.

comments: author: Colin Galindo
body: Thank you very much that worked


author: Marko Tibold
body: Great!


Tags: python

unit-test
How do you split mvn reactor into Bamboo jobs so groups of module build by different jobs?
Asked by Peter Kahn:

To make the most out of bamboo's stagesand jobs I want to   
a) split maven lifecycle phases across bamboo stages (Build -\> Test -\> Deploy)  
b) split each stage into parallel jobs

I know how to split phases and stages:  
**BUILD** : mvn clean install -D**skipTests**   
**TESTS:** mvn surefire:test failsafe:test  
**DEPLOY:** mvn clean deploy -DskipTests (rebuild - yick)

I don't know how to split across jobs. I'd like something that allowed me to run maven with multiple threads to determine which projects should be in each thread or job so I could construct the command line for each thread.

mvn do-thing -T4  
Generates cmdline1.XML thru 4.XML  
Jobs 1thru 4 invoke mvn using the XML to extract proper cmdline

Do you know of a plugin or cmdline option for this?

Thanks

Peter


Answers:
author: Peter Kahn
body: Bamboo cannot automatically do this, but I swear I saw a talk of the JIRA build team where they created an elastic build. I'll need to dig deeper on that. I created a feature request for now and will need to play around with running mvn validate -T4 to see if I can transform this into lists of "-pl group:artifact" statements which I could feed to identical jobs for execution.

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


author: Krystian Brazulewicz
body: I think you're requesting impossible. Some limitations I can see:

* surefire:test failsafe:test will also run compile:compile so I don't see a point in a separate job that will only do the building (unless you want to test if it compiles)
* you can achieve some level of separation by using maven profiles and use TESTA job to run `mvn test -Pprofile_test_a`, TESTB job to run `mvn test -Pprofile_test_b`, etc  

If you want to emulate some kind of dynamic job configuration you can emulate it using 2 script tasks. First of them would generate a script for another script task to run

I think you can also use surefire's/failsafe's allow you to run tests in [multiple threads](http://maven.apache.org/surefire/maven-surefire-plugin/examples/fork-options-and-parallel-execution.html).
Bamboo and EC2
Asked by David Cheslow:

I am new to Bamboo (and JIRA). We would like to use Bamboo but not EC2. The instructions say that EC2 account is required for Bamboo "on-demand". We're OK with that, but is this also true for "on-premises" solution? That would be a deal breaker for us.

Thanks in advance,

=dave=


Answers:
author: Pawel Skierczynski
body: On-premises (you own server) you have more options.

Mostly:

* remote agents installed wherever you want (well, they need to see server to connect to it and there are some prerequisites - like must run Java); they are not available in cheapest license
* local agents (run automatically where server runs, used for small instances).


author: Iiro Niinikoski
body: A bit repeat here considering Pawel's answer - but no - EC2 account is not a requirement when using the on-premise Bamboo as you don't have to use the Elastic Bamboo- feature if you don't want (just build your own agents).

I did not know before that you have to have an EC2 account if you want to use the Bamboo "on-demand" - but of course it makes perfect sense considering the agents.


Tags: cloud
Is there a way to bulk remove notifications
Asked by Neil Laurance:

Hi there.

We have a large number of plans, that have a global distribution list as their email recipient eg: [all-devs@foo.com](mailto:all-devs@foo.com)

[](mailto:all-devs@foo.com)This is creating a lot of spam. I am looking for an easy way to remove this recipient from all plans.

I can see them as rows in the database, but I didn't want to delete these rows if there was a better way?


Answers:
author: Krystian Brazulewicz
body: You can use Administration/Bulk Actions/Remove all notifications


Tags: bamboo-administration
How can I debug high CPU utilization on my remote agent?
Asked by Dan Rumney:

I have a remote agent running on an EC2 box that is consuming vast amounts of resources, even when idle

This is the `top` output.

```
PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                                                                                                                                     11808 ec2-user  20   0 6251m 1.6g  18m S 201.2 11.0  22726:39 /usr/java/jdk1.7.0_60/jre/bin/java -Xms512m -Xmx3096m -XX:PermSize=384m -XX:MaxPermSize=512m -jar /home/ec2-user/bamboo-agent-home/xml-data/build-dir/PEPPER-PBT517-BPC/pep
```

When I disable it, it doesn't go down.

When I request it to stop, vi the UI, it does not seem to want to stop.

The agent logs are not showing any errors.

I stopped the agent and noticed that the job was still there. I'm hypothesizing that this is actually an orphaned build that just got lost in the mix somehow. Is there any way I can confirm this? Has anyone seen this before?


Answers:
author: Krystian Brazulewicz
body: Dan

It looks like your job PEPPER-PBT-BPC is running some processes in the background and doesn't kill them. You should go over your job configuration and see what could cause this.

If you use your own instance of Bamboo (not the Atlassian Cloud offering) you might want to check this plugin: <https://marketplace.atlassian.com/plugins/com.atlassian.bamboo.plugin.bamboo-predator-plugin>

comments: author: Richard Cross
body: If only this plugin were available for Bamboo 5.10! I also have an issue with just one Bamboo Agent that is consuming all available CPU, constantly, even though it's not building anything.


author: Przemek Bruski
body: The most likely reason is either a memory leak or your build logging a lot and the agent not being able to keep up. If you're able to, have a look at the heap dump from that agent.

BTW, using elastic agents is a lot better way of using EC2 in conjuction with Bamboo.
How to search in all already completed build logs?
Asked by Andrey Sergeev:

I have 60+ Bamboo build agents. I want to find all build logs which have inside them a text string.

Is there a way to "grep" in all the logs?

May be there are certain approaches which may allow me to simplify the task. For each build I may see it's log as a regular text file (the file's URL is available at a Bamboo build page, it can be downloaded). Is there a place where all the files may be accessed via a command? May I iterate over each log one by one (REST API) using a programming language?


Answers:
author: Felipe Kraemer
body: Hello Andrey,

Build logs are saved in *$BAMBOO_HOME/xml-data/builds/PROJ-PLAN-JOB1/download-data/build_logs*.

You can use a command like this inside this directory:

*cat \*.log \| grep abcde*

Where:

* PROJ-PLAN-JOB1 is the full key
* abcde is the text string to be searched.

If this answer was helpful, please allow me to ask you to mark my answer as accepted in order to have it in the top of the thread, also helping other customers.

Thanks in advance!

Kind regards,  
Felipe Kraemer  
Atlassian Support

comments: author: Andrey Sergeev
body: I need to iterate across all build agents, across all past builds and their logs.I have a bug in my own scripts and I want to find in logs known "sign" - text string - of the bug. I do not know anything about build names (the script is universal for all projects), build times and so on.


author: Andrey Sergeev
body: Sorry, got it! The path is at the heading system. It works.
Why Bamboo on demand keeps terminating my elastic instances?
Asked by Andres Eusse:

Hi, i want to know why bamboo suddenly kills my elastic instances. I found many people with issues similar to mine, but none of their fixes works for me. I though the answer was something like the one presented in this question: <https://answers.atlassian.com/questions/96042>, but i have the Elastic instance management option set as disabled. My instances use Amazon Linux AMI, in a public subnet. Any advise?


Answers:
author: Andres Eusse
body: Hi Krystian,

I am using on demand instances. I am still unable to get the log i need because i am not around when the instances die. Is there a way to setup an alarm so i can be notified when it die and check the log when it still exists?


author: Krystian Brazulewicz
body: Andres

Are you using Spot Instances or Reserved Instances? Please remember that Spot Instance can be terminated by Amazon when the Spot price exceeds your max bid. If you use Reserved Instances then please contact Support to investigate.


author: Andres Eusse
body: Not really, most of the time when i go to see what happened, the terminated instance has been already deleted, I was thinking into setting an alarm when the communication between the agent and bamboo fails, but i am not really sure what to look at. Can you tell me how the communication works so i can monitor that?

Btw, i assume is a communication issue because once, the agent was not displayed in bamboo, but the instance was running in the EC2 console. Am i wrong?


author: Przemek Bruski
body: Are you able to access instance console after that happens? You can do via AWS console, right click on the terminated instance.

The most likely reason (if you're not using spot instances) is that the agent died.


Tags: cloud
Build Duration 369 minutes!
Asked by Arjun Panday:

Hi,

We have a build plan that usually takes less than 30 minutes. Sometimes it finishes successfully but only after a long delay (6 hours!) and the logs indeed show only the last 30 minutes, so it looks like the build itself ran normally. This seems to happen irregularly with random idle periods

How can I diagnose what happened during the first 5 and 1/2 hours?

We're using spot instances on AWS, with a 5 minutes timeout on the bid, but before I blame it on AWS, I'd like to know what happened as viewed by Bamboo.

How can I get more detailed information about spawn AWS instances, like:

* was the job running on a spot or regular instance?
* the time between requesting an instance and getting an instance
* the time between getting an instance and the bamboo agent responding
* any other logs on Bamboo side about scheduling of jobs..

Thanks


Answers:
author: Krystian Brazulewicz
body: Arjun, the situation you're describing fits this issue: <https://jira.atlassian.com/browse/BAM-15187> Fix for this issue will be in the next Atlassian OnDemand (Cloud) update. Please verify if the problem is gone after the upgrade. If it is not then please contact our [Support](https://support.atlassian.com/servicedesk/customer/bsp)


author: Arjun Panday
body: Thanks a lot, I sure hope that could be it.

By any chance, do you know when the next OnDemand update is planned?


author: Arjun Panday
body: Thanks Krystian,

Well, Bamboo reports a duration of 369 minutes in the build result summary, but the build logs show only 30 minutes of activity. The first log line says:

```
simple 23-Nov-2014 03:47:03 ... started building on agent Elastic Agent on i-xxx
```

and the build job completes at 23 Nov 2014, 4:14:04 AM

Now, I'm unclear whether the duration reported takes the queue time into account, so I'm not sure whether the job was in the queue for 6 hours or hanging in a "starting phase" somewhere in between.

Either way, with a max of 10 elastic intances running in parallel, I don't see how this could happen, unless all our builds are stuck for hours.

The Bamboo server is on Atlassian Cloud, not our own.


author: Krystian Brazulewicz
body: Is the plan executing for those 6 hours or is it stuck in the queue? Are you using Atlassian Cloud offering or your own installation?


Tags: aws

cloud
Unable to publish Artifact
Asked by tariq mehmood:

Hi,

I am working on bamboo 5.6 version i make a job in which make artifact but it not publish and each time it through log file below detail.

"2014-11-25 11:15:52,366 WARN \[10-BAM::Default Agent::Agent:pool-25-thread-1\] \[BuildResultsSummaryManagerImpl\] **Unable to determine publishers for: Job artifact:** \[EDS Artifact\], pattern: \[ \*\*/\*.zip\] anchored at: \[../EDS-ED-JOB1/EDS21/bin\]"

kindly help me regarding this issue ASAP.


Answers:
author: Radek Antoniuk
body: Hi Tariq,

There was a bamboo bug that I remember. Maybe that's your problem.

Go to Cog icon \> Add-ons \> select System plugins from the dropdown \> make sure that System Builder plugin and all it's sub-plugins are enabled.

Hope that helps.
Support in migrating from GitHub to Bitbucket
Asked by laura.devita:

Hi everyone,  
we have to bring everything from GitHub to Bitbucket. In particular  
we have to find a way to bring the history in addition to the snapshot and the branches, or rather bring us all the pull requests.

Thanks


Answers:
author: laura.devita
body: It works with me <https://community.atlassian.com/t5/Bitbucket-questions/Migrating-GitHub-to-Bitbucket-Server-forked-repos/qaq-p/584057>


Tags: bitbucket-server

server
Pushing but nothing happens
Asked by NilsJohanSoderberg:

When I push to my Bitbucket repository, using Visual Studio 2022, I get the following message:

Opening repositories:  
C:\\UnityProjekt\\\*\*\*\*\*\*\\\*\*\*\*\*  
Pushing master  
Everything up-to-date

But in fact, nothing happens.


Answers:
author: Karthick S
body: Hello [@NilsJohanSoderberg](/t5/user/viewprofilepage/user-id/4870571)

Welcome to the Atlassian Community!

Could you please check if any untracked files in the repository? You can check with the below command:

```
git status
```

If there are, you can add them and push them to the remote.

```
git add .
git commit -m "commit message"
git push origin master
```

Let us know if you have any questions.

Kind regards,

Karthick S

comments: author: NilsJohanSoderberg
body: I just remade the repository and its working now :)


Tags: bitbucket-cloud

cloud

visual-studio
Bitbucket is not accepting my 2FA, but Atlassian recognizes it
Asked by MayuriDPatil_biz4:

I recently got my 2FA code reset however it working on Atlassian but not on Bitbucket. Please help.


Answers:
author: Theodora Boudale
body: Hi [@MayuriDPatil_biz4](/t5/user/viewprofilepage/user-id/4888072) and welcome to the community.

I can see in our system that you have 2FA enabled for both the Atlassian account and the Bitbucket account.

++Please allow me to give some context first:++

Bitbucket uses Atlassian accounts (the ones for <https://id.atlassian.com/>) for authentication. At the moment, it is possible to set up 2FA both for a Bitbucket account and also for an Atlassian account.

If you do that, you'll get asked for a 2FA code twice when logging in to Bitbucket; once for the Atlassian account and once for the Bitbucket account.

There should be two separate entries/accounts in the authenticator app, one for the Atlassian account and another one for the Bitbucket account.

You cannot use the codes generated for the Atlassian account to Bitbucket and vice versa.

++If you have a second entry/account in your authenticator app for Bitbucket++, you should use that to get a 2FA code for Bitbucket.

++If you don't have another entry/account in your authenticator app for Bitbucket++ , you can select the link **Forgot code?** on the Bitbucket 2FA page and follow the instructions for receiving a 2FA recovery email. Please note that the recovery email is sent 24 hours after the request. You can disable Bitbucket 2FA with the link in that email.

Please feel free to let me know if you have any questions.

Kind regards,  
Theodora


Tags: 2-factor-authentication

bitbucket-cloud