youngmon/atlassian-qna huggingface dataset:
Adding Trello To our company
Asked by Stan James:

Hello

I was looking to add Trello to our company and utilize the Trello product. Is there someone I can speak to answer a few questions before I convert over?


Answers:
author: Artemis
body: Hi [@Stan James](/t5/user/viewprofilepage/user-id/4846705), welcome! Feel free to post your questions here and we'll help.
Unable to receive my bitbucket password reset recovery email
Asked by Keshav.Prasad:

I am in the process of resetting my bitbucket account password but unable to receive my password reset recovery email to my email id (keshav.prasad@ucareqld.com.au)


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

I can see that your company uses SSO for login to Atlassian Cloud products, which is why password recovery for the Atlassian/Bitbucket account will not work.

You will need to log in to Bitbucket with your SSO credentials. If you don't remember the password, you can check the options of your SSO log in page, to see if there is an option to reset its password and recover access to your account.

In case you needed a password for purposes of cloning/pushing/pulling via HTTPS, the account's password will not work since you use SSO. You can generate an app password and use that instead:

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

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Should we still use BitBucket Server
Asked by Brando:

Hello,

My team and I currently use BitBucket Server (stash) to host our source code. I want to integrate more automation into our software development. I see that BitBucket Cloud has their own CI software (pipelines) that come with the product. But I also see that BitBucket Server v7.10 can incorporate Builds via Jenkins and Bamboo integration. Knowing that BitBucket Server is approaching End Of Support, I am wondering if it is a safer bet to migrate to Cloud than to purchase Jenkins and stay on the server software.

Best,

Brando


Answers:
author: Hana Ku?erov?
body: Hi [@Brando](/t5/user/viewprofilepage/user-id/4251522) ,

welcome to the Atlassian Community!

It really depends on many factors...

Yes, there will be no Bitbucket server in the future (are you aware that there is also DC version?), but there's still a lot of time to think about it.

You should definitely invest to the analysis, discuss this with your team and compare all the possibilities:

* Which are the functionalities you really need? Are there any functionalities you are missing now?
* Which possibilities are suitable in your situation?
* If you decide to migrate, how much work it will take? When do you want to do it? Do you have time/resources for it?
* How much money can you invest in this solution?
* ...


Tags: bitbucket-cloud

bitbucket-server

jenkins

migration-customer-care

server
Implicit tagging happening on an old commit and the tag name is same as the branch name
Asked by Ankit Gupta:

Implicit tagging happening on an old commit and the tag name is same as the branch name.

Recently we have observed that one of the old commit is getting tagged exactly with the same branch name that causes bit bucket conflicts and does not allow the us to push any code. We are struggling to figure out how these tags are getting generated as these are not being done by any of the developers. We use jenkins for deployment.

Any help will be deeply appreciated.


Answers:
author: Theodora Boudale
body: Hi [@Ankit Gupta](/t5/user/viewprofilepage/user-id/1974561) ,

Do you see this tag in the remote Bitbucket repo? Or in a clone of this repo elsewhere?

One possibility is that this tag in this old commit exists in one of the developers' local clone of this repo, and then gets pushed to the Bitbucket repo.

My suggestion would be to ask the developers working on this repo to check the tags in their local clone

```
git tag
```

This will list all tags that their local clone has, and they can check whether this specific tag exists.

If it does, they can remove it with the command

```
git tag -d name-of-the-tag
```

to avoid pushing it back to the repo.

Kind regards,  
Theodora
How to resolve issue of "You can use git or hg to connect to Bitbucket. Shell access is disabled"
Asked by albogast kiyogoma:

I have set SSH Key for by Bitbucket account but still I can't Clone my repo, i'm using

**Ubuntu 20.04.1 LTS**

```
 Where i run ssh -v git@bitbucket.org
```

**debug1: Host 'bitbucket.org' is known and matches the RSA host key.**

**You can use git or hg to connect to Bitbucket. Shell access is disabled**

```
git clone git@bitbucket.org:myAccount/<repo_name>.git
```

git@bitbucket.org: Permission denied (publickey).  
fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.


Answers:
author: Theodora Boudale
body: Hi [@albogast kiyogoma](/t5/user/viewprofilepage/user-id/3641773) ,

Could you please run the following command and share the output here? (You may remove the workspace id and repo name from the output)

```
GIT_SSH_COMMAND="ssh -vvv" git clone git@bitbucket.org:<workspace-id>/<repo_name>.git
```

