youngmon/atlassian-qna huggingface dataset:
Can I use my own remote agent with Bamboo OnDemand
Asked by Karel Bemelmans:

Simple question: now our Bamboo Ondemand server works with Amazon EC2, but I would like to use a remote agent on our own server.

This would be the best of both worlds for us:

* we don't need to keep Bamboo updated or running, as it's hosted by Atlassian
* but we can use our own build server without the cost of an Amazon EC2 server, and we also don't need to build a new EC2 image everything we added more tools to the build server


Answers:
author: cbenard1
body: Hi Keral,

Currently it is only possible to use EC2 instances as your agents when using the Cloud/OnDemand platform. Please see our [Restricted Functions Policy in OnDemand](https://confluence.atlassian.com/display/AOD/Restricted+Functions+in+Atlassian+OnDemand#RestrictedFunctionsinAtlassianOnDemand-Bamboo) for more details on this.

Thanks!

Turner


Tags: cloud
Bamboo Subrepository HTTP Authorization Required
Asked by andrew_pye:

I'm trying to use a subrepo in one of my repositories. When Bamboo attempts to pull the parent repo, I get an authorization error:

Error occurred while running Task 'Checkout Default Repository(1)' of type com.atlassian.bamboo.plugins.vcs:task.vcs.checkout.  
java.lang.RuntimeException: com.atlassian.bamboo.plugins.hg.HgCommandException: command /usr/bin/hg update --clean --rev 11b8e8726b4295507d9fac459d48e055dee32abd --config 'ui.ssh=ssh -o StrictHostKeyChecking=no -o BatchMode=yes' failed. Working directory was \`/home/bamboo/bamboo-agent-home/xml-data/build-dir/ST-STP-JOB1'. stderr: abort: http authorization required (in subrepo child)

How do I resolve this?


Answers:
author: Krystian Brazulewicz
body: Authentication you selected in Bamboo doesn't work for subrepositories in Mercurial. You need to provide authentication details in hg configuration, for more information see this article: <http://stackoverflow.com/questions/2584407/how-to-save-username-and-password-with-mercurial>


Tags: cloud
Bamboo Custom Image Configuration - Unable to contact AWS to get AMI Details
Asked by Keith Holloway:

Atlassian doesn't have a Windows .NET 4.5 image (sigh), so I am creating one on my own via the amazingly detailed blog posts of David Stringer at <http://davidstringeratwork.wordpress.com/2012/10/04/using-atlassian-bamboo-ondemand-for-visual-studio-2012-projects-part-1/>.

I have created an AMI image and now I am trying to create an elastic image configuration in Bamboo. However, I get this error: "Unable to contact AWS to get AMI details: com.amazonaws.AmazonServiceException: Status Code: 403, AWS Service: AmazonEC2, AWS Request ID: 95ad13f4-950c-4018-8324-1ca0a2530adc, AWS Error Code: UnauthorizedOperation, AWS Error Message: You are not authorized to perform this operation."

I did have Bamboo working with a default AMI (the .NET 4.0 image from Atlassian), so I'm not sure why I am having problems here.

Any help would be appreciated.

<br />


Answers:
author: Vlad Salagean
body: I had a similar error. Solved it by giving "AmazonEC2FullAccess" to the Elastic Bamboo user in IAM Management Console.

For that go to Security credentials\>Users\>ElasticBamboo User\>Permissions\>Attach Policy\>AmazonEC2FullAccess

Not sure it would work for you but you can try.


author: maulik
body: I have same problem please let me know the solution


Tags: aws

image
Clone a plan in Bamboo
Asked by Rob Kooper:

I use groups to give people specific access to different projects. For each project I have an admin group that should have admin access to project and a dev group that I want to give edit/run permissions for this project.

Right now for a person to see the create plan option they need to have admin privileges, is it possible to give more specific permissions to create a plan in a project?

I tried to use clone plan permissions, where I as bamboo admin create the first plan, but allow project-admins to clone this plan create new plans based on the clone, this does not seem to work unless I give them bamboo-admin rights.


Answers:
author: Krystian Brazulewicz
body: We have a feature request for this <https://jira.atlassian.com/browse/BAM-2677>. Please vote on this to increase its visibility.


Tags: bamboo-administration
Custom EBS volume does not transfer Maven settings.xml
Asked by Brandon Vulaj:

So far, I have set up a custom EBS volume based on the [guide](https://confluence.atlassian.com/display/BAMBOO/Configuring+elastic+instances+to+use+the+EBS). I've also:

* Modified the `settings.xml` file located at `/mnt/bamboo-ebs/maven/.m2/settings.xml`
* Added a `settings-security.xml` at /mnt/bamboo-ebs/maven/.m2/settings-security.xml
* Modified `customise-extras.sh` at `/mnt/bamboo-ebs/bin/customise-extras.sh `to include copying the `settings-security.xml` alongside the `settings.xml`

Now, I don't see any of those files getting transferred to the elastic instance. An even bigger problem is that I don't see **any** files at all at `/mnt/bamboo-ebs` when I attached it to a new elastic instance.

This instance is an unmodified Atlassian configuration, with an attached EBS snapshot as mentioned above.

Any insight at all to this issue?


Answers:
author: Przemek Bruski
body: You've probably hit <https://jira.atlassian.com/browse/BAM-14409> , there's a workaround in the comments.

comments: author: Brandon Vulaj
body: Hey @Przemyslaw Bruski - Thanks for the input. I ran through the recommendations in that bug, but that doesn't seem to be the issue I'm seeing. To make sure, I've also switched to an Amazon Linux AMI. The snapshot seems to be created and mounted just fine.


author: Brandon Vulaj
body: I'm actually going to close this issue. It seems that using the Ubuntu AMI, I did encounter the referenced issue. Switching to the Amazon AMI or using the fix seemed to fix thing. Thanks!


Tags: cloud
Is there a way to remove author from list or at least change its email?
Asked by TomaszGorski NA:

Hi

I have an author that have been created by accident and contains wrong information. Some builds has been made using this author, but were, since then, removed.

Is there a way to remove author from list or at least change its email?


Answers:
author: Krystian Brazulewicz
body: You can try removing/modifying the entry from DB table AUTHORS. If your DB supports foreign key constraints (which is not the case for MySQL using MyISAM storage) you can try deleting entry from DB:

```
DELETE FROM author WHERE author_name = '<author-name>';
```

If operation will fail due to foreign key constraints it means it is still used by Bamboo and you can only modify it

```
UPDATE author SET author_email = '<new-author-email>' WHERE author_name = '<author-name>';
```

:warning: Please do a full backup of your DB before manually editing its contents

comments: author: TomaszGorski NA
body: This is Bamboo on demand. I don't have access to underlying database. Can it be done by some kind of customer support request?


author: Krystian Brazulewicz
body: I'm not sure how requests like this are resolved but creating a support ticket costs you nothing :)


Tags: cloud
How to automatically report issue for each NUnit failed test case?
Asked by shi2ru:

I intend to run a nightly build with NUnit tests on Bamboo, and I want to report an issue for each failed test case. How can I make it so that each failed test creates an issue automatically, preferably with additional information?


Answers:
author: Marco_Wlotzka
body: Hi Marcio,

try to parse the nunit result file already in your build directory and use the JIRA API to generate one issue for each test case.

If your comfortable with C#, use a JIRA rest client from nuget: <https://www.nuget.org/packages/TechTalk.JiraRestClient/>

If you more Java, build your own maven plugin and integrate it in your pom.

Regards,

Marco
Copying JUnit/XML results from remote host to local build directory?
Asked by Andrew Ceponkus:

Do I need to use a custom script/SSH task to copy \*.xml results that are generated on a **remote** test target in order to make use of the standard JUnit test results/parsing task? Are there better/alternative ways to use remote-host (via a build-configuration variable) output XML within a build plan?


Answers:
author: Andrew Ceponkus
body: Thanks Krystian, unfortunately using an agent on the (non-build) target (ie. an existing VM outside of the elastic pool) wasn't an option, and the built-in on-demand SCP task provides agent --\> target transfers only.

I decided to go with a simpler solution (for now) -- retrieve remote files to associate with the build plan run using a stripped-down web server running on-target, copying files I need to a public docroot (ssh), then finally copying to the build-agent host. The files are stamped with a unique run identifier, and cleaned-up after the run is complete.


author: Krystian Brazulewicz
body: Andrew

I'm not sure what do you mean by **remote** test target? Does it mean that your build agent (running on host X) runs tests on a different host Y? If this is the case then SCP task might copy the output files for you.

The alternative could be running the build agent on the same host where tests should be executed. In such case copying test results will not be needed.


Tags: cloud
Coded UI Tests on Bamboo On-Demand
Asked by chris spencer:

```
I'm using Visual Studio 2013 to create Coded UI Tests and would like to get them running with Bamboo On-Demand. Note that I don't use TFS (Team Foundation Server).
```

```
I have tried using the 'MS Test Runner' and calling MsTest.exe and vstest.command.exe directly. With each one I get this error "To run tests that interact with the desktop, you must set up the test agent to run as an interactive process."
```

```
I can remote desktop into the elastic image and successfully run the tests from the command prompt. It just seems to be an issue when the tests are ran from a build plan. Presumably because mstest doesn't run as an interactive process. But as far as I can see you can't just make an executable run in interactive mode. A service perhaps.
```

Has anyone been able to get Coded UI Tests running from a build plan? If so have you any ideas as to where I'm going wrong? I know there is such a thing as the Microsoft Test Agent but this is a TFS thing I think and can't be called from the command line?


Answers:
author: Jason Monsorno
body: We're using the Telerik Test Framework, running MSTest, and have Bamboo locally (not on-demand) but this may help. For Windows, any version past Server 2003, the service must run as the Local System Account and have "Allow service to interact with desktop" selected. Prior and including 2003, you could select a similar feature but for any user. You will likely need to restart the service as well.

Capture.PNG  
[](https://community.atlassian.com/t5/Bamboo-questions/Coded-UI-Tests-on-Bamboo-On-Demand/qaq-p/218895?attachment-id=3877){#link_116983e916c07a}  
[](/tnckb94959/attachments/tnckb94959/bamboo-questions/6980/1/Capture.PNG){#display_116983e916c07a_0}

comments: author: chris spencer
body: Thanks for the advice. However, it doesn't look like bamboo on-demand makes that particular service accessible to the end user. Most of the infrastructure is managed by Atlassian themselves and the VM that I get to customise is just a temporary workspace for the builds.


author: Damon Groenveld
body: If you look at the documentation for creating a custom elastic image (windows) there are some expandable sections that include the information required to allow desktop interaction.

The documentation is available here:

<https://confluence.atlassian.com/display/BAMBOOCLOUD/Creating+a+custom+elastic+image+-+Windows>


Tags: cloud
Removing releases after deployment
Asked by Michael Pear:

After starting to use deployments in Bamboo, disk usage keeps increasing as each release associated with a deployment keeps the artifacts for the release, and there doesn't seem to be a means of removing releases once created for a deployment. For example, we have one server which we deploy each build to automatically, and we don't really care about the releases after they are deployed. I see that I could delete the directories in "globalStorage" under the artifacts folder, however, that approach seems could result in breaking something later, or easily removing a release (for another deployment environment) that I don't want to lose. In addition, the release would still be appearing the Bamboo database. Is there any way to remove these releases once deployed without the risk of compromising integrity with the database or removing a release I want to keep?


Answers:
author: Michael Pear
body: Thanks, Jason. I've added my vote to that issue and will watch it. Krystian, will the issue above be assigned to the release in Jira? It currently has no assignment or indication that it will be addressed.


author: Jason Monsorno
body: I have a support ticket in for that, please vote for it:

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


author: Krystian Brazulewicz
body: We'll be shipping Deployment Expiry (similar to Build Expiry) in Bamboo 5.7.


Tags: bamboo-administration
bamboo email "from" address is not FQDN
Asked by Dane Foster:

Hi,

Seems that bamboo doesn't use it's FQDN when sending email, which causes issues with our SMTP server. (and, I suspect would do the same for others)

error shown is:

```
The mail settings you entered were not valid. Error thrown was: javax.mail.SendFailedException: Invalid Addresses; nested exception is: com.sun.mail.smtp.SMTPAddressFailedException: 504 5.5.2 &lt;bamboo&gt;: Helo command rejected: need fully-qualified hostname
```

Could this be enabled, or could you suggest a workaround?  

It seems sensible for bamboo to use a FQDN when sending email.


Answers:
author: Dane Foster
body: Well, if anyone else is looking for a fix, something like this would work:

```
sudo postconf -e "smtpd_helo_restrictions = permit_mynetworks reject_invalid_helo_hostname reject_non_fqdn_helo_hostname"sudo postfix reload
```

the key section is 'permit_mynetworks' - I needed to add the bamboo IP to 'mynetworks'  

But it would be great if Atlassian would make bamboo use a FQDN when sending emails.

Source; <http://labs.hoffmanlabs.com/node/1856>

comments: author: Ganesh Punalkar
body: Invalid Addresses; nested exception is: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 \<Ampptech@crest.in\>: Recipient address rejected: address does not exist in this domainI have facing this issue on windows 2008 R2 Virtual Server, Can you suggest why this is happening.


author: Ganesh Punalkar
body: Invalid Addresses; nested exception is: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 \<Ampptech@crest.in\>: Recipient address rejected: address does not exist in this domainI have facing this issue on windows machine.


Tags: bamboo-administration
Where can I change the bamboo plan and build keys?
Asked by Mike Friedrich:

The title says it all. Where in Bamboo can i change the keys?

Best Regards, Mike

(Bamboo version 5.6.1)


Answers:
author: Krystian Brazulewicz
body: Bamboo UI does not allow changing the Plan key. What you can do however is to use Administration / Move Plans option to move it to another project and then change the plan key.

comments: author: Mike Friedrich
body: Thanks, it took very long but finally was successful.


author: John Snead
body: This works but it's a pain if you just want to change the plan key whilst staying in the same project as you have to move it twice (away and back again), especially if there are many completed builds and hence lots of artifact directories. I've also noticed that when moving a plan, the original key-named directories on the Bamboo server, although emptied, are not deleted (on Windows server at least - perhaps it works on other platforms).Is it possible to raise a feature request to change the key in a single operation?


author: Krystian Brazulewicz
body: John, we already have a feature request for that (<https://jira.atlassian.com/browse/BAM-9658>). As every software team we have to plan how to utilise our resources in optimal way and we're focusing on implementing features that more customers will benefit from.


author: John Snead
body: Thanks, Krystian, I'll take a look. I've been around software development organisations long enough to realise that this is probably way down a rather long wish list, so I won't hold my breath!


author: John Gill
body: 4 years later and there it is... still open. While I like stride and all the other tools you all put out, the tech debt for Bamboo is painful in almost every way.


author: Valentin Constantinescu
body: 6 years later.
Where can I learn about Salesforce development with Atlassian tools?
Asked by TimP:


Answers:
author: Melanie Wright
body: Here! [Answers Topic: salesforce-dev](https://answers.atlassian.com/questions/topics/9732243/salesforce-dev)


author: Jesse Miller
body: Hey @Tim Pettersen, we have our [Connector for Salesforce.com and JIRA](https://marketplace.atlassian.com/plugins/net.customware.plugins.connector.salesforce.salesforce-connector-plugin) and our [Connector for Salesforce.com and Confluence](https://marketplace.atlassian.com/plugins/net.customware.confluence.plugin.salesforce.confluence-salesforce-plugin) which really helps connect teams to improve the development cycle. Im not sure if this is exactly what you are looking for though.


Tags: salesforce
Clover/Bamboo - java 1.8 issues (linux vs windows)
Asked by Jeff Stein:

I'm having issues tracking down a curious problem with clover \& bamboo.

1) I setup a project in bamboo to run **mvn clean test**

2) After a successful run I then modified my plan to add the Clover support

3) Clover support failed - I looked at the logs to see what it was trying to do and found the command line:

```
?/opt/software/apache-maven-3.2.3/bin/mvn -X clean com.atlassian.maven.plugins::maven-clover2-plugin:setup verify com.atlassian.maven.plugins::maven-clover2-plugin:aggregate com.atlassian.maven.plugins::maven-clover2-plugin:clover -Dmaven.clover.generateJson=false -Dmaven.clover.licenseLocation=/var/lib/bamboo/bamboo-home/xml-data/build-dir/DJ-DM-JOB1/.clover/clover.license
```

So this command (or an equivilent command) runs fine on windows. On Linux i'm getting an error with lambda which implies to me its not using the correct JDK 1.8 -\> but when I ran without clover everything was fine.

```
[ERROR] /var/lib/bamboo/bamboo-home/xml-data/build-dir/DJ-DM-JOB1/disJockeyClient/target/clover/src-instrumented/infr/audio/gui/impl/BogusRadioUi.java:[220,-1]
1. ERROR in /var/lib/bamboo/bamboo-home/xml-data/build-dir/DJ-DM-JOB1/disJockeyClient/target/clover/src-instrumented/infr/audio/gui/impl/BogusRadioUi.java (at line 220)
 __CLR4_0_13un3uni0schsyi.R.inc(5057);frequencyIds.forEach(__CLR4_0_13un3uni0schsyi.lambdaInc(5058,frequencyId -> frequencyIdOptions.add(frequencyId),5059));
 ^^^^^^^
The method forEach(Object) is undefined for the type Collection<FrequencyId>
```

Any suggestions as to two to get this working on linux?


Answers:
author: Marek Parfianowicz
body: A workaround to make your code compile-able is to disable instrumentation of expression-like lambda functions. Use the instrumentLambda=block or instrumentLambda=none.<https://docs.atlassian.com/maven-clover2-plugin/latest/setup-mojo.html#instrumentLambda>


author: Marek Parfianowicz
body: Hi Jeff. This is a very interesting case. Could you tell me what exact versions of Java do you use on Linux and Windows?


Tags: bamboo-administration

maven

maven-clover2-plugin
Failed to start elastic instances: Error when starting a new instance
Asked by Sanjay Patidar:

I am trying to build my code from github using one of the images defaulted by bamboo. When I try to start one of the elastic instances, get the error -

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

Name: EBS i386 (linux)

AMI idami-b9ebf1d0


Answers:
author: maulik
body: [Failed to start elastic instances: Error when starting a new instance](https://answers.atlassian.com/questions/9384893/failed-to-start-elastic-instances-error-when-starting-a-new-instance) {#toc-hId-1874431906}
===================================================================================================================================================================================================================

hello i m facing same issue can yo guide me how to resolve it?


author: cbenard1
body: Hi Sanjay,

Could you please include a snippet from the log file during the starting of the agent so we can see the errors thrown by Bamboo and better investigate the error?

Thanks!

Turner


Tags: cloud
How can i extract the author of a change which has triggered a bamboo plan into a variable
Asked by Joseph:

In Bamboo

I would like to have a variable that refers to the author of the change that triggered the plan to execute.

My SCM is Subversion.

I've checked <https://confluence.atlassian.com/display/BAMBOO/Bamboo+variables>

however these is no reference to obtaining the change details (e..g. Author, commit message, version etc)


Answers:
author: Krystian Brazulewicz
body: Joseph, at the moment we do not provide variables that would be substituted with change details. You can raise feature requests for this using our [public issue tracker](https://jira.atlassian.com/browse/BAM).
How to switch Bamboo install from cloud to server ?
Asked by Simon Tarchichi:

Hello,

I have activated the free trial today, to run CI tests for my company. At the beginning of the installation, i chose the "Cloud" version, not realizing that I would need an effective Amazon instance (I did read the warning, though the message doesn't seem to have reached my brain)... Is there a way back ?

Instance URL is test-simon.atlassian.net.

Thanks in advance for your answer


Answers:
author: Krystian Brazulewicz
body: "Cloud" version is a hosted solution (in Atlassian environment) and requires usage of Amazon EC2. It is not possible to use that version with local computing resources.

You're probably looking for BTF (Behind The Firewall) version which needs to be installed on your own server. If you want to migrate the configuration you might want to use Import/Export from administration menu.


author: Simon Tarchichi
body: OK great, thank you for your answers :smile:

I haven't really made much of configuration (I am still testing the platform) so I will be migrating to the BTF instance before I make too much configuration in the cloud... Thanks !


author: cbenard1
body: Hi Simon,

To follow up on what @Krystian Buszkowski said. The OnDemand/Cloud platform does not currently support an export functionality. The user bases are handled differently in this platform and it doesn't properly translate at this time.

Needless to say it may be better to perform a switch sooner than later (so there's less data that needs to be manually migrated over). Here's how you can do this:

* Navigate to my.atlassian.com, login
* Create a new license and select Self Hosted
* Load up the <https://www.atlassian.com/software/bamboo/download>, download, and install!
* Manually copy your data from your Cloud instance to your newly created BTF instance
* Go back to my.atlassian.com and cancel your subscription to your cloud Bamboo instance.  

Thanks!

Turner


Tags: cloud
SonarQube plugin for Bamboo 5.2
Asked by kunal mokashi:

Hi,

I have configured bamboo 5.2 on my local machine. I want to integrate a SonarQube plugin for my bamboo instance.

Where can I find the SonarQube plugin compatible with my bamboo version?

Thanks.


Answers:
author: Krystian Brazulewicz
body: Contact this plugin [vendor](https://marketplace.atlassian.com/vendors/11178) for more information

comments: author: kunal mokashi
body: Thanks.. But the vendor homepage doesn't seem to exist


author: Krystian Brazulewicz
body: This is the bug tracker for this project: <https://marvelution.atlassian.net/browse/BAMSON>


Tags: sonarqube