youngmon/atlassian-qna huggingface dataset:
Unable to Install the Bamboo Services
Asked by Firoz Khan:

Hi Team,

I have Installed Bamboo in my machine when i am trying to install the services it is show error "Failed installing 'Bamboo' service".

Please help me with this .

Thanks in advance

Regards,

Firoz Khan.


Answers:
author: Peter Van de Voorde
body: Hi Firoz,

First off: what OS is your machine running?

Looking at the error I'm guessing Windows.

You can already take a look at the following pages, they might provide you with a solution:

[](/questions/273802/can-t-start-bamboo-as-a-windows-service)<https://answers.atlassian.com/questions/273802/can-t-start-bamboo-as-a-windows-service>

[](https://confluence.atlassian.com/display/BAMKB/Running+Bamboo+as+a+Windows+Service++-+Troubleshooting+Guide)<https://confluence.atlassian.com/display/BAMKB/Running+Bamboo+as+a+Windows+Service++-+Troubleshooting+Guide>

[](/questions/122525/installing-bamboo-for-the-first-time-cannot-get-service-to-start)<https://answers.atlassian.com/questions/122525/installing-bamboo-for-the-first-time-cannot-get-service-to-start>

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

Be sure that the user you're installing Bamboo with has admin rights on your machine.

Best regards,

Pete
how do I setup a MySQL database in the Elastic Instance ?
Asked by Jean-Sebastien (GA):

Since it's not in the default elastic image capabilities, could anone give some guidelines about how to manage to set up a MySql DB on an elastic agent ?

best regards,

Jess


Answers:
author: Przemek Bruski
body: Here's what we use on Amazon Linux images (Instance configuration script):

```
#!/bin/shexport PATH=/sbin:/bin:/usr/sbin:/usr/bininstall(){yum install -y mysql55-serverservice mysqld start/usr/bin/mysqladmin -u root password ''cat &gt;&gt; /home/bamboo/bamboo-capabilities.properties &lt;&lt; EOFcustom.database.type = MySQL_55EOF}install &gt;&gt;/tmp/startup.log 2&gt;&amp;1
```


author: Jean-Sebastien (GA)
body: aaaah fantastic !!

I'll take a big inpsiration from this piece of code, Przemek, thanks a lot !

regards,

J


Tags: cloud

elastic

elastic-agent

mysql
bamboo on demand with ubuntu image. Instance is pending (probably a user problem)
Asked by David Roon:

I am setting my first test instance. I have my own AMI that I have prepared for this. It is based on an ubuntu AMI.

The issue is that ubuntu AMI's default user isn't ec2-user but ubuntu. It seems that the agent uses ec2-user rather than ubuntu and I don't see anywhere I can specify which user to use.

I tried to connect to the instance with ssh and with ubuntu it works but not with ec2-user.


Answers:
author: David Roon
body: Ok I understand.

Most of the regions don't have the default images for bamboo.

I was launching everything from Europe.

So go to East US (N.Virginia) and then you will see them.


Tags: amazon

cloud

instance
is there or will there be a Linux Elastic Image with the MySql capabilty ?
Asked by Jean-Sebastien (GA):

If I want to set up a build job that run tests using the PHPUnit task, and if those tests include mysql database tests, I need a MySql capability, needn't I ? But it still not in the list of provided capabilitties of default linux images.

regards,

Jess


Answers:
author: Przemek Bruski
body: We will not distribute an image with MySQL, that would be too specific. You can easily install MySQL via yum or apt-get using an instance setup script (located at image configuration screen).

comments: author: Jean-Sebastien (GA)
body: sounds perfect ! :)


author: Jean-Sebastien (GA)
body: Hey Fabian, thank you for the idea. I didn' think about this possibilty. :)

I just need some guidelines to understand how to plug my source code I check out in the elastic agent, to this RDS technology.

Meanwhile I will try the "instance setup script" to check that it suits my needs.

regards,

J


author: Fabian Knorr
body: Also you can use RDS, which can be configured to act like MySQL.

regards

// Fabian