There are many possible reasons for this error, and this command will give more verbose output and very possibly an indication of what may be going wrong.

A few more questions:

* Do you have multiple SSH keys in the .ssh directory of the machine where you are trying to clone?
* Is there a file named *config* in the .ssh directory, and if so, do you have any configuration in there for bitbucket.org?

Kind regards,  
Theodora

comments: author: albogast kiyogoma
body: Hello Theodora,

Thanks for your help. I was faced with multiple SSH keys in the .ssh.

Now I worked.


author: Theodora Boudale
body: Good to hear, thank you for the update!


Tags: bitbucket-cloud

git

server

ssh

ubuntu
Crowd sso not working with bitbucket server
Asked by Christian Lox:

Hi.  
We authenticate against a crowd server (on-premise); everything is working fine for Jira, Confluence and Bamboo.  
But Bitbucket wont work. (All applications behind Apache proxy).  

We followed the documentation and double checked everything.  

What makes me wonder is that all the working applications are using the crowd.properties file but bitbucket not. Is it really sufficient to just enable the auth-crowd plugin?  
Where should the application name, password and crowd URL be configured?  

Thanks for any hint,  
Christian  

<br />


Answers:
author: Charlie Misonne
body: A crowd.properties file should not be necessary indeed.

Having *plugin.auth-crowd.sso.enabled=true* in your bitbucket.properties file should be sufficient.

Something else must be wrong:

1. Does the sync with Crowd work?
2. Have you configured the reverse proxy settings in the bitbucket.properties file?
3. Are all the tools on the same domain? And did you configure the SSO domain in Crowd?


Tags: bitbucket-server

crowd

server

sso
I'd like to put in a restriction on Bitbucket which will prevent Merge PR if pipeline is red (failed
Asked by Zeynep Nur Guler:

Hello,

any suggestions are welcome :)

Thank you!


Answers:
author: Tyler T
body: Take a look at **merge checks**

<https://support.atlassian.com/bitbucket-cloud/docs/suggest-or-require-checks-before-a-merge/>


Tags: bitbucket-cloud

cloud
Has the hard limit on Bitbucket repo size increased from 2 to 4 Gb?
Asked by Philippe Abiven:

