youngmon/atlassian-qna huggingface dataset:
setting up database and server details
Asked by vidhya joshi:

Where do we provide the database details and the server details. will the api createBuild take the database details in the acl object? Appreciate if the complete source code is available for this.

buildManager.createBuild(build, **new** BuildConfiguration(), acl);  

<br />


Answers:
author: James Dumay
body: The object you should be using to create Plans is the [PlanCreationService](http://docs.atlassian.com/atlassian-bamboo/latest/com/atlassian/bamboo/build/creation/PlanCreationService.html). If you download the Bamboo source code from the website you should be able to see how this is used to create Plans. Currently the PlanCreationService is not marked as a @PublicApi, so it isn't really supported.
Getting error while running atlas-run for bamboo plugin
Asked by vidhya joshi:

2011-12-01 15:27:57 fatal bootstrap Could not load bootstrap from environment java.lang.IllegalStateException: Unable to bootstrap Bamboo: Failed to run pre-bootstrap upgrade tasks. Please contact Atlassian and <https://support.atlassian.com>

link that was followed was <https://developer.atlassian.com/display/BAMBOODEV/Bamboo+Developer+Documentation>

We are trying to automate the bamboo plan creation on the external server. I would like to know if there is a good documentation to follow.


Answers:
author: James Dumay
body: Hi Vidhya, I am not sure why you got that error. Could you copy the full log into [pastebin.com](http://pastebin.com) and post it here?

You [already asked on another question how to automate Plan creation](/questions/23194/complete-code-for-the-bamboo-plan-creation?page=1) which you did not respond to. Think you could follow up on that Answer instead?
Bamboo OnDemand integrates with the local Subversion repository
Asked by University of York:

Dear Support,

Ref:"Bamboo OnDemand integrates with the local Subversion repository" from <http://www.atlassian.com/software/bamboo/pricing>

I would like to know if Elastic Bamboo supports repositories hosted locally at a clients premises? Or by local do you mean on the hosted "locally" on the Cloud?

Thanks,

Nigel


Answers:
author: JohnA
body: Hi Nigel,

I can confirm that the only repositories that can be used with Bamboo OnDemand are those that are hosted in the cloud with the Bamboo server. Currently external repositories are not supported, but there are the Github and BitBucket Connectors which allow you to access remotely hosted repositories, (as long as they are hosted on one of the code hosting sites). However, it still isn't possible to point Basmboo, (or FishEye/Crucible OnDemand), at self-hosted repositories.

All the best,

John


Tags: svn
Bamboo email misuses multipart/alternative, html-formatting does not display in gmail
Asked by Brent Villalobos:

Bamboo automatically generates emails for build failures/successes. These emails use the multipart/alternative encoding in order to provide both plain-text and html-formatted versions of the same email content. However, the order of the parts is wrong -- bamboo puts the html part first and the plain-text part second. This causes gmail to display only the plain-text part even though it is capable of displaying the html-formatted email.

Bamboo is not properly conforming to RFC2046:

<http://www.ietf.org/rfc/rfc2046.txt>

{quote}

In general, user agents that compose multipart/alternative entities must place the body parts in increasing order of preference, that is, with the preferred format last. For fancy text, the sending user agent should put the plainest format first and the richest format last. Receiving user agents should pick and display the last format they are capable of displaying.

{quote}


Answers:
author: James Dumay
body: Thanks for reporting! Putting aside the RFC violation, Atlassian uses GMail for our company mail and we have no problems displaying Bamboo notification emails. We checked the code and it looks like we are putting plain text first then the html mime part.

What version of Bamboo are you using? It might be possible that this was the case for older Bamboo versions. Are you able to paste the raw contents of the email that isn't displaying correctly somewhere for us to look at?

comments: author: Brent Villalobos
body: I'm on Bamboo v3.2 build 2600 - 20 Jul 11.


author: David Roazen
body: We have the same problem -- Bamboo is putting the html part first and the text part second, causing only the text part to display in gmail. The odd thing is, the emails USED to display correctly as html, and then one day after an IT outage and subsequent server reboot they suddenly started displaying as text. This is with Bamboo 3.1.3 build 2415 - 16 Jun 2011.

The layout of the multipart Bamboo notification emails looks like this:

Content-Type: multipart/mixed; boundary="===============2871037132198455339=="  

--===============2871037132198455339==  
Content-Type: multipart/alternative;   
boundary="----=_Part_9_1002751765.1323454744228"  

------=_Part_9_1002751765.1323454744228  
Content-Type: text/plain; charset=UTF-8  
Content-Transfer-Encoding: 7bit  
Content-Disposition: inline

THIS SECTION IS EMPTY

<br />

------=_Part_9_1002751765.1323454744228  
Content-Type: text/html; charset=UTF-8  
Content-Transfer-Encoding: 7bit  

HTML VERSION OF EMAIL HERE  

------=_Part_9_1002751765.1323454744228  
Content-Type: text/plain; charset=us-ascii  
Content-Transfer-Encoding: 7bit  

TEXT VERSION OF EMAIL HERE  

------=_Part_9_1002751765.1323454744228--  
--===============2871037132198455339==  
Content-Type: text/plain; charset="us-ascii"  
MIME-Version: 1.0  
Content-Transfer-Encoding: 7bit  
Content-Disposition: inline  

TEXT FOOTER HERE  

--===============2871037132198455339==--
How do I fail the build if certain string appears in log
Asked by Charles:

I have a script task in one of my jobs that calls a command which doesn't return a proper error code when it fails. It does, however, log a message in the logs indicating the failure. What I'd like to do is define some keywords (regular expressions) that bamboo searches for in the build logs and fails the build if any are found.

I've had a look, but can't seem to find any features like this in Bamboo. Is it possible?


Answers:
author: Przemek Bruski
body: If you are using Linux, maybe you could enhance your script task - redirect your output to a file, grep it, cat it and return a result.

Another option would be to create a wrapper command that will return a proper exit code.

Finally. you could write a simple Bamboo task that launches your command (it's really easy!). [Tasks writing tutorial.](https://developer.atlassian.com/display/BAMBOODEV/Introduction+to+writing+Tasks)

If you decide to write a task, look at StringMatchingInterceptor and its usages to see how to match a string against log lines.

comments: author: Charles
body: Thanks for the suggestions. I ended up tee'ing the output to a file and using the return code of grep to deteremine success/failure.


author: PiotrA
body: Not out of the box. I've heard there are people with similar requirements and from what I recall they end writing up their own plugins. And in your situation (fail build when log message is encountered) I'd go the same way, by writing custom plugin.

I'd write postBuildAction plugin which would scan buildLogs for particular string after each job is completed - I'd base on <http://confluence.atlassian.com/display/BAMBOO030/Tutorial+1+-+Getting+Started+with+a+Simple+Post+Build+Labeller> .The "Simple Post Build Labeller" has similar functionality, it just labels the builds instead of failing them.

Not very easy solution, but doable if you have programming skills (and time).

comments: author: Charles
body: Thanks for the suggestions Piotr.


author: Charles
body: Thanks for the suggestions guys. I ended up tee'ing the output to a file and using the return code of grep to deteremine success/failure.
Bamboo compilation fails due to unmapple character set encoding UTF-8
Asked by Divya Arun:

We have configured a maven java project which creates a WAR on Bamboo.

When I generate WAR from Windows, it create WAR without any issues and build is successful.

On Linux, however, it fails compilation with an error message:

**unmappable character for encoding UTF8**

**What is missing for linux to support UTF-8 character set?**

**Also, in my pom I have included**

```
&lt;properties&gt;		&lt;project.build.sourceEncoding&gt;ISO-8859-1&lt;/project.build.sourceEncoding&gt;		&lt;gwtVersion&gt;2.1.0&lt;/gwtVersion&gt;		&lt;smartgwtVersion&gt;2.4&lt;/smartgwtVersion&gt;&lt;/properties&gt;
```

Can someone help? Should we include any command for maven while running on Bamboo?


Answers:
author: Divya Arun
body: Use \<encoding\> tag for maven-compiler-plugin and it will compile the special characters.


author: James Dumay
body: If you wish to set UTF-8 encoding in your Maven build you need to set the encoding to UTF-8 not ISO-8859-1 (Which is the "Latin 1" encoding).

For example:

|--------------------------------------------------------------------------------|
| `<project.build.sourceEncoding>`**UTF-8**`<``/project``.build.sourceEncoding>` |

comments: author: Divya Arun
body: Hi,

I used ISO-8859-1 for maven-compiler-plugin in the \<encoding\> tag and it worked fine. Thanks.


Tags: utf
Unable to get sonar report for branches
Asked by Deepak Cherukuri:

I am using bitbucket datacenter 7.15.0 and installed the plugin for sonar for bitbucket.

Installed sonarqube version 9.0 developer edition. I am able to scan multiple branches(master and dev) and able to see the report in Sonarqube UI for both branches.

But in Bitbucket UI i am able to see report only for master branch.

Whenever I tried to scan for the pullrequest from dev to other branch getting below error

No Sonar data found for project "AG_agentpak-com.nd:application_server:dev". Please wait for the build to be finished or check your build configuration and reload this page afterwards.

Can you please check and revert

![Sonarqubeui.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/158662i15FD549F8C294FED/image-size/large?v=v2&px=999 "Sonarqubeui.PNG")![Bitbucket master dashboard.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/158663iAC98C70D6F6BC147/image-size/large?v=v2&px=999 "Bitbucket master dashboard.PNG")![Bitbucket dev dashboard.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/158665iCE03075909DDFBE0/image-size/large?v=v2&px=999 "Bitbucket dev dashboard.PNG")


Answers:
author: Michael R?egg _Mibex Software_
body: Hi,

Have you enabled the option "use commercial branching and pull request support" in the repository settings of the app?

Best regards,

Michael (app vendor)


Tags: bitbucket-server

server
bitbucket????????commit,branch,pull request)???????
Asked by ????:

bitbucket?source tree????????????????????????????????????????

commit branch pull pullrequset????????????????????????

1???????????

![motonobitbucket.png](https://community.atlassian.com/t5/image/serverpage/image-id/158653i5A56070C3F47B6D8/image-size/large?v=v2&px=999 "motonobitbucket.png")

???????????

![my bitbucket.jpeg](https://community.atlassian.com/t5/image/serverpage/image-id/158654iAF89AC94A7161C17/image-size/large?v=v2&px=999 "my bitbucket.jpeg")

????????????????????????????????


Answers:
author: Rick Li
body: ?????????????????????????

??Bitbucket?????????????????

???????????????????

???????????


Tags: language-ja
Unlink Jira from Bitbucket
Asked by Farid Ahamat:

![Capture.PNG](/t5/image/serverpage/image-id/158651iB4E8379768C147F8/image-size/large?v=v2&px=999 "Capture.PNG")

<br />

On Bitbucket's left hand side, I can see there is two Jira site that is linked to my Bitbucket. How do I unlink one of them?


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

Please allow me to give some context first: both Jira Cloud and Bitbucket Cloud use Atlassian accounts (the ones for <https://id.atlassian.com/>) for authentication. This way we provide login to all Atlassian Cloud products with the same account.

The menu in your screenshot will show all Jira Cloud sites that your Atlassian account has access to, for easier navigation. I'm afraid that this menu cannot be configured manually by the user. If the account you are logged in to has access to a certain Jira Cloud site, then this site is going to show up in this menu.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Importing repository with API?
Asked by Steven Fuentes:

I'm looking to create a copy of an existing repository using the bitbucket api. I can do this in the gui using the "Import Repository" and create a new repository from an existing one, but don't see any method of doing this in the repository endpoint in the api. Is this possible?


Answers:
author: Theodora Boudale
body: Hi Steven and welcome to the community.

I'm afraid that we don't have an API endpoint for importing a repository.

We have a feature request for this in our issue tracker:

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

If you'd be interested in that, I would suggest adding your vote to that ticket (by selecting the **Vote for this issue** link) as the number of votes helps the development team and product managers better understand the demand for new features. You are more than welcome to leave any feedback, and you can also add yourself as a watcher (by selecting the **Start watching this issue** link) if you'd like to get notified via email on updates. Implementation of new features is done as per our policy [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) and any updates will be posted in the feature request.

In the meantime, one thing I can suggest as a workaround is the following:

- Create a new repository in Bitbucket with the following endpoint: <https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D#post>

- Take a mirror clone of the repo you want to import

- Push from that mirror clone to the newly created Bitbucket repo

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
I'm getting the error "We couldn?t log you in"
Asked by gumm29:

Hello, I have a account of Bitbucket but I'm getting the error "  

We couldn't log you in {#toc-hId--1236284644}
---------------------------------------------

You may run into this issue when you use specific browsers or add-ons that hide the referer header for id.atlassian.com and other Atlassian sites. Check for these and then try logging in again.

" but its not integrated with project of Jira and Confluence. I think it is the error of I had have an community Bitbucket accont in the same email.  
Help me.  
Thanks


Answers:
author: Kiran Patel
body: @[Theodora Boudale,](https://community.atlassian.com/t5/user/viewprofilepage/user-id/818086)I'm facing a similar problem, can you please help me with this?  

++My request:++ *<https://community.atlassian.com/t5/Bitbucket-questions/Unable-to-login-Bitbucket-We-couldn-t-log-you-in/qaq-p/2810570>*

comments: author: Theodora Boudale
body: Hi Kiran,

I'll reply to the question you created.

Kind regards,  
Theodora


author: dimro2008
body: I have the same problem!!! Resolve it please

comments: author: Theodora Boudale
body: Hi [@dimro2008](/t5/user/viewprofilepage/user-id/5123909) ,

I'll reply shortly to the new question you created here: <https://community.atlassian.com/t5/Bitbucket-questions/We-couldn-t-log-you-in-problem/qaq-p/2242551>

Kind regards,  
Theodora


author: Theodora Boudale
body: Hi [@gumm29](/t5/user/viewprofilepage/user-id/4540375),

I checked in our system and I saw that your Bitbucket Cloud account was marked as Spam by our spam filters, our apologies for the inconvenience caused by this.

I went ahead and removed the spam indication from your account, so you should be able to log in now.

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

Kind regards,  
Theodora

comments: author: gumm29
body: Hi [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) thank you for help.


author: Theodora Boudale
body: You are very welcome [@gumm29](/t5/user/viewprofilepage/user-id/4540375), please feel free to reach out if you ever need anything else.


Tags: bitbucket-cloud

cloud
Admin Access
Asked by Richard Cira:

I was removed by accident and can not access ADMIN settings how do I get reinstated as ADMIN/OWNER

443.249.3346 Office

rick.cira@authentiksystems.com


Answers:
author: Clark Everson
body: Hi Richard,

were you the only admin? If so you need to submit a support ticket at support.atlassian.com.

If not your other Admin should be able to add you back.

Best,

Clark


Tags: bitbucket-cloud

cloud
Reusing SSH key
Asked by Chris Butterworth:

After removing the SSH key from an old account which I plan on deleting, I can't use the same key with another account I have.

I know this is a security thing but with so many services tied to the same key I can't easily change it.

Any advice?


Answers:
author: Theodora Boudale
body: Hi Chris,

You should be able to use an SSH key in your Bitbucket Cloud account, as long as it is not used in another account, or in another repo as an Access key.

What kind of error do you see when you try to add the key to your other account?

In case this key was used as an Access key in a repo and you removed it from there, it's possible that it is used in other repo(s) as well.

Running the following command on the machine that has the private SSH key, will show you if the key pair is associated with another account or repo:

```
ssh -i ~/.ssh/id_rsa git@bitbucket.org
```

where *\~/.ssh/id_rsa* replace with the path and name of this private SSH key, if different.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Pipeline docker build fails but works locally
Asked by Alex White:

I have a docker image I want to build through pipelines. I ran some builds locally to remove any bugs and it all builds fine, but on the pipeline, it constantly throws an error trying to find the <http://dl.google.com/linux/chrome/deb> stable release file.

The docker file:  

```
FROM node:12

ENV NODE_PATH=/usr/local/lib/node_modules

RUN apt-get update 

RUN npm i npm@latest -g 

RUN wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | apt-key add - 

RUN sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' 

RUN apt-get update && apt-get install -y google-chrome-unstable

RUN npm install -g puppeteer karma karma-jasmine karma-chrome-launcher karma-coverage karma-ng-html2js-preprocessor karma-requirejs karma-cli
```

The pipeline error:

```
E: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/main/binary-amd64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
```

Any ideas why this doesn't run in the pipeline but does locally?


Answers:
author: Mark C
body: Hi [@Alex White](/t5/user/viewprofilepage/user-id/25443)

Thank you for reaching out to the community.

We've seen similar reports as well while downloading packages from **dl.google.com** on Pipelines.  
However, as per our team's findings, it appears to be related to the 3rd party resource DNS **dl.google.com** .  
And while they're investigating it suddenly resolved itself without changing anything on our end.

Would it be possible for you to confirm if you're still experiencing the issue as of today?

Regards,  
Mark C


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

docker
"You don't have access to this issue" for my own created Epic
Asked by Muhammad Farid Ahamat:

I'm an admin for both Jira and Bitbucket, and I have those two linked. I have created a new Epic from Jira in my project, and when I open Bitbucket, I can see the Epic but opening it gives me error "You don't have access to this issue".

I go to my Bitbucket project, go to my repository, create an Epic, again - I can see but can't open it.

What am I doing wrong? Where/how do I fix this?


Answers:
author: Ravi Sagar _Sparxsys_
body: Hi [@Muhammad Farid Ahamat](/t5/user/viewprofilepage/user-id/4540243)

Your usernames are same on both Jira and Bitbucket?

Ravi

comments: author: Muhammad Farid Ahamat
body: Yes, it's the same. Anyway, I've figured it out. The issue is because of this: <https://community.atlassian.com/t5/New-to-Jira-questions/Cannot-view-Jira-issues-from-BitBucket-though-I-am-sole-Site/qaq-p/1540312>  

I don't foresee this to be a problem for our team because no one is using Brave in the office. I was just using Brave as my daily driver at home, was evaluating software for our team.


author: Ravi Sagar _Sparxsys_
body: I use Brave as well. That's good to know. Thanks ?


author: Quinn
body: [@Muhammad Farid Ahamat](/t5/user/viewprofilepage/user-id/4540243)

Have to respectfully disagree this isn't an issue.

The reason Brave is blocking this request is due to the leaking of cross-site cookies required for login not specifically indicated in the content security policy from wordpress, segment analytics.

This is at best lazy coding with unintended side effects. At worst it's malicious actor behavior.


Tags: bitbucket-cloud

cloud
Not receiving invitation emails
Asked by olehh:

Hi.

I just started working with Bitbucket and faced with a problem. I can't receive an invitation email.

I've checked spam folder and all other folders and there is no mails from Bitbucket.

My email address is \<email_removed\>.

Thank you.


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

I see that one of the admins also opened a support ticket for this issue, your email was on a bounce list and the engineer working on the support ticket has removed it.

If you ask the administrator of the Bitbucket workspace/repo to resend the invitation, there should be no issues now. A new invitation needs to be sent, as the previous ones were dropped.

Just a heads up, I removed your email from your question to protect your privacy.

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

Kind regards,  
Theodora


Tags: bitbucket-cloud