youngmon/atlassian-qna huggingface dataset:
Prevent plans from running simultaneously
Asked by Charles:

I have two plans that use a shared resource, and which can't run simultaneously, even though there may be agents available to run them. Is there a way I can do this in Bamboo?


Answers:
author: Charles
body: I implemented a simple plugin to solve this problem a while back and have just gotten approval to open source it. Source and documentation can be found here: <https://github.com/ampedandwired/bamboo-mutex-plugin>.

This would still be better implemented within Bamboo core I think, but this plugin should do the job until [BAM-2423](https://jira.atlassian.com/browse/BAM-2423) is implemented.


author: Jobin Kuruvilla [Adaptavist]
body: I can think of a workaround. Configure both the plans to run on the same remote agent. Then only one plan can run at a time.

In order to restrict the plan to run on the same agent, add a custom capability to the agent with a unique key and then configure the plans to run only when the custom capability is present!

comments: author: James Dumay
body: Would the following Feature Request work? <https://jira.atlassian.com/browse/BAM-11447>


author: Charles
body: Thanks Jobin,

Using capabilities to run both plans on a single agent is not going to get the result I want, unfortunately. Each of the plans in question has numerous jobs that I \*want\* to be run in parallel across many agents (they are long running acceptance test jobs). It's just that I don't want jobs from the different plans intermingling.

I may look into writing a custom plugin for this if no other options.


author: Charles
body: Hi James, yep that pretty much sums it up - thanks!

In the meantime I'll look at doing it as a plugin.


author: James Dumay
body: Thats great. If you have any questions about plugin development, post them on Answers :)


author: Renjith Pillai
body: AFAIK sequencing is achieved based on agent availability. If you have multiple agents which can do the same work, I guess it will get started in parallel. Is it not possible that you have a single agent for this work so that it gets done in parallel? Use a custom capablity if needed so that the job looks for this specific agent for its work.

comments: author: Charles
body: Thanks Renjith. See my response to Jobin as to why I can't do this.


author: Renjith Pillai
body: Okie I understand. Will it be possible to pull out this particular job alone and make a new plan with this single agent? And trigger this new plan when the original one ends. <http://confluence.atlassian.com/display/BAMBOO40/Setting+up+plan+build+dependencies>
Supported postgres version for Bitbucket Server 7.6.0
Asked by Rohit Dalvi:

We are migrating our on-prem BitBucket Sever (version 6.10) to AWS Outposts. The challenge we have is AWS Outposts does not support postgres version lower than 12.7

And BitBucket 6.10 does not work well with postgres version 13.\*. If I upgrade the Bitbucket version to 7.6.0 would it work with postgres 12.7 ? since the support document has 9.5 - 12 as supported versions. So I am not sure if that 0.7 difference in postgres version will make any significant issues to BitBucket DB performance ?  

Please advice.


Answers:
author: Rohit Dalvi
body: For now I decided to just migrate the BitBucket server and point it to old DB. And then eventually update the BitBucket version and then migrate to supported version of Postgres.


Tags: bitbucket-server

migration-customer-care

postgres

server
Time per repository
Asked by Omar Geraldo:

Buenas tardes  
Como puedo ver que repositorio es mas utilizado en tiempo  
Tengo un plan con 3500 minutos si me paso como puedo visualizar que repositorio es el que mas tiempo consume


Answers:
author: Caroline R
body: Hi, [@Omar Geraldo](/t5/user/viewprofilepage/user-id/4558941)! Welcome to the community!

