youngmon/atlassian-qna huggingface dataset:
Recover Deleted branch from bitbucket cloud
Asked by SureshMuniswamy:

I accidently deleted one of the customer development branch from the bitbucket cloud repo since i have admin access, can we be able to recover it back .No one on my team has the branch checkout or have a local copy on their local sandbox.

The branch is "DRES_DEV/Modem_implementation"


Answers:
author: Caroline R
body: Hi, [@SureshMuniswamy](/t5/user/viewprofilepage/user-id/3571823), thank you for reaching out to Atlassian Community.

On some occasions, the support team can help recover core repository content, as long as the deletion happened within the last 7 days. We are unable to recover metadata (like PRs, comments, issue tracker) or any content that was deleted past 7 days.

In this case, I went ahead and created a support ticket for you using the email of your community account, so an engineer can check if restoration is possible.

You should have received an email with a link to the support ticket. Just in case you haven't received it, please feel free to let me know and I can post the ticket URL here. The ticket will be visible only to you and Atlassian staff, no one else can view its contents even if they have the URL.

Please let me know if you have any questions.

Kind regards,   
Caroline

comments: author: SureshMuniswamy
body: Hi [@Caroline R](/t5/user/viewprofilepage/user-id/3934006) thanks for the response , i have received the support ticket link and i see engineers are responding to it.


author: SureshMuniswamy
body: Hi [@Caroline R](/t5/user/viewprofilepage/user-id/3934006)

I have another open ticket in a similar context is it possible for you to assign this ticket to a Atlassian Engineer with topic "Recover Deleted Repository from Bitbucket Cloud".


author: Caroline R
body: Hi, [@SureshMuniswamy](/t5/user/viewprofilepage/user-id/3571823),

I couldn't find any other tickets linked to your account. Could you please share the number of this ticket with me? The ticket will be visible only to you and Atlassian staff, no one else can view its contents even if they have the URL.

Thank you.

Kind regards,  
Caroline


author: SureshMuniswamy
body: Hi [@Caroline R](/t5/user/viewprofilepage/user-id/3934006)

I was able to resolve the deletion of the repository issue , support engineer were able to fix it and recover it.

Thanks for all your help and the support team i was able to recover the branch and the repository for the customer.


author: Caroline R
body: Thanks for your confirmation, [@SureshMuniswamy](/t5/user/viewprofilepage/user-id/3571823)! I'm glad to know we were able to help you recover the data.  
Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
Incremental Pull Requsts
Asked by Mike B:

Hi,

Is there a way to view the incremental changes on pull requests? So when someone changes the code I can just see what they have changed rather than have to look at ++**all**++ the code again. This is a standard feature in many systems but I cannot figure out how it is done on bitbucket.

I've tried using the activity tab, this does show the which commits have been pushed up, but does not show the actual code changes. It does allow me to view the code changes on the "commit" but this becomes detached from the actual review.

Thanks Mike


Answers:
author: Theodora Boudale
body: Hi Mike,

I'm afraid that this is not possible in Bitbucket Cloud at the moment. I believe that you are referring to iterative reviews, and being able to see changes since the last review?

If so, we have a feature request in our issue tracker:

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

