youngmon/atlassian-qna huggingface dataset:
BitBucket Download open HTML file in browser or another tab instead of downloading
Asked by Bitwise DEVS:

Is there a way to change the behavior when accessing download files in Bitbucket Download? We wanted to utilize it by storing the build lint and test reports generated as HTML.


Answers:
author: Mark C
body: Hi [@Bitwise DEVS](/t5/user/viewprofilepage/user-id/3162676)

Thank you for reaching out to the community.  

Would you be able to confirm if you are experiencing the same behaviour in different browsers?  

Regards,  
Mark C

comments: author: Bitwise DEVS
body: Actually I was just hoping that if the file type is html, accessing its url will open it to another tab.


author: Mark C
body: Hi [@Bitwise DEVS](/t5/user/viewprofilepage/user-id/3162676)  

Would you be able to confirm what browser you are using at the moment?  

Regards,  
Mark C


author: Bitwise DEVS
body: Hi I am in Safari


author: Mark C
body: Hi [@Bitwise DEVS](/t5/user/viewprofilepage/user-id/3162676)

<br />

Thanks for the confirmation.

I went ahead and created a feature request to have the ability to view HTML files from the repository **Downloads** tab. - <https://jira.atlassian.com/browse/BCLOUD-23219>  

Rest assured that we have taken note of your request.  
In the meantime, please feel free to upvote and watch the existing feature request through the provided link so that you'll be notified of any updates on its progress.  
We appreciate your patience and understanding as we continue to improve Bitbucket Cloud according to our policy on [implementing new features](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html).  

Regards,  
Mark C


author: Bitwise DEVS
body: Thanks a lot!


Tags: bitbucket-cloud

cloud
Can't clone my repo
Asked by Damien:

Hello I'm new to git \& Atlassian and really want to have confluence \& git under same account but I can't manage to clone my repository.

I've try to add an ssh keys, still not work

I've try to use the application password, still not work,