author: Bryan Karsh
body: And you don't need mysql per se. Seems to me is all you need is something that outputs in rsyslog type format, and have elastic search read from that?

comments: author: Jean-Sebastien (GA)
body: sorry Bryan, I'm not sure I got your answer.


Tags: cloud

elastic

elastic-agent
Bamboo Failure Conditions
Asked by Steve Chapman:

I'm evaluating Bamboo and would like to know if it's possible to fail a build based on a comparison of metric deltas with prior builds. Sample use-case would be: fail if code coverage drops and lines of code increases or remains the same.

Thanks in advance.


Answers:
author: dustin_barnes
body: I went through this. Long story short, if you're using a modern bamboo (\> 5.1) , there is NOTHING that currently exists to track code quality. Not even to report it in a nice way. The checkstyle/coberture/etc plugins haven't been touched in years. Bamboo itself doesn't handle it. I find it to be one of the biggest shortcomings of the Bamboo tool.

If quality metrics are a core part of your build (as they are mine), you'll have to find another solution...


author: Kyle Varga
body: I haven't seen such a thing. However, you could probably make a script to handle it. For example

Build 1:

* Run build
* Calculate test coverage
* Upload test coverage to FTP or somewhere else

Build 2:

* Run build
* Calculate test coverage
* Compare test coverage to FTP Site / etc
* Return 1 if it should error, 0 if not. etc

It is not ideal, but would work with not much outside dependencies. Maybe a way to do this using build artificats as well, but not positive.


author: Ben Dry
body: We are in the exact same situation and would also like to know this.


Tags: bamboo-administration
Running a script using the Script plugin reports all standard out as errors in bamboo log
Asked by Marc Eiler:

When I run a script in Bamboo using the Script plugin, all of the standard out from the script is reported as an error in the Bamboo log ang is reported in the Error Summary. Is there a way to get it to ignor standard out for logging? I even tried to redirect the std.out to a file to see if I could hide it, but that didn't work. The script that I'm running is nosetests with the xunit output parameter. Here's a sample of the standard out that I get that it shows an error:

----------------------------------------------------------------------  
Ran 0 tests in 0.088s  

OK

Shows like this in the log:

```
error	18-Jun-2014 11:44:30	error	18-Jun-2014 11:44:30	----------------------------------------------------------------------error	18-Jun-2014 11:44:30	Ran 0 tests in 0.088serror	18-Jun-2014 11:44:30	error	18-Jun-2014 11:44:30	OK
```


Answers:
author: rsperafico
body: Hi Marc,

Thank you for your question.

There are a few things I would suggest you on doing:

```
nosetest p1.py &gt; text.txt 2&gt;&amp;1
```

Or

```
nosetests --processes 4 &amp;&gt; output.txtnosetests --with-xunit --xunit-file=test_output.xml
```

Or

The option to make it as quiet as possible (-q for all of them)  
The option to turn off output capture (-s works for both pytest and nose, not needed for unittest)

```
nosetests -q -s test_fixtures:TestSkip
```

Kind regards,  
Rafael

comments: author: Marc Eiler
body: The first option worked great. It still confuses me as to \*why\* a standard out print statement is interpreted as an error in Bamboo. Shouldn't it me more of an informational item and not an error?


author: Gretchen
body: You can always specify what results are successful and what are failures. I've got another post on here somewhere where I go into some detail on how to structure that. My examples are based on the documentation for error levels on robocopy which you can google and find. Robocopy always returns a non-zero return code which is only a "failure" when the number is above 7. So when you script with that you have to force the return to 0 so that the build task reads as successful. As long as you can test for success or failure in your script you can return 0 or return (non-zero) and force the script to succeed or fail based on your criteria instead of the default.


Tags: script
Bamboo does recognize issue-keys mentioned in branch name
Asked by Philip Steinebrunner:

Hi

Recently I noticed following situation.

I merged several commits of git branch A to git branch B. B is being build by Bamboo. Branch A containes several **Merge branch 'bugfix/KEY-1234-some-issue'** messages from branches merged back into branch A (master).