I would suggest adding your vote in that feature request (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 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.

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

pull-request
Unable to extract the zip file which is downloaded from bitbucket
Asked by sharath chandra:

I'm downloaded and cloned(separately) the zip file from bitbucket but Unable to extract zip file in my local. Facing "Error 0\*80004005 : Unspecified Error

Please help me on this


Answers:
author: Nic Brough -Adaptavist-
body: Welcome to the Atlassian Community!

I'm afraid that means the file that was uploaded to Bitbucket was corrupt. You'll need to talk to the person who added it to Bitbucket to get a corrected version.


Tags: bitbucket-server

server
Not able to push even after reducing the repo size to less than 4GB
Asked by jhenning:

Hello, I'm not able to push even after reducing the repo size to less than 4GB. I have already fixed it in the local repository with BFG


Answers:
author: Caroline R
body: Hi, [@jhenning](/t5/user/viewprofilepage/user-id/1239410), thank you for reaching out to Atlassian Community.

Could you please tell me the last 3 letters of workspace and repository name? This way, I can identify it and run a GC on the remote repository to remove any dangling commits there, this might reduce the repo size. In case it doesn't reduce the repository, I can also temporarily increase the repo size to allow you to push the changes to this repository and then run a GC again.

Looking forward to hearing from you.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
Lost access to my old workspace and repos
Asked by themordeus:

Hey! I can no longer access my repos. Whenever I login with my email adress, it gives me an empty workspace with no repos. I can still push and pull to my old repos, but I want to be able to actually access them. This probably happened a while ago, Im not exactly sure when - I dont usually login to my workspace.

Thank you in advance!

Best regards, Niklas


Answers:
author: Caroline R
body: Hi, [@themordeus](/t5/user/viewprofilepage/user-id/4372201), thank you for reaching out to Atlassian Community.

Based on the problem description, it sounds like you might have logged in with a different Bitbucket account that doesn't have access to those repositories.

We may be able to assist if you can share the **workspace id** of the workspace that owns these repos.   
As you confirmed you are able to push to these repositories, you can navigate to the directory of these repos and run the following command:

    git remote -v

The output of this command will show the workspace that the repo belongs to. It should be either

    git@bitbucket.org:WORKSPACE-ID/REPO-NAME.git

OR

    https://USERNAME@bitbucket.org/WORKSPACE-ID/REPO-NAME.git

As this is private information and we can't share this here, I went ahead and created an internal ticket for you, so you can share this information there with us.

You should have received an email with a link to the support ticket. Just in case you haven't received it, please feel free to let me know and I can post the ticket URL here. The ticket will be visible only to you and Atlassian staff, no one else can view its contents even if they have the URL.

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

Kind regards,   
Caroline

comments: author: themordeus
body: Thank you Caroline! I have updated the ticket with my workspace id :)


Tags: bitbucket-cloud

cloud
Can Data Center licenses used on Server
Asked by Manjushree Zope:

Since Bitbucket server tier upgrade not possible and we need more user licenses, can we use Data centre licenses on Server.


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@Manjushree Zope](/t5/user/viewprofilepage/user-id/3893226) ,

you can! I tried in the past and it worked. Please, test this change in a UAT env first or copy current server license in order to have the chance to rollback to previous license.

Btw, my suggestion is to move your configuration from server to datacenter. You can have a datacenter instance with just one node active (like a server instance).

Please, use this guide in order to move to datacenter instance <https://confluence.atlassian.com/bitbucketserver/migrate-from-server-to-data-center-996641211.html>

Hope this helps,

Fabio

comments: author: Nic Brough -Adaptavist-
body: Remember that you will need to get DC licences for Apps too - they will stop working if you swap to a DC licence for Bitbucket (In most cases, it will just be a DC licence for the app, but there are a couple where the install is different for Server and DC, and you may need to install a DC-specific version of the app)


Tags: bitbucket-server

server
Migrating Bamboo server to Pipeline
Asked by Juan Du Toit:

Hi,

We are looking to migrate away from Bamboo Server to Pipelines.

We also want to migrate from Bitbucket server to cloud. My understanding is that we can use the migration assistant for Bitbucket, but I do not see any documentation on how to migrate Bamboo into Pipelines.

Also, If we are planning to migrate Bitbucket and Bamboo, is there a specific sequence we need to follow?

Regards,

Juan


Answers:
author: Rob Horan
body: I don't think this is simple - as far as I know the only option is manual migration of Bamboo plans to Bitbucket Pipelines, one at a time.


Tags: bamboo

bitbucket-server

migration-customer-care

server
Push fails on every project "Invalid username or password"
Asked by svenbader:

Push fails on every project "Invalid username or password". I'm using the newest phpstorm from Jetbrains. I expected something like this on March 1 but not now... (Passoword usage for GIT over https)