Frustrating because I see my repo an the clone button on bitbucket but no :(

The error that I've got :

Commande: git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks ls-remote https://\<redacted\>@bitbucket.org/\<workspace\>/\<repository\>.git   
Sortie:  
Erreur: remote: Invalid credentials  
fatal: Authentication failed for 'https://bitbucket.org/\<workspace\>/\<repository\>.git/ '

Also got a question, I'm really not sure from where came this sufix (-admin) in my username? Not from me at least.

Thanks for any help.


Answers:
author: Patrik S
body: Hello [@Damien](/t5/user/viewprofilepage/user-id/5465755) ,

and welcome to the Community!

It looks like you are using Sourcetree to clone the repository, so it may be an issue with your Sourcetree installation/configuration.

In order to check if Sourcetree is playing a role in this issue, I would suggest trying to manually clone the repository in a terminal session of your machine using the below command :

```
git clone https://{username}:{app_password}@bitbucket.org/{workspace}/{repository}.git
```

Where:

* **username :** your bitbucket account username. You can check your username and edit if you want by navigating to your [personal bitbucket settings](https://bitbucket.org/account/settings/)
* **app password** : a user-level token (not the password used to log in to the UI) used to authenticate git operations over HTTPS. If you haven't already, you can [create a new app password](https://support.atlassian.com/bitbucket-cloud/docs/create-an-app-password/) under your account.

Could you try cloning with the instructions above and let us know how it goes? :)

Should you have any questions, feel free to ask.

PS: To protect your privacy, I've edited your original question to remove the repository and username as this is a public forum.

Thank you, [@Damien](/t5/user/viewprofilepage/user-id/5465755) !

Patrik S

comments: author: Damien
body: Hello [@Patrik S](/t5/user/viewprofilepage/user-id/4603309) ,

Thanks for your answer, indeed I use sourcetree, though it will be simpler to use with bitbucket?

So I've install "git for windows", use your command, and I've manage to clone the repo.

Now I guess I have to find a way to add the repo on sourcetree, because really looking forward to use a gui git and not a terminal command.

Thank you also for the privacy cleaning.


Tags: bitbucket-cloud

cloud

sourcetree
Pipelines not working with NPM image and SSH Keys
Asked by Tinh Nguyen:

Hello, I'm doing the pipeline deployment for publishing image nodejs container on Docker and inside my nodejs dependency have one private bitbucket repository. I can able to build an run docker install this on my own local docker. But when I try to run on pipelines, it failed on step npm install although I can see it can connect ssh. Here is my docker file

Note: Error is npm fetch 404 for this private package

```
FROM node:18.20.0-alpine3.19 as srcBuild

ARG STAGE

WORKDIR /api

RUN apk update && apk add openssh-client git

COPY id_rsa_model /root/.ssh/id_rsa

RUN ssh-keyscan bitbucket.org >> /root/.ssh/known_hosts

RUN chmod 600 /root/.ssh/id_rsa

RUN eval $(ssh-agent) && ssh-add /root/.ssh/id_rsa

RUN ssh -T git@bitbucket.org

COPY package*.json ./

RUN npm install --verbose

COPY ./ ./

# ENV STAGE_ENV $STAGE

ENTRYPOINT ["sh", "-c" , "npm run start:dev -- $0 $@"]
```

My dependency  

```
"my-dependency": "git+ssh://git@bitbucket.org/owner/my-dependency.git#v0.0.1"
```


Answers:
author: Mark C
body: Hi [@Tinh Nguyen](/t5/user/viewprofilepage/user-id/5465396),

Welcome to the community.

Instead of using the **COPY** command to pass your existing SSH key in the Docker container, would it be possible for you to use an environment variable instead?  
Here's an existing knowledge-based article for the same: [Passing SSH key variable from Bitbucket Pipelines to a Dockerfile](https://confluence.atlassian.com/bbkb/passing-ssh-key-variable-from-bitbucket-pipelines-to-a-dockerfile-1155481742.html)

Hope it helps.

Regards,  
Mark C


Tags: bitbucket-cloud

cloud
Maven mono repo will not analyze based on changesets
Asked by Keith Everitt:

I have a multi-module maven project that I'm trying to analyze with SonarQube via Bitbucket Pipelines. I've gotten both modules reporting on SonarQube properly, but my pipeline triggers each step regardless of the changesets condition being true or not. My repo is setup like this:

*** ** * ** ***

> <br />
>
> Root
>
> -module1
>
> -src files
>
> -test files
>
> -module2
>
> -src files
>
> -test files

*** ** * ** ***

I want only the files under module1 to be analyzed when any file within the module1 folder is modified. Module2 should not analyze unless a file under module2 is modified.

Here is my bitbucket-pipelines.yml:

*** ** * ** ***

```
image: maven:3-eclipse-temurin-17

definitions:
  steps:
    - step: &mod1-step
        name: SonarQube analysis
        caches:
          - maven
          - sonar
        script:
          -mvn verify sonar:sonar
          -Dsonar.projectKey=ks_mavenmono_mod1
          -Dsonar.projectName='Maven-Mono-Mod1'
          -Dsonar.inclusions=module1/**

     - step: &mod2-step
        name: SonarQube analysis
        caches:
           - maven
           - sonar
        script:
          -mvn verify sonar:sonar
          -Dsonar.projectKey=ks_mavenmono_mod2
          -Dsonar.projectName='Maven-Mono-Mod2'
          -Dsonar.inclusions=module2/**
  caches:
    sonar: ~/.sonar

clone:
  depth: full

pipelines:
  default:
    - step: 
      runs-on:
        - self.hosted
        - macos
  branches:
    '{main, devBranch}':
      - step: *mod1-step
        condition:
          changesets:
            includePaths:
              - "module1/**"
      - step: *mod2-step
        condition:
          changesets:
            includePaths:
              - "module2/**"

  pull-requests: 
    '**':
      - step: *mod1-step
        condition:
          changesets:
            includePaths:
              - "module1/**"
      - step: *mod2-step
        condition:
          changesets:
            includePaths:
              - "module2/**"
```


Answers:
author: Syahrul
body: G'day, [@Keith Everitt](/t5/user/viewprofilepage/user-id/5465203)

Welcome to the community!

I believe there's a slight issue with your YML config, please use the following example and see if that works:

```
image: maven:3-eclipse-temurin-17definitions:  steps:    - step: &mod1-step        name: SonarQube analysis        script:           - echo "test"    - step: &mod2-step        name: SonarQube analysis        script:           - echo "test"clone:  depth: fullpipelines:  branches:    '{main, devBranch}':      - step:           <<: *mod1-step          condition:            changesets:              includePaths:                - "module1/**"      - step:           <<: *mod2-step          condition:            changesets:              includePaths:                - "module2/**"
```

Make sure the spaces are as above example or otherwise, it will fail to work.

Regards,  
Syahrul

comments: author: Keith Everitt
body: Syahrul,

Thanks for the quick reply, this worked perfectly. Much appreciated


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

monorepo
How to connect azure vm using ssh protocol(.pem) file using bitbucket-pipeline.yml?
Asked by dhananjay waghe:

Hello Folks,

Can someone help me to how to connect azure vm through bitbucket.yml file?

I have downloaded .pem file while creation of azure vm.

after that i have add same file content as pipeline variable in variable section as same has called in yml file.

but still that is not working?

could you please suggest what should be the done here to get connect with azure vm?


Answers:
author: Theodora Boudale
body: Hi Dhananjay,

You mentioned that you have added the file content as a pipeline variable. Please keep in mind that Pipelines does not currently support line breaks in environment variables, and I believe that PEM files include line breaks.

What you can do is base-64 encode the file (locally, on your machine) and store the encoded value in a Pipelines variable. Then, in your yml file's script, in the step that you want to use this file, you can create it by adding a command to base-64 decode the variable's encoded value.

In the following documentation you can find the commands you can use to base-64 encode a file and a sample yml that decodes the variable:

* <https://support.atlassian.com/bitbucket-cloud/docs/use-multiple-ssh-keys-in-your-pipeline/>

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
My repositories are missing
Asked by TuahZh:

I logged in yesterday and found all my repositories are missing. I have tried the steps suggested in some posts here like searching all the workspaces. But I cannot find my private repositories.


Answers:
author: Ben
body: Hi [@TuahZh](/t5/user/viewprofilepage/user-id/3767502)

I would suggest executing the following command to view a list of your remote connections and taking note of the workspaceID that appears before the repository slug in the URL:

```
git remote -vvv
```

Once logged in, view all of your workspaces and check their **Workspace Settings \> General** settings to see if these match the workspaceID's that you are seeing in your remote list - this should help you locate the repositories.

If you can't find them I'd suggest logging into Bitbucket using any of your email addresses that you have access to (if prompted for signup, do not create a new workspace). To help you find email addresses that may have been used with Bitbucket you can use the following command:

```
git config --list
```

If you encounter issues, please let me know.

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: TuahZh
body: Thank you very much. I can see them by changing my workspace name to TuahZh that is the name of the workspaceID.


author: Ben
body: Awesome! Happy to help! :D


author: Ste Wright
body: Hi [@TuahZh](/t5/user/viewprofilepage/user-id/3767502)

So we don't suggest the same things, what have you tried so far?

Ste

comments: author: TuahZh
body: I have successfully got back my repositories by changing the workspace's name to the same as the ID name. Thank you!


Tags: bitbucket-cloud

cloud
develop wasn't synced with master
Asked by Sheila Flaherty:

Unable to sync popup appears when I try to sync DEV with Master

with the below message

develop wasn't synced with master

confirmed through Git that there are no conflicts to be resolved

confirmed with BitBucket admin that I do have access to sync branches

I have sync'd branches earlier this week, but I am unable to sync these 2 branches

Please advise how to get these 2 branches to sync

Thank you


Answers:
author: Theodora Boudale
body: Hi Sheila!

A sync is simply a merge between the two branches and you can do it locally in a clone of a repo.

Ensure you have pulled the latest changes for both develop and master branch in your local clone, and then you can merge master into develop, and push your changes.

If you would like us to troubleshoot why the sync from the UI is failing, we would need some additional info before you sync locally.

**1.** Open **Developer tools** on your browser while viewing the Bitbucket Cloud repo  
**2.** In the**Developer tools** , select the **Network** tab  
**3.** Then, attempt to sync in order to reproduce the error  
**4.** In the **Network** tab, look at the requests. Is there any request with 4xx or 5xx error code? If so, what is the exact error code of the request?  
**5.** If you select that request you will see a new panel with more details about the request. If you select the **Response** tab in that new panel, what info is shown there?

Kind regards,  
Theodora


author: Sintayew Gashaw
body: <https://community.atlassian.com/t5/Bitbucket-questions/develop-wasn-t-synced-with-master/qaq-p/2655755>


Tags: bitbucket-cloud

cloud
Find BitBucket Commits, PRs, and Reviews per Issue via SQL
Asked by Tom Svitak:

From Jira, I can see within the Developemnt panel that there are a certain number of commits, pull requests, and reviews for a particular issue. How do I query that within SQL so we can start to report on it in a dashboard outside of Jira?

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


Answers:
author: Laurie Sciutti
body: Hey [@Tom Svitak](/t5/user/viewprofilepage/user-id/5464441) and welcome to the Community! Have a look [here](https://confluence.atlassian.com/jirasoftwareserver/advanced-searching-development-fields-reference-973491363.html). HTH!

comments: author: Tom Svitak
body: [@Laurie Sciutti](/t5/user/viewprofilepage/user-id/1137433) Terrific place to start! Thank you so much for the timely reply.  

I should have done a better job clarifying what I'm trying to do. I'm trying to find details (i.e. time stamps, environments, etc.) about the particular commits and pull requests, etc. For example, if I clicked on those 32 commits, I'd see when they were done, by whom, etc. Same with the reviews and PRs. Presumably a PR might be rejected by QA and I'm trying to see how frequently we have rework.

The end result is ultimately to statistics that answer a question like "Which issues have the most re-work by the software team?"


author: Laurie Sciutti
body: Hm. Maybe something like below (change your status values accordingly)? This assumes that you have incorporated something in your workflow (maybe triggers for this to happen automatically) or process that indicates a Story should move from some development review status back to an "in development" status. Then report on whatever fields you'd like to have included (i.e. environment, assignee). Another alternative would be to run this query directly in BitBucket \~ it might be more accurate...

```
type = Story AND status changed FROM "Awaiting Code Review" TO "In Progress" and development[pullrequests].declined > 1
```


Tags: bitbucket-data-center

data-center

jira
some pipelines fail with this error "bash: cmake: command not found"
Asked by Tashif Bashir:

Trying to use cmake in my yml to build \& analyse a project but can't figure out what is wrong. It keeps showing the same error even afte? installing cmake manually with "- apt-get update \&\& apt-get install -y cmake"


Answers:
author: Ben
body: Hi [@Tashif Bashir](/t5/user/viewprofilepage/user-id/5464391)

That error message, as you have mentioned - will usually mean that cmake is not installed.

I would suggest after running the apt-get update command, you specifically test if cmake is installed properly by running a test command:

```
cmake --version
```

If the command fails, you will need to troubleshoot its installation or alternatively choose a build image that already includes cmake pre-installed.

Otherwise, if the command succeeds - please let me know.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Changing Condition in aws-ecr-push-image to pipe.py to check ECR_PUBLIC against "true"
Asked by Knittchen:

Hi [@Igor Stoyanov](/t5/user/viewprofilepage/user-id/4550492)

could you please change the lines  

```
def resolve_ecr_public():
   if os.getenv("ECR_PUBLIC"):
```

in [https://bitbucket.org/atlassian/aws-ecr-push-image/src/master/pipe/pipe.py](http://aws-ecr-push-image). to

```
def resolve_ecr_public():
   if os.getenv("ECR_PUBLIC") == "true":
```

So currently I believe it just checks if ecr_public env is existing by returning the value as a string, if so its true. This results in, ECR_PUBLIC is true even if you declare it as false in the variables:

```
ECR_PUBLIC: "false"
```

empty values are not allowed.

But if value get checked against "true" specifically, the pipe could get a dynamic value (eighter overwriting default "false" or "true" and therefore bitbucket pipeline yml configs can get much smaller. and allows conditional values, regarding pushing to certain repos.

Kind regards,

Knut


Answers:
author: Igor Stoyanov
body: [@Knittchen](/t5/user/viewprofilepage/user-id/2656721) hi. Thank you for your suggestion. Our team will implement changes to this logic and notify you.

Regards, Igor

comments: author: Knittchen
body: Hey Igor,

thank you for the quick response.

I am looking forward the notification.

Kind regards,

Knut


Tags: aws

bitbucket-cloud

cloud
Product URL Not Available No Users
Asked by Nelson Ripoll:

I am one of three org admins for our atlassian products. On our admin product page for Bitbucket, it shows our product url but shows 0 users. When trying to access it, I get the resource not found error and I cannot access the admin hub.

None of our org admins created the workspace and we are assuming it was automatically created for us. How do we figure out who created the workspace or how do we get access to our own workspace? There are no users that we know of to give us access.

![Screenshot 2024-03-28 at 10.40.27 AM.png](/t5/image/serverpage/image-id/315182i4CC2F4A802D7DA42/image-size/large?v=v2&px=999 "Screenshot 2024-03-28 at 10.40.27 AM.png")![Screenshot 2024-03-28 at 10.42.34 AM.png](/t5/image/serverpage/image-id/315183i9022CD3F72140EFE/image-size/large?v=v2&px=999 "Screenshot 2024-03-28 at 10.42.34 AM.png")![Screenshot 2024-03-28 at 10.44.06 AM.png](/t5/image/serverpage/image-id/315184i2906BD940EBF3F9D/image-size/large?v=v2&px=999 "Screenshot 2024-03-28 at 10.44.06 AM.png")


Answers:
author: Syahrul
body: G'day, [@Nelson Ripoll](/t5/user/viewprofilepage/user-id/5464334)

Someone from your organization's admin apparently created a Bitbucket workspace and linked it with your organization. As a result, it's now appearing in the product list.

I can't share the name here, but I believe it's an ex-org admin because I can't see the user on the admin list anymore, and only an org admin can link the workspace.

If you require further assistance feel free to raise a support ticket with us.

Regards,  
Syahrul

comments: author: Nelson Ripoll
body: I believe I know who that person is and we can reactivate the account to transfer admin privileges. If not, we will raise a support ticket. Thank you for your help.

Edit: We were able to login as the ex-org admin and transfer the admin privileges.


Tags: bitbucket-cloud

cloud
What will happen now?
Asked by Ural Ikinci:

Hello,

We are Software company in Germany. We was using Bitbucket on premise more than 5 years. We don't want to use Cloud version.

Until when can we continue to use our bitbucket in our Servers?

Do you have another on-premise solution?

Its not possible to login Confluence anymore, I would like to get my datas, but its giving licence error and not possible to renew licence. There is a much information I should take out from conflience onpremise and jira on premise.

Thank you.


Answers:
author: Ste Wright
body: Hi [@Ural Ikinci](/t5/user/viewprofilepage/user-id/3828356)

If these are **Server**products, then they should be perpetual - i.e whilst they're now EOL, you should still be able to access them.

What error are you receiving when trying to access Jira/Confluence?

---

If you are unable to move to Cloud, you can migrate/upgrade to Data Center which is still an on-prem solution. This is available for Jira, Confluence and Bitbucket.

To see more information on upgrading, check out [this migration page](https://www.atlassian.com/migration/plan/upgrade-to-data-center-guide#migrate-non-clustered)

Ste


author: Brant Schroeder
body: [@Ural Ikinci](/t5/user/viewprofilepage/user-id/3828356) what versions of server do you have for bit bucket, jira and confluence?

The reason I ask is server licenses are perpetual. This means you can continue to use them but the products are no longer supported. This means if there are vulnerabilities or issues with the software they will not be fixed.

comments: author: Ural Ikinci
body: Hello,

I have attached error message on my confluence. I have write my version on the below.  
I want to install the latest version of all of this procuct.  
I want to close Bitbucket to outside of my office. I have VPN and firewall and I want to be %100 safetly. This year I got many mails from Atlassian, like we have security bug thats why you have to update your app quickly...  
Thank you.  
Jira Core 9.11.2  
Jira Software 9.11.2  
Jira Service Management 5.11.2  
Bitbucket 7.21.9

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


Tags: bitbucket-server

server