Has the hard limit on repository size from 2 to 4 Gb? I am finding contradictory information here (<https://support.atlassian.com/bitbucket-cloud/docs/reduce-repository-size/>) and here (<https://bitbucket.org/blog/repository-size-limits> and <https://support.atlassian.com/bitbucket-cloud/docs/what-kind-of-limits-do-you-have-on-repositoryfile-size/>).

I am working on a repo that is slightly under 2 Gb and we used to have a size warning on the side of the Bitbucket web page, but it seems to have disappeared.


Answers:
author: Gary
body: Hi [@Philippe Abiven](/t5/user/viewprofilepage/user-id/4251208)

We have temporarily increased the size for specific repos that are near, or over the 2GB limit to unblock users while we are looking for a more suitable long term solution.

We also adjusted when the warning messages trigger for these specific repos.

Thank you,

Gary


Tags: bitbucket-cloud

cloud
Trying to run pipe atlassian/aws-eks-kubectl-run
Asked by shailab:

```
      - step: &deployment-status
          name: "Deployment status to k8s"
          script:
            - pipe: atlassian/aws-eks-kubectl-run:1.1.1
              variables:
                AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}
                AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}
                AWS_DEFAULT_REGION: ${AWS_DEFAULT_REGION}
                CLUSTER_NAME: ${CLUSTER_NAME}
                KUBECTL_COMMAND: "rollout"
                KUBECTL_ARGS: 'status deployments/${APP_NAME} --namespace=${BITBUCKET_BRANCH} --timeout=120s'
                DEBUG: "true"
```

When i am trying to check the deployment status i am getting the following error  

```
`? Successfully updated the kube config.``Manage the rollout of a resource.``  `` Valid resource types include:``  *  deployments``  *  daemonsets``F0204 13:46:26.751629       9 helpers.go:114] ``  *  statefulsets``Examples:``  # Rollback to the previous deployment``  kubectl rollout undo deployment/abc``  ``  # Check the rollout status of a daemonset``  kubectl rollout status daemonset/foo``Available Commands:``  history     View rollout history``  pause       Mark the provided resource as paused``  restart     Restart a resource``  resume      Resume a paused resource``  status      Show the status of the rollout``  undo        Undo a previous rollout``Usage:``  kubectl rollout SUBCOMMAND [options]``Use "kubectl <command> --help" for more information about a given command.``Use "kubectl options" for a list of global command-line options (applies to all commands).`
```


Answers:
author: Halyna Berezovska
body: [@shailab](/t5/user/viewprofilepage/user-id/4250935) I see that --namespace and timeout are common args for kubectl, not for the status.

You can move them to the beginning of the KUBECTL_ARGS

Regards, Galyna


Tags: aws

bitbucket-pipelines

cloud

kubernetes
Code Insights REST API for configuring the requirements
Asked by Radek Antoniuk:

There is the [Code Insights](https://confluence.atlassian.com/bitbucketserver/code-insights-966660485.html) functionality provided by BitBucket Server and we are using this together with SonarQube integration to provide feedback from the CI pipeline and have a quality gate as the screenshot below shows:

![Screenshot 2021-02-04 at 13.43.51.png](/t5/image/serverpage/image-id/128855i69BB0AA57E5EDCC1/image-size/large?v=v2&px=999 "Screenshot 2021-02-04 at 13.43.51.png")

Now, this is configurable via the UI, but as we are managing a large number of repositories/project, we'd like to keep this configuration in the code and manage it via the API.

However, looking at the REST API for [Code Insights](https://docs.atlassian.com/bitbucket-server/rest/7.10.0/bitbucket-code-insights-rest.html) and for [Repository Management](https://docs.atlassian.com/bitbucket-server/rest/7.10.0/bitbucket-rest.html), it seems that BitBucket does not expose a way to manage the Code Insights Requirements settings via API.

Is that possible or would it make sense to add this to the roadmap?


Answers:
author: Adam
body: I couldn't find any documentation on this either, but the web interface is using the REST API as well.

From the browsers dev console the API endpoint for repositories seems to be:

<https://bitbucket.company.com/rest/insights/latest/projects/PROJECT/repos/REPO/merge-check/KEY>

PUT/GET/DELETE calls are supported. For PUT the following json payload can be used

```
{
 "reportKey":"KEY",
 "mustPass":true, // true/false
 "minProhibitedSeverity":"LOW" // LOW/MEDIUM/HIGH or omit this key
}
```

For project-wide configuration:

<https://bitbucket.company.com/rest/insights/latest/projects/PROJECT/merge-check/KEY>

comments: author: Radek Antoniuk
body: DevConsole always to the rescue! Simplest solution always works, thanks for this!


author: Radek Antoniuk
body: Just to bump the visibility - any hints?


author: Radek Antoniuk
body: Found some documentation [here.](https://developer.atlassian.com/server/bitbucket/how-tos/code-insights/) In the \[API\](<https://docs.atlassian.com/bitbucket-server/rest/7.21.0/bitbucket-code-insights-rest.html#idm45774552126944>) we can see the API to _add_ the reports:

[http://example.com/rest/insights/1.0/projects/{projectKey}/repos/{repositorySlug}/commits/{commitId}](https://docs.atlassian.com/bitbucket-server/rest/7.21.0/bitbucket-code-insights-rest.html#idp1)

but there is no API to configure required reports... ?


Tags: bitbucket-server

insight

server
possible to globally manage 'link to a webservice' for all repositories?
Asked by bede:

re: <https://support.atlassian.com/bitbucket-cloud/docs/link-to-a-web-service/>

for some reason (likely caused by a JIRA prod dump being installed on a test/accept server without disabling the linked apps), all our repos have 2 links to JIRA servers defined: the top link points to our test/accept environment, below it is the link to our production instance defined.   

![2021-02-04 12_15_49.png](/t5/image/serverpage/image-id/128841i897F6304F9AEA276/image-size/large?v=v2&px=999 "2021-02-04 12_15_49.png")

Consequence is that the issue key nav actions now point to the wrong JIRA instance.

Any way possible to manage these in bulk? Removing the wrong link works on a per repo basis, but we got a few too many to remain efficient.

TIA,

Ben


Answers:
author: Theodora Boudale
body: Hi Ben,

These links are removed automatically for JIRA Cloud instances, when the integration is removed.

I see that the first two links in the screenshot are for JIRA server instances, and I don't believe that it is possible for users to bulk-remove them in this case.

I have reached out to the development team and asked whether it is possible for us to remove them from our side for a workspace, I will let you know as soon as I have an update.

Kind regards,  
Theodora

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

I have confirmed that we can help with bulk-removal of these links.

I have opened a support ticket for you with Bitbucket Cloud support team for this issue, and they'll provide assistance. You should have received an email in your inbox with the link to the ticket (if not, please feel free to let me know). The support ticket is visible only to you and Atlassian staff.

I would like to ask if you can leave a comment in the support ticket, and mention which workspace this is about.

I can see your details in our system and which workspaces you have access to, but we'll need confirmation on the workspace ID, to avoid removing links from the wrong workspace.

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

Kind regards,  
Theodora


author: bede
body: Thanks Theodora, I'm responding on the BBS-XXX issue as requested.

Ben


Tags: bitbucket-cloud

cloud

jira
how can we set Pull Request Tasks on bitbucket project
Asked by Yashasvi Pandya:

how can we set Pull Request Tasks on the bitbucket project. when we close any PR those custom tasks should be checked. after task complete we can merged PR


Answers:
author: Tyler T
body: What is your question?

Here is some documentation about pull requests: <https://support.atlassian.com/bitbucket-cloud/docs/create-a-pull-request/>
> Create Tasks for things that must be addressed for approval to help designate between suggestions and discussions and things that must be fixed.


Tags: bitbucket-cloud

cloud
What is the correct 'LABELS' syntax in atlassian/aws-eks-kubectl-run pipe?
Asked by Saurabh Singh:

What is the right way to add a 'LABELS' array with more than one entry in <https://bitbucket.org/atlassian/aws-eks-kubectl-run/src/master/> pipe?

It fails with the following syntax:

---  
LABELS:  
- "{'bitbucket.org/bitbucket_tag':\\"$BITBUCKET_TAG\\"}"  
- "{'bitbucket.org/bitbucket_build_number':\\"$BITBUCKET_BUILD_NUMBER\\"}"  
- "{'bitbucket.org/bitbucket_commit':\\"$BITBUCKET_COMMIT\\"}"  
---


Answers:
author: Oleksandr Kyrdan
body: Hi [@Saurabh Singh](/t5/user/viewprofilepage/user-id/2387177) [@Brad Vrabete](/t5/user/viewprofilepage/user-id/4061397)

Thank you for your question!

Yep, there was a bug in the pipe with LABELS array and now it is fixed.

A new version of the [aws-eks-kubectl-run pipe](https://bitbucket.org/atlassian/aws-eks-kubectl-run) released:

```
script:  - pipe: atlassian/aws-eks-kubectl-run:1.4.1    variables:      AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID      AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY      AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION      CLUSTER_NAME: 'my-kube-cluster'      KUBECTL_COMMAND: 'apply'      RESOURCE_PATH: 'nginx.yml'      LABELS:        - 'environment=production'        - 'tier=backend'
```

> LABELS:  
> Key=value pairs that are attached to a Deployment. Labels are intended to be used to specify identifying attributes of objects. Valid labels must follow [Syntax and character set](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#syntax-and-character-set). Format: `key=value`. Example: `bitbucket.org/bitbucket_branch=develop`.

<br />

It would be nice if you provide us with more details about your experience with the [aws-eks-kubectl-run pipe.](https://bitbucket.org/atlassian/aws-eks-kubectl-run)

Cheers,  
Oleksandr

comments: author: Brad Vrabete
body: [@Oleksandr Kyrdan](/t5/user/viewprofilepage/user-id/2885705) Indeed that change solves the issue; I was able to successfully add labels in the way you have described.


author: Brad Vrabete
body: The syntax   

- "'bitbucket.org/bitbucket_tag'="$BITBUCKET_TAG\\"" does not work either  

What is the correct syntax for adding custom labels for this pipe?


Tags: aws

bitbucket-pipelines

cloud

kubernetes
I imported a project to Bitbucket from Azure DevOps, how can I automate the changes made in ADO.
Asked by Osvaldo Guerra Lopez:

I imported my repo from Azure DevOps to Bitbucket. If I make changes to my ADO repo, the changes will not be reflected in Bitbucket. How can I automate these changes?

I figured that if I made the same import I could have this done, but now I would have 'n' repositories in Bitbucket and I would need to be erasing. Is there an easier way to do this?


Answers:
author: Theodora Boudale
body: Hi [@Osvaldo Guerra Lopez](/t5/user/viewprofilepage/user-id/4249602) ,

I assume that you are using Bitbucket Cloud (and not Server)?

The importer only imports a Git repo from another Git-based hosting site, it does not sync the imported repo with the original one.

If you would like to keep them in sync, you can take a mirror clone of the Azure repo, add in the clone a second remote with the URL of the Bitbucket repo, and then push to the Bitbucket repo.

You can take a look here for a more detailed explanation:

* <https://www.opentechguides.com/how-to/article/git/177/git-sync-repos.html>

You could create a script and run it at fixed times.

If you search on the internet "git script to sync repos", you'll find that several users have created and shared scripts they are using. You could perhaps take a look and see if any of these works for you as well.

Kind regards,  
Theodora


Tags: azure

azure-devops

clone

import

migration
trigger-pipeline failed
Asked by Safder Qasim:

Here is my Pipeline Step

![Screenshot from 2021-02-03 18-27-03.png](https://community.atlassian.com/t5/image/serverpage/image-id/128617iC3816517797FAE06/image-size/large?v=v2&px=999 "Screenshot from 2021-02-03 18-27-03.png")

I am getting following error while triggering another pipeline of the different repository with in the same workspace. I do have bitbucket-pipelines.yml file in my 2nd repo which I needs to trigger from my source pipeline. Here is the error which I am getting:

**? Error: {"error": {"message": "Bad request", "detail": "bitbucket-pipelines.yml not found.", "data": {"key": "result-service.pipeline.yml-not-found", "arguments": {}}}}**


Answers:
author: Safder Qasim
body: I have found that bitbucket api is unable to connect with my repo and given 400 http status code. Though I can open my repo in the browser by adding MyWorkspaceID/qa-domain-all.

DEBUG: "POST /2.0/repositories/MyWorkspaceID/qa-domain-all/pipelines/ HTTP/1.1" 400 160


Tags: bitbucket-cloud

bitbucket-pipelines
Retrieving rotating keys from AWS
Asked by Nandini Vaiyapuri:

Hi,

I have a requirement where I am doing a secret manager lookup from AWS using a specific IAM user role. This IAM user role keys are rotating once in a month. Like the AWS access key and secret id keeps changing.

How do I assume this role or how do I access these variables from AWS without defining the variables as bitbucket environment variable.

Please note, this is in continuation of ticket : BBS-156098, if you need more context.


Answers:
author: Halyna Berezovska
body: [@Nandini Vaiyapuri](/t5/user/viewprofilepage/user-id/4248516)thanks for your question.

We have similar workflow, but this is the responsibility of lambda function, the stage of setting values.

You can also retrieve the secrets from pipeline, it is also isolated . But for that you need separate user accessing secrets and permissions for it (or role if you want, it depends on how you setup permissions policy).

Also I would recommend to investigate how you encrypt and decrypt such sensitive info, making the double protection, because it is very sensitive info.

Here is the aws best practices in AWS Secrets Manager <https://docs.aws.amazon.com/secretsmanager/latest/userguide/best-practices.html>

Regards, Galyna

comments: author: Halyna Berezovska
body: [@Nandini Vaiyapuri](/t5/user/viewprofilepage/user-id/4248516)anyway you will have connection from aws to bitbucket or opposite - from bitbucket to aws.

So you need somehow to protect this communication, if you initiate connection with bitbucket from aws rotation, we recommend to create appropriate very limited access .

There are limited passwords, tokens, consider among them what you need exactly.

Here are bitbucket authentication docs

<https://developer.atlassian.com/bitbucket/api/2/reference/meta/authentication>

<https://bitbucket.org/blog/two-step-verification-is-here>


Tags: aws

bitbucket-pipelines

cloud
Pull request history
Asked by Praveen Kumar:

I am doing migration of one repo from one project to another project using git commands as like below.

git clone --mirror \<clone url\>

git remote rm origin

git remote add origin \<new repo clone url\>

git push --mirror

but unable to see pull request history in pull req options available in new repo.

and also when i am doing fork,it was not showing in new repo.

Can you please help me to see pull req history which was merged,active and pending status in bitbucket after migrating or fork repositories.


Answers:
author: Pramodh M
body: Hi [@Praveen Kumar](/t5/user/viewprofilepage/user-id/4248372)

We have to manually recreate the metadata as described in this link here

<https://confluence.atlassian.com/confeval/development-tools-evaluator-resources/bitbucket/bitbucket-migrate-bitbucket-cloud-to-bitbucket-server>

If you want to recreate it via API, please let me know

Thanks,  
Pramodh


Tags: bitbucket-cloud

cloud