When looking at the build summary of Bamboo issue KEY-1234 is not mentioned in the Issues-Tab. It seems issues only get mentioned if they are not in a commit message beeing a merge commit.

But I also want those issues linked to the issues-tab becaus they are new compared to the last build. Anny suggestions how to archive this?

Cheers  
Philip


Answers:
author: Andrey Shovkoplyas
body: Why bamboo doesn't recognize JIRA issue key if it looks like **bugfix/KEY-1234-some-issue ?**

if i have this situation

commit1 - message without key

commit2 - message without key

merge **Merge branch 'bugfix/KEY-1234-some-issue'**

in this case bamboo doesn't recognize issue. WHY?
Deploy web app to WebSphere server with Bamboo OnDemand
Asked by Vlad Ostrovsky:

What are my options to deploy a web application to an instance of Websphere on AWS, leveraging Bamboo OnDemand deployment project tasks? I found plugins for the downloaded version. However, I do not see anything that can help me in the case of OnDemand offering.


Answers:
author: LucasA
body: Hi Vlad,

Since Atlassian doesn't offer the needed plugin you can make use of a script task. If you can script the deployment, you can trigger it using Bamboo.

Cheers,

Lucas Lima

comments: author: Vlad Ostrovsky
body: Hi Lucas,

Thank you for your response. Talking about scripting. If I need to update server.xml, what would be the best way to do it in Bamboo?

Thank you,

Vlad


Tags: cloud
Some JIRA users can't access Bamboo
Asked by Farrukh Umarov:

For some reason some users getting access denied message on Bamboo main screen. I've compared them with the users who can access and don't see any difference . They are in same groups and have same access rules. I also tried add them to administrators - didn't help.

I found that some other people had similar issue on download version of bamboo where solution was reinstall it but I can't do anything like that on Ondemand version.

Maybe I'm missing somethign here?

Your help/suggestions will be appriciated.

Thanks


Answers:
author: cbenard1
body: Hi Farrukh,

Could you please visit the 'Application Access' tabe under 'User Management' in JIRA. From here you can see which users have been delegated access to which applications. Please verify the the users in question are allowed to access Bamboo.

If all the groups are the same and application access is fine please raise a support ticket at [support.atlassian.com](http://support.atlassian.com)so we can dig into the issue a bit further.

Thanks!

Turner


Tags: cloud
.NET Project Build in Bamboo
Asked by Andy Carlson:

We have a .NET project we have put onto Bamboo. We are attempting to build with **MSBuild v12.0 (64-bit) VS2013**. Here is an error we are getting after we pull the code from Git:

This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them.

We have verified NuGet package restore was run manually and the **.targets** folder has been put in Git.

Any thoughts? Thanks.


Answers:
author: Viktor Evdokimov
body: Did you resolve the issue? I switched msbuild task to visual studio task and was able to build solution.


Tags: bamboo-administration
TFS Repository TF400889: The following path contains more than the allowed 259 characters
Asked by Interne Informatik:

Hi  

W're evaluating Bamboo CI Server with TFS Repository (<https://marketplace.atlassian.com/plugins/com.stellarity.bamboo.tfs-repository-plugin#support>) Add-on  

Now we get this error while getting source:  
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.repository.RepositoryException: com.microsoft.tfs.core.exceptions.TECoreException: TF400889: The following path contains more than the allowed 259 characters: \*\*\*\*\*\*\*\* . Specify a shorter path.)  

Is there a possability to change max path length?  

Thanks a lot  

BR  
Stefano


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

This is a TFS API internal limitation. Also other tools may have troubles with handling such long paths.

Try to change Bamboo's working directory to a shorter one to reduce the total path length.


Tags: bamboo-administration
Production deploy button enablement gate
Asked by Alberto Mata:

I would like to know a way of disabling the Production stage "Deploy" button when a build is not approved. Approved button is selected in our group when a build is validated and determined to be a release candidate to production. This will enable the "Deploy" button for the projects Production stages after a user has approved the build. Is there a plugin or a method in the api for this?