We have released **bitbucket-build-statistics** Pipe to collect the build statistics at the repository level. This has been announced in [Bitbucket Pipes digest: October 2020](https://community.atlassian.com/t5/Bitbucket-Pipelines-articles/Bitbucket-Pipes-digest-October-2020/ba-p/1508196) blog.

The Pipe is available [here](https://bitbucket.org/atlassian/bitbucket-build-statistics/src/master/) and with this Pipe, It is very easy to get the build statistics at the repository level. An example YAML file is below -

    script:  - pipe: atlassian/bitbucket-build-statistics:0.2.1    variables:      BITBUCKET_USERNAME: $BITBUCKET_USERNAME      BITBUCKET_APP_PASSWORD: $BITBUCKET_APP_PASSWORD

Please, feel free to share any additional questions regarding this subject.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
How do I make the test report scanner read reports from one path?
Asked by Dagoberto J_ Ortiz:

I have an issue were Maven/BitBucket are reporting 3 times the amount of tests results that I actually have. This is because the test report scanner is getting the information from several different directories. How can I configure the pipeline so only one report can be read by the Test Report Scanner?


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

The test report file scanner will begin searching from the base directory of your build /opt/atlassian/pipelines/agent/build and it will look for tests in any of these locations:

```
./**/surefire-reports/**/*.xml
./**/failsafe-reports/**/*.xml
./**/test-results/**/*.xml
./**/test-reports/**/*.xml
```

You can find more info on our documentation [here](https://support.atlassian.com/bitbucket-cloud/docs/test-reporting-in-pipelines/).

I'm afraid that it is not possible to specify one path where the tests are being read from and exclude some of the above locations.

If you have test reports in the locations above that you don't want to be taken into account, is it possible to move them to a directory outside of these locations?

We have a feature request for what you're asking in our issue tracker:

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

You can leave a comment with your use case in that feature request for our development team to take into account.

Kind regards,  
Theodora

comments: author: Dagoberto J_ Ortiz
body: Hi Theodora!

I appreciate your answer. Can you tell me how I can move these reports out of these locations so I can just have the one source?


author: Theodora Boudale
body: Hi Dagoberto,

I'm afraid I'm not very familiar with Maven, so I don't know if and how that would be possible.

Are these reports generated by Maven during the build? You mentioned that you see 3 times the amount of test results you have. I assume then that there are 3 XML files generated for the same tests?

If that's the case, then I believe the direction to look into would be a) if this expected behavior for Maven and if all these 3 reports are needed b) if there is a way to configure Maven to generate only one, or generate some of the reports in a different location.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

maven

selenium

surefire
can I contact users through bitbucket
Asked by Joel Sciandra:

We have a disconnect between a user and bitbucket. Can I as admin look at his profile or even send an email to his email that was registered with bitbucket?


Answers:
author: Caroline R
body: Hi, [@Joel Sciandra](/t5/user/viewprofilepage/user-id/2961956)!

Thank you for reaching out to Atlassian Community!

Before I start, I'd like to confirm that I've understood properly what is happening on your side. Feel free to correct me in case I have misunderstood something here.

Apparently, you need to contact a user who is under your workspace, so you need a way to communicate with them, is that correct?

If that's the case, if this user is **under an organization** and you are the **org admin** , you can open [admin.atlassian.com](http://admin.atlassian.com/), select **Directory** \> **Managed accounts** to view all the managed accounts of your organization. From the **Managed accounts** page, you can search accounts by name and email address.

If this user **is not under an organization or you are not the org admin**, but you are the admin of the workspace this user is a member of, you still have a way to see their email. If the user is under a group in your workspace, you can follow the next steps to find their email and contact them:

* Open the workspace \> Go to **Settings;**

* **User groups** \> Open the group this user is part of;

* Under their name, you should be able to see their email.

I hope this helps, but if that's not the case, please give me more details about this situation, so I can further assist you.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
How to get access to my previous account?
Asked by Peter J. Kootsookos:

I used to have access to a bitbucket repository.

I can still push and pull from it via SSH keys, however now the email associated with the account is defunct, so when I try to access it from the web... I can't receive the confirmation email.

Any idea how to fix this and update the email address?


Answers:
author: Caroline R
body: Hi, [@Peter J. Kootsookos](/t5/user/viewprofilepage/user-id/538329)!

Thank you for reaching out to Atlassian Community!

I can see you opened a ticket with our support related to the same question, and I confirmed that the email you informed us that you no longer have access to is an alias on this Bitbucket account, so log in with this email won't work anyway.

The primary email on this account is another one, so I would ask you to try to log in with other emails you have, and in case you can't remember this address, I can give you the domain of the primary email masked (with asterisks), which could give you a hint.

Please don't hesitate to ask for any further information if needed.

Kind regards,  
Caroline

comments: author: Peter J. Kootsookos
body: The primary email should be \<email removed for privacy reasons\>. The company is no longer in existence, so the email doesn't work. Sure, let me know which other accounts are associated with that account!


author: Caroline R
body: Hi, Peter!

The domain of the primary email is:

@\*\*us\*-te\*\*.com

Please try to log in using this email and let me know if you have any questions.

Kind regards,  
Caroline


author: Peter J. Kootsookos
body: Unfortunately, I have lost access to that email address too. \<email removed for privacy reasons\>


author: Caroline R
body: Hi, Peter.

If you are unable to regain access to the primary email of the account, our suggestion would be to create a new Bitbucket account with an email you have access to and recreate the repos of the other account using a local clone.

For security reasons, we cannot make any email changes to a Bitbucket account from our side. The only way to change the Bitbucket account's email would be to regain access to its primary email and then perform the email change via <https://id.atlassian.com/manage-profile/email>".

Kind regards,  
Caroline


author: Peter J. Kootsookos
body: Yes, I figured as much.

I've done, that, but I've recreated it on GitHub, and won't be back if I can avoid it.


Tags: account

bitbucket-cloud

cloud
PR merge triggers
Asked by romank2391:

Once I merged PR I get email notification about it, can it be turned off?


Answers:
author: Caroline R
body: Hi, [@romank2391](/t5/user/viewprofilepage/user-id/2126892)!

Thank you for reaching out to Atlassian Community!

I checked the reported behavior with our dev team and they confirmed that this is a new behavior that our product will have. From now on, all actions, including the ones that the author himself/herself performs, will be notified. We understand that it may not be optimal and for that reason we have already raised a feature request asking for the ability to opt-out this new feature:

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

I would suggest that you add your vote there (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.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
Browsing documentation for BitBucket and related integrations
Asked by Tarek Faham:

I need to make sure I am accessing the proper documentation for BitBucket, Jira, and vs code integrations.

We use On-premise (Data Server) installation, and when I am looking for help say about VS Code Extension for Jira and BitBucket, the web page indicates it is for Cloud instance. When I try to look for the Data Server instance documentation, I get a message indicating that the web page is not found for that particular topic.

I need to know if there are any differences in using the product between the Data Server and Cloud? If I find the topic I am looking for under the cloud section, is that enough?

For example, I was trying to look for connecting BitBucket with Jira for a given code repo, I only found the one related to the cloud instance. Is there one related to the Data Server Instance? How I can find it?

How I am 100% sure if the topic I am viewing on documentation is valid for both cloud and data server instances?

Tarek


Answers:
author: Tarek Faham
body: I was able to connect VS Code with Bitbucket and Jira. All the 3 products can now talk to each other. This was possible only after upgrading Jira and Bitbucket to the latest version.

Maybe if there is an article that talks about such integration and what are the minimum requirements, that would be great. I didn't find such an article.


author: Ulrich Kuhnhardt _IzymesCo_
body: Most of the documentation has a switch to toggle between Cloud and Server/DC on the page.

For example on <https://support.atlassian.com/bitbucket-cloud/docs/jira-issues-in-vs-code/>

the cloud version is pre-selected (1)

Once you select the server version from the dropdown (2) you will see the server relevance document.

![cloud server docs.png](https://community.atlassian.com/t5/image/serverpage/image-id/162757i8993ABD4CDEAF4BA/image-size/large?v=v2&px=999 "cloud server docs.png")

comments: author: Tarek Faham
body: That didn't work for me. When I select the Data Server, I get page not found prompt.


Tags: bitbucket-server

integration

jira

server

vscode
how to git push and pull submodules with sourcetree ssh netlify
Asked by luismendes070:

**Git Bash** {#toc-hId--1214861907}
-----------------------------------

git pull  
fatal: refusing to merge unrelated histories

**Sourcetree** {#toc-hId-1272650926}
------------------------------------

git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks push -v --tags origin master:master  
Pushing to <https://bitbucket.org/poligonosapp/mongodb-with-starlette.git>  
To <https://bitbucket.org/poligonosapp/mongodb-with-starlette.git>  
! \[rejected\] master -\> master (non-fast-forward)

<br />

error: failed to push some refs to '<https://bitbucket.org/poligonosapp/mongodb-with-starlette.git>'  
hint: Updates were rejected because the tip of your current branch is behind  
hint: its remote counterpart. Integrate the remote changes (e.g.  
hint: 'git pull ...') before pushing again.  
hint: See the 'Note about fast-forwards' in 'git push --help' for details.


Answers:
author: Nic Brough -Adaptavist-
body: This is not a Sourcetree or even Bitbucket issue, it's a git problem because you've got a local repository and a remote repository that are out-of-step and do not look like they are the same source code.

Have a look at the docs the error messages refer you to, they should help you sort out the mismatch.


Tags: git

jwt
Where can I found my bill history?
Asked by Pinga Lau:

Where can I found my bill history?  
I have to print out the bill details but I can't found it.


Answers:
author: Theodora Boudale
body: Hi [@Pinga Lau](/t5/user/viewprofilepage/user-id/2062951),

Invoices can be viewed at <https://my.atlassian.com/>, specifically on this page <https://my.atlassian.com/billing/paidorders>, for users who are technical or billing contact for the Bitbucket license.

If you are not a billing or technical contact for the Bitbucket workspace in my.atlassian.com, you can do either of the following:  
- If you know who the billing and technical contact is, you can ask them to add you as well by following the instructions below, for the question "How do I update the billing and technical contacts for my Atlassian products": <https://www.atlassian.com/licensing/purchase-licensing#manage-account>

- If you are an admin of the workspace in Bitbucket Cloud, you can create a ticket with our customer advocate team, and (a) request the invoices (b) ask that they add you as a billing and technical contact for this license. You can create a ticket via <https://support.atlassian.com/contact/#/>, in "What can we help you with" select "Billing, payments, and pricing" and then "Finding invoices". Please make sure to provide the URL of the Bitbucket workspace you're looking invoices for, so they can help you faster.

Kind regards,  
Theodora

comments: author: Pinga Lau
body: Thank you very much, I am trying to apply ticket.


author: Ajay _view26_
body: Hi [@Pinga Lau](/t5/user/viewprofilepage/user-id/2062951)

Bitbucket billing is per workspace

The billing can be accessed via the link - <https://bitbucket.org/>\<workspace-name\>/workspace/settings/plans-and-billing

Cheers

Ajay

comments: author: Pinga Lau
body: Yes, but it show the current month only... I would like to check the bill history.


Tags: bitbucket-cloud

cloud
git clone getting failed run from dbt
Asked by Mischal:

An overview on the jobs which are running on dbt. we have dbt models run from dbt cloud and the models are pulled from bitbucket repository and executed, but recently we are noticing issues while dbt jobs invocation and the message as follows.

"Failed to clone repository.  
git clone \<repo_url\> /tmp/jobs/29399885/target  
Cloning into '/tmp/jobs/29399885/target'...  
Warning: Permanently added 'bitbucket.org,18.205.93.1' (RSA) to the list of known hosts.  
error: index-pack died of signal 9  
fatal: index-pack failed"

So on multiple retry the job gets executed. without any issue with the clone. would like to know if this is something related to storage issue or memory issue. on checking the repository properties on bitbucket.org, i was unable to see any properties related to memory. only property i could see is the repo storage.

Kindly suggest how to resolve this issue.


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

I've seen issues with the same error reported before, and the culprit in most cases was the memory on the client machine performing the clone. Some users have resolved it by adding more memory to their machine. If a repo has large files, this can also contribute to the issue, for other users the issue was resolved by removing large files from Git history:

* <https://support.atlassian.com/bitbucket-cloud/docs/maintain-a-git-repository/>

If your repo has large files and you decide to remove them from Git history, we'll need to run a git gc on the remote after you push your changes. You can either leave a comment here to request that or open a ticket with the support team via <https://support.atlassian.com/contact/#/>.

Just a heads up, I removed the URL of your repo from your post to protect your privacy.

Kind regards,  
Theodora


Tags: bitbucket-cloud

clone

git
Host Key algorithm
Asked by joel.kuepper:

Hi team,

with the latest update of Openssh 8.8/8.8p1 they diabled ssh-rsa as the Host Key algorithm because of security concerns, see 'potentially-incompatible changes' in <http://www.openssh.com/releasenotes.html>

So using this up-to-date version, I am no longer able to access bitbucket.org

using \`ssh git@bitbucket.org\`, fails with

\`Unable to negotiate with 104.192.141.1 port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss\`

explicitly enabling that legacy SHA1 algorithm with \`ssh -oHostKeyAlgorithms=+ssh-rsa git@bitbucket.org\` I can connect.

Is there any information on if / when bitbucket.org will support up-to-date algorithms for verifying the Host?

Or am I completely wrong and need to change my client?

Best!


Answers:
author: joel.kuepper
body: Dupliacte. See this [related question.](https://community.atlassian.com/t5/Bitbucket-questions/OpenSSH-8-7-and-ssh-rsa-host-key/qaq-p/1799373)

comments: author: joel.kuepper
body: Solved now. You can remove the +ssh-rsa entry from the config file


author: Syafiq Steven Lee
body: Just changes it


author: Theodora Boudale
body: Hi Joel,

I've replied to the other community question you linked, I'm also posting it here for anyone who comes across your question for easier reference.

We have published a community article with more info on this issue:

* <https://community.atlassian.com/t5/Bitbucket-articles/OpenSSH-8-8-client-incompatibility-and-workaround/ba-p/1826047>

Our team is working on adding the updated signature support to our SSH server, we will provide another update once these changes have been implemented. If you'd like to get notified of updates, you can add yourself as a watcher either to the community article or to the following ticket in our issue tracker:

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

ssh
Unable to input deployment key
Asked by Atwell Parry:

I am trying to push to a cpanel and I need to input a deployment key. According to [this article](https://confluence.atlassian.com/bitbucketserver/ssh-access-keys-for-system-use-776639781.html#:~:text=Add%20an%20SSH%20access%20key,and%20paste%20it%20into%20Bitbucket.&text=Now%2C%20in%20Bitbucket%2C%20go%20to,keys%20and%20then%20Add%20key.) I should be able to just select the "Read/Write" option for the key, but I don't have that option. I'm smacking my head against the wall at this point, please help!


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

Access keys in Bitbucket Cloud provide read-only access to a repository:

* <https://support.atlassian.com/bitbucket-cloud/docs/add-access-keys/>

The documentation you linked is for Bitbucket Server and I'm afraid that it is not applicable for Bitbucket Cloud.

What you can do alternatively:

- Use an SSH key pair that is associated with your Bitbucket Cloud account or another account that has at least write access to this repo

- If you have the option to use HTTPS, you can generate an app password for your account and then use username+app password for authentication:

<https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/>

- You can also generate an SSH key pair and upload the public key to the SSH keys of the workspace that owns this repo. This can be done from the workspace's **Settings** \> **SSH keys**. This way authentication is not tied to a user, but to the workspace.

We advise using that option with caution though because we are unable to track the operations performed by these SSH keys back to a user (since the SSH keys are associated with the workspace).

I hope this helps, if you have any questions, please feel free to let me know.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

key