Answers:
author: svenbader
body: Now it is working. I created a new project, not using password and https but the default URL given in the "clone" option of my repository. After that I had to accept a cerificate in PhpStorm. Now the old projects with https started working again. Maybe it was a problem with this server certificate or an temporarily problem on my machine or Bitbucket.
all commits missing in a branch
Asked by Bala:

We check in all our changes to "develop" branch.

Just noticed when one of our team members did a checkin/push - we got response 0 commits

we went to our bitbucket cloud url for the respective repository - it doesnt show any commits in it.

We didnt do anything unusual - this seems to be like a issue .

Let us know, how we can resolve this issue \& get back commits in develop branch


Answers:
author: Norbert C
body: Hi Bala,

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!

I would like to inform you that to resolve this issue we might need to access your repository and we need to ask for workspace name and repository name, thus I'm creating a ticket for your issue on our support portal.

Best Regards,  
Norbert  
Atlassian Bitbucket Cloud Support


Tags: bitbucket-cloud

cloud
two step verification not available to enable pipeline.
Asked by VasTech Group:

Hi,

I wanted to enable the pipeline, which it says to Enable the Two step verification, however I don't see two step verification any where under the Project setting/Security or under the Repository Setting/Security.   

Help me enabling it please.

P.S. I already added the SSH Keys in the project as well as Repo.

Thanks in Advance

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


Answers:
author: Pramodh M
body: Hi [@VasTech Group](/t5/user/viewprofilepage/user-id/4774594)

Here it is

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

Navigate to two-step verification under your personal settings

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

Thanks

comments: author: VasTech Group
body: Thanks a lot [@Pramodh M](/t5/user/viewprofilepage/user-id/3691224)  
That resolved the issues. Appreciate your help.


author: Pramodh M
body: Hi [@VasTech Group](/t5/user/viewprofilepage/user-id/4774594)

Welcome to the community ?

It's under your personal settings

<https://bitbucket.org/account/settings/two-step-verification>

Navigate to the above to enable two step verification

You also need to setup SSH Key as well

Let me know if you have any queries

Thanks,

Pramodh

comments: author: VasTech Group
body: Thanks [@Pramodh M](/t5/user/viewprofilepage/user-id/3691224)  

Accessing the <https://bitbucket.org/account/settings/two-step-verification> shows **resource not found.**

1st Image-\> No option of Two step Verification under Project Settings.

2nd Image-\> Resource Not Found Error on accessing through URL.

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/185116i0BFA36B8B61B0495/image-dimensions/177x384?v=v2 "image.png") ![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/185117i2FD5B3ABE59AF1B0/image-dimensions/350x251?v=v2 "image.png")


Tags: 2-factor-authentication

bitbucket-cloud

bitbucket-pipelines

cloud
How to send build details to deployment dashboard in bitbucket pipeline?
Asked by saddam shaikh:

I want to send build details to deployment dashboard without using deployment tag in pipeline. I have created a custom pipeline to deploy an application to a specific environment based on input provided by user and currently, it seems, deployment tag is not accepting dynamic value.

I was looking for an API that can send data to deployment dashboard but no luck.

pipeline deploy step looks like below

- step:

name: Deploy to test

deployment**: $env**

script: - python deploy.py test

Also is there any other way by which we can track build number that's been deployed to specific environment ex. production.


Answers:
author: Theodora Boudale
body: Hi [@saddam shaikh](/t5/user/viewprofilepage/user-id/4773822) and welcome to the community!

The only way to view deployments in the deployment dashboard is by

**1.** Defining the deployment environments in **Repository settings \> Deployments**   
**2.** Then use the **deployment** keyword with a valid environment name in your bitbucket-pipelines.yml file

It is not possible to do this with API or in any other way, and you are right that the **deployment** keyword does not accept variables.

This has been requested by other users as well and we have a feature request in our issue tracker:

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

If you'd be interested in this feature, I would suggest adding your vote in the feature request (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, the only way to make this work would be by creating one step for each environment and using the environment name in each definition. If the same script is used for all deployments, you could perhaps make use of YAML anchors:

* <https://support.atlassian.com/bitbucket-cloud/docs/yaml-anchors/>

Additionally, it is possible to define deployment variables in each environment:

* <https://support.atlassian.com/bitbucket-cloud/docs/variables-and-secrets/#Deployment-variables>

If the script you are using is referencing a specific variable that has a different value for each environment, you can define the variable in all environments with the same name but a different value for each environment.

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
How to understand if my IP was blacklisted
Asked by Danilo Carrabino:

Hello,  
Today I'm having an issue to access to bitbucket.org from my modem/router  

I can access it correctly through my smartphone in 4G network, but from the modem/router the access is blocked: I receive a "ERR_CONNECTION_TIMED_OUT"  

I tried to disable the Firewall (which in any case did not contain any specific rule towards bitbucket.org), but the result was the same.  

When I ping bitbucket.org here's the result I get:  

*** ** * ** ***

Pinging bitbucket.org \[104.192.141.1\] with 32 bytes of data:  
Request timed out.  
Request timed out.  
Request timed out.  
Request timed out.

Ping statistics for 104.192.141.1:  
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss)

*** ** * ** ***

<br />

I also updated the DNS servers to use Google ones:

* For IPv4: 8.8.8.8 and/or 8.8.4.4.

<br />

This is why I was thinking that maybe my IP was blacklisted.  

What else can I try?  
It's very very important for me to reach bitbucket as I have all my repositories there  

Thank you very much  

<br />


Answers:
author: Danilo Carrabino
body: Now it's working again:  
I guess I will never know what really happened.  


Tags: bitbucket-cloud

cloud
how to generate code report in PRs
Asked by Hudhayfah:

I am trying to use code report insights,

I follows the docs,and I added this to the pipeline

```
script:
  - >
    curl --request PUT 'http://api.bitbucket.org/2.0/repositories/$BITBUCKET_REPO_OWNER/$BITBUCKET_REPO_SLUG/commit/$BITBUCKET_COMMIT/reports/mysystem-002' \
     --header 'Content-Type:application/json' \
     --data-raw '{ "title": "Security scan report",
                "details": "This pull request introduces 10 new dependency vulnerabilities.",
                "report_type": "SECURITY",
                "reporter": "mySystem",
                "link": "http://www.mysystem.com/reports/001",
                "result": "FAILED" }'
```

however, it does not work  

<br />

` % Total % Received % Xferd Average Speed Time Time Time Current  
Dload Upload Total Spent Left Speed  
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0  
100 291 0 0 100 291 0 32333 --:--:-- --:--:-- --:--:-- 32333 `


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

I think there are two issues with the API call you are making:

**1.** You are not providing any authentication credentials or token in the API call.

You can use either OAuth, or Bitbucket username + app password. You can take a look at the following page and if you have any questions please feel free to let me know:

* <https://developer.atlassian.com/cloud/bitbucket/rest/intro/#authentication>

**2.** You will need to remove the quotes from the url, so instead of

```
'http://api.bitbucket.org/2.0/repositories/$BITBUCKET_REPO_OWNER/$BITBUCKET_REPO_SLUG/commit/$BITBUCKET_COMMIT/reports/mysystem-002'
```

use

```
http://api.bitbucket.org/2.0/repositories/$BITBUCKET_REPO_OWNER/$BITBUCKET_REPO_SLUG/commit/$BITBUCKET_COMMIT/reports/mysystem-002
```

Otherwise, the variables in the URL won't get replaced with their actual values.

Please feel free to let me know how it goes and if you need further help.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
unable to run "forever.sh" bashscript on the server. how to configure in the bitbucket.yml file?
Asked by rohit kumar:

I want to run forever.sh file on the server. but i was unable to do it. if anyone knows please suggest me.  
image: atlassian/default-image:2  
pipelines:  
default:  
- step:  
script:  
- apt-get update  
- apt-get install -y zip  
- zip -r application1.zip .  
- pipe: atlassian/aws-code-deploy:0.2.5  
variables:  
AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION  
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID  
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY  
APPLICATION_NAME: $APPLICATION_NAME  
S3_BUCKET: $S3_BUCKET  
COMMAND: 'upload'  
ZIP_FILE: 'application1.zip'  
VERSION_LABEL: 'my-app-1.0.0'  
- pipe: atlassian/aws-code-deploy:0.2.5  
variables:  
AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION  
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID  
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY  
APPLICATION_NAME: $APPLICATION_NAME  
DEPLOYMENT_GROUP: $DEPLOYMENT_GROUP  
S3_BUCKET: $S3_BUCKET  
COMMAND: 'deploy'  
WAIT: 'true'  
VERSION_LABEL: 'my-app-1.0.0'  
IGNORE_APPLICATION_STOP_FAILURES: 'true'  
FILE_EXISTS_BEHAVIOR: 'OVERWRITE'  
- step:  
name: specific file changed  
deployment: production  
condition:  
changesets:  
includePaths:  
# any changes in this file  
- "node/getChainTransaction.js"  
script:  
- echo "update the node/getChainTransaction.js"  
- bash ./deploy-scripts/forever.sh

#!/bin/bash  
cd /var/www/html/funds_api/node \&\& forever stopall \&\& forever start getChainTransaction.js

![Screenshot 2022-02-23 at 10.18.14 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/184960iDCF719EDB89FDE3E/image-size/large?v=v2&px=999 "Screenshot 2022-02-23 at 10.18.14 AM.png")


Answers:
author: rohit kumar
body: if question is not clear, Please ping here.


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
Can I claim the workspace taken by ex employee?
Asked by Andrew Liew:

Hi,

A few years ago the workspace was used by the employee for a few projects for "A" client. Later the employee left without handover of the work including the BB workspace.

Currently we are moving our core source code to BB cloud for "A" client. But unfortunately the workspace is taken and the rest of the employees have no access to the workspace.

Is it possible to claim back?

Thanks,

Andrew


Answers:
author: Caroline R
body: Hi, [@Andrew Liew](/t5/user/viewprofilepage/user-id/4768350), thank you for reaching out to Atlassian Community.

You will be able to claim it if you are considered the owner of this workspace. In order to understand who we consider the **account owner**and how we verify it on our side, I would recommend that you access the following article as it has a very good explanation around Bitbucket ownership:

* [Bitbucket Cloud account ownership and data access](https://community.atlassian.com/t5/Bitbucket-articles/Bitbucket-Cloud-account-ownership-and-data-access/ba-p/1311340)

If you don't know if this workspace is a "personal non-managed account", a "shared workspace" or a "personal managed account", we can create an internal ticket for you, so you can share the workspace ID and we can check this on our side to confirm if you are considered an owner of this workspace or not.

Please feel free to share any additional questions or concerns regarding this case.

Kind regards,   
Caroline


author: Andrew Liew
body: update\* our client may have access to the workspace.


Tags: bitbucket-cloud

cloud
How to ad new user?
Asked by Contour R&D administration:

I was handed the admin right but having a hard time to find out how I add ned users to Bitbucket?


Answers:
author: Caroline R
body: Hi, [@Contour R\&D administration](/t5/user/viewprofilepage/user-id/4772075), welcome to the community!

In order to invite a user to your workspace, you can either add them to a **group** or add them to a **specific repository**.

* If you invited the user to a specific group:

  * Open the workspace \> go to **Settings** \> **User groups**;

  * Access the group you want to invite them to;

  * Add their email to send an invitation to them.

<!-- -->

* If you want to invite the user to a specific repository:

  * Access the repository \> **Repository Settings** \> **User and group access**

  * Add their email to send an invitation to them.

I hope this helps! For future reference, you can keep this article handy - [Grant access to a workspace](https://support.atlassian.com/bitbucket-cloud/docs/grant-access-to-a-workspace/).

Feel free to share any additional questions or concerns regarding this subject.

Kind regards,   
Caroline


Tags: bitbucket-cloud

cloud