Answers:
author: Alwin Mark
body: I also would like to know, how the supposed way is to protect production.

We have several Team Environments and also Integeration, Staging and PreProd. Yesterday we did a deployment to production by accident because we wanted to deploy to pre production.

Now we want to prevent that. The best way to do this, would be in our mine a four eyes principle, but at least the ability to be only able to deploy approved builds would be also great.

For now we will have a dedicated shared user, but than we loose the information who actually did the deployment.
Incorrect value for system.git.executable
Asked by James Youngman:

The value of system.git.executable is incorrect on my system. How do I edit this value?


Answers:
author: rsperafico
body: Hi James,

Please, have a look what is the Git path setup under:  
Bamboo administration \>\> Build Resources \>\> Server Capability.

Open up a terminal/Command Prompt and type in:

```
// on Linux/MacOSecho $GIT// on Windowsecho %GIT%
```

The command above should provide you the full path to your Git. In case the above result is empty, please, add Git to your environment variables and PATH and try to perform the Bamboo task once again.

Kind regards,  
Rafael


author: rsperafico
body: Hi James,

Thank you for your question.

In order to provide a better assistance, would be possible to inform what is the current Bamboo verison you are running, please?

Kind regards,  
Rafael

comments: author: James Youngman
body: Version is 5.4.2


author: James Youngman
body: |-----------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Error occurred while running Task 'Checkout Crossroads Repository(1)' of type com.atlassian.bamboo.plugins.vcs:task.vcs.checkout. |
| 11-Jun-2014 08:00:11                                                                                                              | java.lang.RuntimeException: com.atlassian.bamboo.plugins.git.GitCommandException: command C:\\Users\\engy.bamboo.svc\\AppData\\Local\\Atlassian\\SourceTree\\git_local\\bin version failed with code -1. Working directory was \[\\\]., stderr: |
New version of sonarsource/sonarqube-quality-gate:1.0.0
Asked by Benjamin D?anko:

I see there is a new update on <https://bitbucket.org/sonarsource/sonarqube-quality-gate/commits/> but not been released. I am getting an SSL error.


Answers:
author: Norbert C
body: Hi [@Benjamin D?anko](/t5/user/viewprofilepage/user-id/4813613)

Thank you for contacting Atlassian Community, my name is Norbert and I'm a Bitbucket Cloud Support Engineer, it's nice to meet with you! Welcome to the Atlassian Community!

I would like to inform you that this plugin is developed by Sonarsource, thus unfortunately it's not supported by us.

To get a support on this issue, can I ask you to reach out to Sonarsource support?

Please let us know how it goes.

Best Regards,  
Norbert  
Atlassian Bitbucket Cloud Support


Tags: bitbucket-cloud

cloud

sonarqube
Is Visual Studio 2015 still compatible with the latest access changes?
Asked by SupportoIt:

I use Visual Studio 2015 with the Visual Studio Bitbucket extension. I've read about the new login method, but can't logged in.

Help me, please


Answers:
author: Ben
body: G'day!

Welcome to the Bitbucket Cloud community.

