youngmon/atlassian-qna huggingface dataset:
Reverse Repositories Variable
Asked by Revan Hernandy:

Hi All,

On my project, and unfortunately, I lost and forget some variable values. How do I get the value of repositories variable of my bitbucket project? I'm an admin in my project. Is there any chance to reverse back the variable values?

Thanks


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

Thank you for reaching out to Atlassian Community!

Before we start, I'd like to confirm what is happening on your side. Feel free to correct me in case I have misunderstood something here. You mentioned you lost and forgot some variable values on your repository. Could you please clarify if the variables have been deleted, or if you just don't remember their values, but they are still there?

If you still have the secured variables, you can find out their values. You can achieve that by going to your yml file \> echo the variable in a file that you define as an artifact \> and then you can see the value of the variable if you download the artifact.

This is an example of how to retrieve a secured variable's value with artifacts:

    script:  - echo $variable > variablevalue.txtartifacts:  - variablevalue.txt

Looking forward to hearing from you.

Kind regards,   
Caroline

comments: author: Revan Hernandy
body: Hi Caroline,  

yes, I lost/forget some necessary credentials there and I need to know the value of the variables.

what pipe can I use? atlassian/ssh-run:0.2.2 ?

if yes what mode can I use? script or command?

thank you!


author: Caroline R
body: Hi, [@Revan Hernandy](/t5/user/viewprofilepage/user-id/4544106),

Could you please clarify which type of variables you are using in this YAML file? Does it get the values for **secured Pipelines variables** defined on a repository or workspace level, deployment variables, or some variables on your server?

If these variables are set in **Repository settings** \> **Repository variables** (secured), you should be able to retrieve their secured values using any image (for example, *atlassian/default-image:3*), and you just would need to add this to your YAML file:

    script:  - echo $variable > variablevalue.txtartifacts:  - variablevalue.txt

Then download the artifacts by accessing the successful build \> open Artifacts \> Download artifact.

I hope this clarifies the process, but please let me know if you face any obstacles.

Kind regards,  
Caroline


author: Revan Hernandy
body: [@Caroline R](/t5/user/viewprofilepage/user-id/3934006) it worked thank you!


author: Caroline R
body: Hi, Revan!

Thanks for your confirmation, I'm glad to know that!  
Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
Bitbucket Cloud and Visual Studio: "Operation is forbidden" again
Asked by Ray Depew:

I'm getting the "Operation is forbidden" error when trying to login to Bitbucket from Visual Studio.

I'm using Visual Studio 2017, and the Bitbucket Extension.

I just started using Visual Studio -- I've been using VS Code, bash, and PowerShell until now. I haven't had any problem logging in on the website, pushing/pulling/fetching from the command line, and accessing repos via REST API.

I've tried the following login combinations:

\* username / regular password

\* email address / regular password

\* username / perfectly good app password

\* username / new app password

My Atlassian account was created in November or December 2020, so it's ahead of the 15 Sep 2021 deadline, but I tried app passwords anyway, just in case that made a difference.

As a workaround, I have cloned a repo from the command line and opened the solution in Visual Studio. That doesn't fix the login problem, though. Got any ideas?


Answers:
author: Ray Depew
body: Two fixes:

1. **The preferred way:**switch to VS 2019. Or maybe VS 2022. The Bitbucket capability is built into VS 2019, and you don't need the extension anymore. Everything works fine.

2. **The less-preferred way. It works, but ... :**Use a "god mode" app password. For the app password I was unsuccessfully trying to use, I had it set to R/W repos, and nothing more. So I created a new app password, with all permissions enabled -- set to do everything to everything -- like logging in as root. It worked.

I cannot find documentation on which permissions are required for the VS 2017 / BB Cloud interaction, but "god mode" works, and so I'll stick with it until we migrate to a newer edition of VS.

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


Tags: bitbucket-cloud

cloud

visual-studio
Minimum Version for using migration tool?
Asked by Clint Carter:

Does the migration tool require a minimum Bitbucket on-prem server version number?


Answers:
author: Jimmy Seddon
body: Hi [@Clint Carter](/t5/user/viewprofilepage/user-id/4459283) ,

According to the Marketplace listing for the BitBucket migration assistant: [https://marketplace.atlassian.com/apps/1226610/bitbucket-cloud-migration-assistant?tab=overview\&hosting=server](https://marketplace.atlassian.com/apps/1226610/bitbucket-cloud-migration-assistant?tab=overview&hosting=server)

It says it's for versions: 7.0.0 - 7.19.2

I hope that helps!

-Jimmy


Tags: bitbucket-server

migration-customer-care

server
from where we do download bitbucket-7.6.0-1.noarch.rpm
Asked by Ramya Arvind:

Hi,

I'm Upgrading the Bitbucket version 7.6.0-1 to 7.19.2, So wanted to know from where do I download the bitbucket-7.19.0-1.noarch.rpm file ,Can you let me know the path where I can find the all bitbucket-7.19.0-1.noarch.rpm files.


Answers:
author: Nic Brough -Adaptavist-
body: Bitbucket is not packaged as an RPM by Atlassian, they only provide non-package-managed installer binaries and simple archive files (for an archive install, you unzip or un-tar the download and manually edit some of the config files in it to do the basic settings)

So when you ask "where do we get bitbucket-7.6.0-1.noarch.rpm", the answer is a simple "You don't". It's not the way you install or upgrade bitbucket.

What makes you think you can get an rpm for Bitbucket? What docs are you reading?


author: Vishwas
body: Hey [@Ramya Arvind](/t5/user/viewprofilepage/user-id/4698879)

Welcome to Atlassian Community !!

rpm package wont be available, we have installer for Linux 64 bit, tar.gz archive and zip archive.

based on the previous installation you have done please choose the right download option here <https://www.atlassian.com/software/bitbucket/download-archives>

Regards,

Vishwas

comments: author: Ramya Arvind
body: Hi Vishwas,

I'm New to Linux and Have been asked to Upgrade the Bitbucket from old version to New version 7.19.2 ,

I have steps with but confused from where do we get bitbucket-7.6.0-1.noarch.rpm for upgrade the old version.

Have downloaded the .bin file on my desktop, do we have to convert .bin file to .rpm file ?

2 . please find the steps what I'm following :

Package Installation:

Upload bitbucket-5.13.0-1.noarch.rpm into press server's /XX/yy/rpms folder(to my local machine)

Uninstall Bitbucket:

rpm -ev bitbucket-5.5.0-1.noarch

Remove bitbucket package folder:

rm -rf /xx/yy/packages/bitbucket

Install Bitbucket :

cd /xx/yy/rpms

rpm -ivh bitbucket-5.13.0-1.noarch.rpm

So I'm stuck in point of step.

Have downloaded the .zip file for the product.

Regards,

Ramya Arvind


author: Vishwas
body: Hey [@Ramya Arvind](/t5/user/viewprofilepage/user-id/4698879)

Sure let me guide you,

I'm not sure this method looks bit odd to me. Where did you come across these steps ?

The official Atlassian doc says these

We have two methods to upgrade bitbucket.

1. Installer method for this we have to download .bin file and run that installer rest steps the installer guides you. Please check this out <https://confluence.atlassian.com/bitbucketserver/bitbucket-server-upgrade-guide-776640551.html>

2. Manual upgrade, for this we have to download we have to download zip file(tar.gz)

check this out <https://confluence.atlassian.com/bitbucketserver/upgrade-bitbucket-from-an-archive-file-779292682.html>

Please do this on test server before doing on production.

Regards,

Vishwas


Tags: bitbucket-server

server
How do i get the list of all projects and repositories from Bitbucket on premises server
Asked by Shruti S G:

How do i get the list of all projects and repositories from Bitbucket on premises server


Answers:
author: Vishwas
body: Hey [@Shruti S G](/t5/user/viewprofilepage/user-id/4390821)

We can get this info from Database and via rest API too.

Check out this doc on how to get the list from DB <https://confluence.atlassian.com/bitbucketserverkb/how-to-obtain-a-list-of-all-projects-and-repositories-from-bitbucket-database-975027747.html>

Regards,

Vishwas

comments: author: Shruti S G
body: Thank you Vishwas. Could you share me doc on how to get that through rest API


author: Vishwas
body: Hey [@Shruti S G](/t5/user/viewprofilepage/user-id/4390821)

Couldn't get the exact query or API code to retrieve the data at once, you may have to start looking at the Bitbucket REST API document and build the code here <https://docs.atlassian.com/bitbucket-server/rest/5.16.0/bitbucket-rest.html>

In case if you have Scriptrunner plugin in bitbucket there is a ready made code available here to get list of projects along with all their repositories and bonus too(size of each repo) <https://scriptrunner.adaptavist.com/5.4.5/bitbucket/ScriptConsole.html#_list_all_repository_sizes_by_project>

Hope this helps !!

Regards,

Vishwas


author: Shruti S G
body: Thanks for the details. I will try this


author: Vishwas
body: Hey [@Shruti S G](/t5/user/viewprofilepage/user-id/4390821)

Please feel free to accept the answer in case it helped you for the purpose of community posterity :)

Regards,

Vishwas


Tags: bitbucket-server

server
Forgot email account
Asked by Rubens Silva:

I am having similar issue.

I believe Bitbucket.org forgot my account email after the integration with Atlassian.

bitbucket.org let me create a new account with the same email address I had before.

I am sure it was the same email. But now, I lost access to my repositories (e.g. <https://bitbucket.org/makeitplay>)


Answers:
author: Rubens Silva
body: I figured out this morning what happened.

One of my Jira project/workspace was migrated to another account. I assumed I was only changing my account in Jira to use another email, but creating another entirely new account.

Turned out that actually my personal account had the email changed, so all my personal repos are associated to my corporative email.

Thank you


Tags: bitbucket-cloud

cloud
Nested groups / inheritance?
Asked by Walter Davies:

I don't see a way of adding a sub-group within a group in Bitbucket. I do see a lot of conversation around "stash" (apparently something different from \`git stash\`?) and LDAP/external user management, but not quite addressing what I'm looking for.

I have several sub-teams within my teams that should all have a shared set of repos they can read from but different repos they should be able to write to. Is there a way I can set up my Bitbucket groups to mimic my organisational setup? Or do I need to set up one group per specific access set?

I was able to set up nested groups in GitHub, so just trying to figure out if I can do the same here.


Answers:
author: Craig Castle-Mead
body: Hey [@Walter Davies](/t5/user/viewprofilepage/user-id/4697918)

Stash was the previous name of Bitbucket on-premise ( <https://confluence.atlassian.com/bitbucketserver/bitbucket-rebrand-faq-779298912.html#BitbucketrebrandFAQ-WhydidwerebrandStashtoBitbucketServer>? )

As for Bitbucket Cloud, I don't believe the Cloud products currently support group nesting. We currently heavily leverage nested groups in our on-prem environment and it's a major downside of the Cloud model. There are some other mentions on this topic about Atlassian Access (including from Atlassians) on <https://community.atlassian.com/t5/Atlassian-Access-questions/Does-Atlassian-Access-support-nested-groups/qaq-p/1525606> with some extra background and <https://jira.atlassian.com/browse/ACCESS-654>

CCM

comments: author: Walter Davies
body: Great info; thanks [@Craig Castle-Mead](/t5/user/viewprofilepage/user-id/224850) ! And yes, that is rather a pain for setting up my org structure. :(


author: Martin Ba
body: Hey [@Craig Castle-Mead](/t5/user/viewprofilepage/user-id/224850) - you write "We currently heavily leverage nested groups in our on-prem environment" ... we're currently trying to get "Nested Groups" running with our Bitbucket Server 7.21.4 and the Option "Enable Nested Groups" seems to do basically nothing for us. (bitbucket doc ref: <https://confluence.atlassian.com/bitbucketserver/connect-to-an-ldap-directory-776640403.html>)

Especially, I would have expected the groups to be synced in a "flattened" way as is described for Jira (see: <https://confluence.atlassian.com/adminjiraserver/managing-nested-groups-938847047.html>)

Can you comment on your Bitbucket on-prem version and settings?

Thanks!


Tags: bitbucket-cloud

cloud

github
Support for ssh keys protected by hw secutity keys ?
Asked by vlad:

Currently, 2FA using security keys only covers access to the web UI.

For git+ssh access security keys are not supported ( eg ssh-keygen -t ed25519-sk ).

This forces the user to use less convenient passphrase protection for the private key, or decrease security by using no passphrase.

Note: github supports this since May 2021 ( <https://github.blog/2021-05-10-security-keys-supported-ssh-git-operations/> )

Any plans to implement this ?


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

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

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

Since you're interested in that feature, I would suggest adding 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,  
Theodora

comments: author: vlad
body: Thank you for the reply !


Tags: bitbucket-cloud

cloud
API to create a file doesn't returns the commitId ?
Asked by Deepak Patankar:

I am creating a new file in the bitbucket using the api given in the doc at  

<br />

<https://developer.atlassian.com/cloud/bitbucket/rest/api-group-source/#api-repositories-workspace-repo-slug-src-post>  

<br />

The API successfully created the file in bitbucket but it didn't return the commitId. Since the API is to "Create a commit by uploading a file", it should have returned the commitId ?  

Also is there any other way I can retrieve this commitId ?


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

Thank you for reaching out to Atlassian Community!

You could use the **verbose** option to receive the commit ID, for example:

```
curl POST -u username:AppPassword 
--url https://api.bitbucket.org/2.0/repositories/{workspaceID}/{repository_name}/src 
-F /repo/path/to/image.png=@image.png 
--form 'message=my commit message' -v
```

It will give you the following information:

```
location: https://api.bitbucket.org/2.0/repositories/{workspaceID}/{repository_name}/commit/{commitID}
```

I hope this helps, but do let me know if you have any questions.

Kind regards,   
Caroline


Tags: bitbucket-cloud

cloud
U2F Chrome deprecation - any plans forward ?
Asked by vlad:

Chrome will remove U2F support in March 2022 (assuming bitbucket is "on the Deprecation Trial")

<https://groups.google.com/a/chromium.org/g/blink-dev/c/xHC3AtU_65A?pli=1>

|-----------|-------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Milestone | Approximate stable date | Actions                                                                                                                                                                                    |
| M93       | August 2021             | Support googleLegacyAppIdSupport extension                                                                                                                                                 |
| M94       | September 2021          | * Gate U2F API requests behind a user permission prompt * Log a deprecation notice in Developer Console for every request * Start a Deprecation Trial; keep the U2F API enabled by default |
| M98       | February 2022           | Disable the U2F API by default; but keep it available to sites on the Deprecation Trial                                                                                                    |
| M100      | March 2022              | Fully remove the U2F API                                                                                                                                                                   |

They push for the newer FIDO2/WebAuthn apis.

Are there any plans for Bitbucket Cloud to support this ?


Answers:
author: Theodora Boudale
body: Hi everyone,

Bitbucket Cloud is upgrading to WebAuthn API. We have published a community article about this:

* <https://community.atlassian.com/t5/Bitbucket-articles/Bitbucket-is-upgrading-to-the-Web-Authentication-API-WebAuthn/ba-p/1921532>

If you have any questions, please add them in a comment in that article!

Kind regards,  
Theodora


author: hanskokx
body: It's coming even sooner in Edge. Guys, I seriously don't want to be locked out of my repos next month.

![Screenshot 2022-01-07 180014.png](https://community.atlassian.com/t5/image/serverpage/image-id/176857iBDBFBD386250ABC1/image-size/large?v=v2&px=999 "Screenshot 2022-01-07 180014.png")

comments: author: Henrik
body: Any new on roadmap for this would be good, from guides from 2019 it appears non trivial to migrate. One way street after switching to WebAuthn API's, with regards to server side.  
So would very much like to know if it is on the road map to be fixed, or if we all should switch to OTP for 2FA. Same sentinment as others here, would not like to find myself locked out from my account.


author: kjkent
body: I'm also removing my Yubikey from Bitbucket until the migration is done. Would be great if an Atlassian/Bitbucket staffer could reply to this thread.


Tags: bitbucket-cloud

cloud
Bitbucket Pipelines Templating DRY Not working
Asked by Janis Orlovs:

Hello,

I want to use bitbucket DRY feature with yaml anchors.

```
    branches:
        master:
            - step: *build

definitions:
    steps:
       - step: &build
            image: openjdk:11.0-jdk-buster
            name: Build and test vol di
            script:
              - date +%Y-%m-%d_%H%M > bld_date
            artifacts:
              - bld_date
```

I get:

![Screenshot 2022-01-06 at 15.36.41.png](/t5/image/serverpage/image-id/176405i47C3CCB8A1A67685/image-size/large?v=v2&px=999 "Screenshot 2022-01-06 at 15.36.41.png")

What I am doing wrong?


Answers:
author: Norbert C
body: Hi Janis,

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

Based on my observation, you have the "definition" part after the "pipelines" part. Can I ask you to move the "definition" part above the "pipelines" part and let me know if that makes any difference, please?

Pipelines need to know the "definition" part first, before it can initiate the "pipelines" part, I suspect that's the reason why it's failing. In case it's still not working, can I ask you to share the your bitbucket-pipelines.yml file with us masking all the private/confidential information so that I can review your configuration?

I'm looking forward to hear from you.

Best Regards,  
Norbert  
Atlassian Bitbucket Cloud Support


Tags: bitbucket-cloud

cloud
Not working: use target --service-account parameter in atlassian/google-app-engine-deploy:1.0.0
Asked by Aditya Ekbote:

Hi,

We use the  
atlassian/google-app-engine-deploy:1.0.0 pipe to deploy to app engine via bitbucket pipelines.  

During deployment we want to set a target service account which is now supported with the latest gcloud cli:  
<https://cloud.google.com/appengine/docs/standard/python/user-managed-service-accounts#specifying_a_service_account_when_deploying_your_app>  

    gcloud app deploy --service-account=SERVICE_ACCOUNT_NAME@PROJECT_ID.iam.gserviceaccount.com

But looks like the pipe (<https://bitbucket.org/atlassian/google-app-engine-deploy/src>) is not up-to-date with this gcloud cli version which supports this.  

Please update the pipe to support this as well.  

<br />


Answers:
author: Igor Stoyanov
body: [@Aditya Ekbote](/t5/user/viewprofilepage/user-id/4088131) hi. We released a [new version of google-app-engine-deploy pipe](https://bitbucket.org/atlassian/google-app-engine-deploy/src/1.1.1/), which use now cloud sdk image 402.0.0-slim.  

Regards, Igor


author: Igor Stoyanov
body: [@Aditya Ekbote](/t5/user/viewprofilepage/user-id/4088131) hi. According to your link provided:  
This feature is covered by the [Pre-GA Offerings Terms](https://cloud.google.com/terms/service-terms#1) of the Google Cloud Terms of Service. Pre-GA features might have limited support, and changes to pre-GA features might not be compatible with other pre-GA versions.

We will discuss inside a team about what we can do and provide you results.

Regards, Igor.


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
BitBucket Email notification
Asked by Siang Poh Chua:

Hi, for some reason I stopped receiving email notifications from BitBucket recently (such as new PRs or PR updates) but I'm still receiving email notifications from JIRA and Confluence.

My team is also still able to receive their BitBucket email notifications so I'm stumped here. Is it a BitBucket issue or any way to narrow down possible issues?


Answers:
author: Caroline R
body: Hi, [@Siang Poh Chua](/t5/user/viewprofilepage/user-id/4696850)! Welcome to the community!

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

Could you please confirm if you receive the notifications now?

Kind regards,  
Caroline

comments: author: Siang Poh Chua
body: Hi [@Caroline R](/t5/user/viewprofilepage/user-id/3934006) yes! I'm getting the notifications now, thanks so much! :D


author: Caroline R
body: Awesome, [@Siang Poh Chua](/t5/user/viewprofilepage/user-id/4696850)! Thanks for your confirmation, I'm glad to help!

Kind regards,  
Caroline


author: Zulfiqar Bin Zafar
body: Hello [@Siang Poh Chua](/t5/user/viewprofilepage/user-id/4696850) ,

Welcome to the community,

Turns out this is being caused by a bug related to the new browser experience, until we fix this you can use the following workaround: Navigate to Bitbucket Settings \> Labs. Disable the feature 'New Source Browser experience' Refresh the repository and click "Overview" tab.

Thanks \& Regards,

Zulfiqar Bin Zafar

comments: author: Siang Poh Chua
body: Hi [@Zulfiqar Bin Zafar](/t5/user/viewprofilepage/user-id/4689668) I don't see 'New Source Browser experience' specifically. However I do see 'Atlassian Editor' enabled, are they the same thing?

I'll try turning this off anyway to see if it helps


Tags: bitbucket-cloud

cloud