Assuming you have read through our [documentation](https://community.atlassian.com/t5/Bitbucket-articles/Announcement-Bitbucket-Cloud-account-password-usage-for-Git-over/ba-p/1948231) related to the change and have successfully configured an [App Password](https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/) in Bitbucket Cloud, please try the following configuration:

GIT URL - <https://workspaceID@bitbucket.org/>

USERNAME - workspaceID

PASSWORD - AppPassword

This community answer highlights a similar issue for VS 2017/2019 using the Bitbucket extension, the same should apply for VS 2015:

<https://community.atlassian.com/t5/Bitbucket-questions/Bitbucket-extension-for-visual-studio-not-allowing-to-login/qaq-p/1200694>

Hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: SupportoIt
body: thanks, it works perfectly !!


Tags: bitbucket-cloud

cloud

visual-studio
I'm an unable to receive email notifications
Asked by Kirby Bryant:

<https://community.atlassian.com/t5/Bitbucket-questions/I-stopped-receiving-email-notifications/qaq-p/1478249?tempId=eyJvaWRjX2NvbnNlbnRfbGFuZ3VhZ2VfdmVyc2lvbiI6IjIuMCIsIm9pZGNfY29uc2VudF9ncmFudGVkX2F0IjoxNjQ3NDQzMDQyMDQ5fQ%3D%3D#M59965>

I believe I am on the bounce list again

<https://community.atlassian.com/t5/user/viewprofilepage/user-id/986290> [@Ang?lica Luz](/t5/user/viewprofilepage/user-id/986290) was previously removing them.


Answers:
author: Caroline R
body: Hi, Kirby, thank you for reaching out to Atlassian Community.

I checked our logs and confirmed that your email had a block on the server that prevented emails from being sent to you. So I removed your email from this suppression list.

Could you please confirm if you receive the notifications now?

Kind regards,  
Caroline

comments: author: Kirby Bryant
body: Yes, I am receiving emails again, thank you.


author: Caroline R
body: Hi, Kirby, thanks for your confirmation!


author: Kirby Bryant
body: Hi [@Caroline R](/t5/user/viewprofilepage/user-id/3934006) I believe I'm back on the bounce list. Could you remove me again?

Thanks


author: Caroline R
body: Hi, [@Kirby Bryant](/t5/user/viewprofilepage/user-id/2021920).

I reviewed your email and indeed it was in the suppression list with the following message:

```
550: 550 5.1.1 Requested action not taken: mailbox unavailable
```

I have removed the block from your address. Please let me know if you receive the emails now.

Kind regards,  
Caroline


author: Kirby Bryant
body: Hi [@Caroline R](/t5/user/viewprofilepage/user-id/3934006) I think I might be back on the list.

Thanks


author: Caroline R
body: Hi, [@Kirby Bryant](/t5/user/viewprofilepage/user-id/2021920),

I confirmed a bounce message was sent back to our email provider with a "Requested action not taken: mailbox unavailable" error. Once our email provider received the message, the email address was placed in a suppression list preventing any additional emails from being sent to the address.

I removed your email address from the list. Could you please confirm if you receive our emails now?  
Kind regards,  
Caroline


author: Kirby Bryant
body: [@Caroline R](/t5/user/viewprofilepage/user-id/3934006) I am receiving them now thank you!


Tags: bitbucket-cloud

cloud
Repository size exceeds limit
Asked by Wael Hanfi:

This repository is over the 2.0 GB limit and your contributors are not able to push new commits. To resolve this, reduce the repository size.Cant commit further. Can any please let me know How Can I reduce repository size ?? or any alternatives to reduce the size


Answers:
author: Theodora Boudale
body: Hi [@Wael Hanfi](/t5/user/viewprofilepage/user-id/4589885),

I checked in our system the workspaces that your Bitbucket Cloud account has access to, and the repos owned by these workspaces. I saw one repo over the 4 GB limit and I ran a git gc on it. Its size is 101.6 MB now.

Does this agree with the size of your local repo, if you run **git count-objects -Hv**?

The remote repo most likely had dangling commits (it could be from deleted branches or from rewriting history) and needed a git gc in order for its size to get reduced.

Users cannot trigger git gc on their remote repos at the moment, but we have a feature request about this in our issue tracker:

* <https://jira.atlassian.com/browse/BCLOUD-11593>

You can add your vote in that feature request by selecting the **Vote for this issue** link, and you can select the **Start watching this issue** link in the feature request if you'd like to get notified via email on updates.

Since the repo is owned by a workspace on a paid billing plan, if you ever come across this issue again, I would suggest creating a ticket with Bitbucket Cloud support team to ensure a faster response.

You can create a ticket via <https://support.atlassian.com/contact/>, in "What can we help you with" select "Technical issues and bugs" and then Bitbucket Cloud as product. In "What is the impact to your business?" please make sure to select **Level 1** if the repo is over the limit and you are blocked from working.

If you have any questions, please feel free to let me know.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud