youngmon/atlassian-qna huggingface dataset:
Clearing out active sessions
Asked by Alton Johnson:

I have run across several posts from years ago where they had to ask this question here to get assistance.

I am just simply trying to clear out all active sessions from my personal (not corporate) BitBucket account, but I don't see a way to do that in the web interface.

How do I do this? I hate to say it but this is pretty surprising that there isn't a button for this in this day and age with data breaches occurring left and right, more than ever before. I've gotta be missing something.


Answers:
author: Theodora Boudale
body: Hi [@Alton Johnson](/t5/user/viewprofilepage/user-id/1970458) ,

There are two ways to achieve that:

1. As [@Walter Buggenhout](/t5/user/viewprofilepage/user-id/783225) already mentioned, you can change your Atlassian account's password via

* <https://id.atlassian.com/manage-profile/security>

Bitbucket uses Atlassian accounts for authentication, so by changing your Atlassian account's password, active sessions will be cleared.

2. Alternatively, you can check the devices where you're currently logged in and log out from one or all of them from this page:

* <https://id.atlassian.com/manage-profile/security/recent-devices>

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

Kind regards,  
Theodora


author: Walter Buggenhout
body: Hi [@Alton Johnson](/t5/user/viewprofilepage/user-id/1970458),

From [this related question](https://community.atlassian.com/t5/Bitbucket-questions/How-can-I-close-all-active-sessions-in-Bitbucket/qaq-p/756948) it seems users can view their active sessions, but not close them. From that same question it also looks as though you can reach out to [Atlassian support](https://support.atlassian.com/contact) to have them closed for you.

As an alternative from [this support article](https://confluence.atlassian.com/bbkb/how-to-clear-bitbucket-cloud-account-s-active-session-939920139.html), changing your password is apparently a (maybe somewhat harsh) workaround to close them too.


Tags: bitbucket-cloud

cloud
How can I use Pipelines to deploy to specific site in Firebase Project with multiple sites?
Asked by Insoft RND:

**My Setup**

I have A Project in Firebase With Multiple sites ,

I have different React Projects corresponding to different user type (like Teachers , Student , Admin)

**Objective**

I am tiring to use pipeline to deploy to a specific site in firebase,


Answers:
author: Anish Paudel
body: It turned out to be relatively easy

Here's What I did to my ++bitbucket-pipelines.yml++ file

**Not fix the indentation using the [validator](https://bitbucket-pipelines.prod.public.atl-paas.net/validator)**

```


step:
 name: Deploy dist folder to firebasee
 script: 
    - pipe: atlassian/firebase-deploy:1.0.0 
      variables: 
         FIREBASE_TOKEN: $FIREBASE_TOKEN 
         PROJECT_ID: '$FIREBASE_PROJECT'
         MESSAGE: 'Deploying '  
         EXTRA_ARGS: '--only hosting'      
         MULTI_SITES_CONFIG: > 
                   [{    
                    "TARGET": "your-target-name",
                     "RESOURCE": "your-site-id" 
                   },
                    ]
         DEBUG: 'true'




```

and ++firebase.json++

```

{
   "hosting": [{
    "target": "your-target-name",
   "public": "build",
   "ignore": [
   "firebase.json",
    "**/.*",
    "**/node_modules/**"
    ],
    "rewrites": [{
   "source": "**",
    "destination": "/index.html"
      }]
   }]
}

```


Tags: bitbucket-cloud

bitbucket-pipelines

firebase
How to trigger jenkins jobs(jenkins file setup) based on pull request(Atlassian Bitbucket v6.6.3)
Asked by naresh2389:

HI Team,

I am using Atlassian Bitbucket v6.6.3 tool and i need to trigger jenkins job based on pull request. Can you please help in setting up this.

When i create pull request from Dev to SIT branch pull request changes should validate it against SIT environment. Basically i should get the target branch details in jenkins file so that i can use environment variable for validation in jenkins file

Jenkins 2.26

Earlier we tried with hooks but that is not working now.


Answers:
author: Kurt Klinner
body: [@naresh2389](/t5/user/viewprofilepage/user-id/4332553)

Hi Naresh

welcome to the Atlassian community

Have you already had a look to <https://plugins.jenkins.io/bitbucket-push-and-pull-request/>

the documentation goes through the required steps.

Alternatively you might want to check [https://marketplace.atlassian.com/apps/1211284/webhook-to-jenkins-for-bitbucket?hosting=server\&tab=overview](https://marketplace.atlassian.com/apps/1211284/webhook-to-jenkins-for-bitbucket?hosting=server&tab=overview)

Cheers

Kurt


Tags: bitbucket-cloud

cloud
"Sign in with Apple" password to use for Xcode, SourceTree, or command line
Asked by David Giovannini:

Hello,

I just created a new bitbucket account with "Sign in with Apple". How do I authenticate from various clients? I have tried my iCloud, desktop, and the new password put in the keychain. Non work.


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

You have two options:

**1.** Bitbucket Cloud uses Atlassian accounts for authentication (when you don't sign in with Apple, Microsoft, Google or a company's SSO).

Even if you signed up with Apple, you can still set a password for the Atlassian account. You can request a password reset email for your Atlassian account via the following link:

* <https://id.atlassian.com/login/resetpassword>

You will then receive an email which will allow you to set a password for your Atlassian account and you can use that for authentication from a client.

**2.** Alternatively, you can generate an app password for your Bitbucket Cloud, and use that instead of a password in your clients.

You can check the following documentation on how to do this:

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

Make sure that you give the app password at least Read and Write permissions for Repositories, in order to be able to pull from/push to repos.

Please feel free to let me know if any of these options work for you and if you need anything further.

Kind regards,  
Theodora

comments: author: David Giovannini
body: I crated the app password. That worked very well. Thank you.


Tags: bitbucket-cloud

cloud
How to find source of Account lockout at bitbucket instance
Asked by Swapnil Lagad:

Hi Team,

We have user 'scott.brown@pgi.com' and getting locked out at every minute on our organizations bitbucket instance <https://bitbucket.pgi-tools.com>. IP address 10.92.70.138.

He is using bitbucket at multiple applications for code push like Visual Studio , source tree, and on remote servers as well. We are unable to find the application name or the machine name from which he is hitting bitbucket. Could you please help to find the application name or host name from which he trying connecting to bitbucket?


Answers:
author: Kurt Klinner
body: [@Swapnil Lagad](/t5/user/viewprofilepage/user-id/4296601)

Hi and welcome to the Atlassian community

newer versions of Bitbucket offer advanced auditing features that could support you, alternatively you could check within the bitbucket access log to determine from which machine the user is accessing bitbucket.

The articles mentioned below provide useful information around how to configure/adjust access logging and how to interpret the log information

<https://confluence.atlassian.com/bitbucketserverkb/configure-bitbucket-server-logging-779171678.html>

<https://confluence.atlassian.com/bitbucketserverkb/how-to-read-the-bitbucket-server-log-formats-779171668.html>

Hope that helps

Cheers

Kurt


Tags: bitbucket-server
Windows config data center
Asked by Astro:

When it will be supported to setup a data center in Windows OS.


Answers:
author: Christian Glockner
body: Hi Astro,

I am not a product manager, but from experience I can tell you that there is no plan to support Windows for Data Center instances in future. This is based on various factors, but the biggest one is that we have observed considerably worse performance on Windows platforms compared to Linux.

Cheers,

Christian

Premier Support Engineer

Atlassian

comments: author: Astro
body: Thanks Christian, it is unfortunate information to me, I'm not good at Linux , it is very hard to me to maintance those services(es, load balancer,and DC nodes).

BTW, is there a plan for Server instance support smart mirrror? and more than 500+ users in WIndows server instance?


Tags: bitbucket-server

server
Restrict Delete Repository completely in Bitbucket 5.16.0
Asked by Jira Support:

Is there any option in Bitbucket server version 5.16.0 to completely restrict the deletion of repository, so that no user (including System Admin) will be able to delete the repository?


Answers:
author: Alex Dodge
body: I am using a ruby library to hit the bitbucket apis. It can be found [here](https://www.badmintonbuys.com/best-badminton-racket-for-smash-and-control/). From the documentation it doesn't appear to be able to hit standalone bitbucket servers, but you might be able to extend the api to meet your needs.


Tags: bitbucket-server

server
How to display the Author on the Source Page?
Asked by Ginu Thomas:

![BitBucket.png](/t5/image/serverpage/image-id/136991iBA6FA434D96A53D2/image-size/large?v=v2&px=999 "BitBucket.png")


Answers:
author: Theodora Boudale
body: Hi [@Ginu Thomas](/t5/user/viewprofilepage/user-id/4256013) ,

I'm afraid that it is not possible to display the author in the **Source** page of a repository.

An author is actually associated with a commit, and each file in the repo may have been modified by different users in different commits, so I'm not sure which author you would like to be able to view in this page? Would it be the author of the last commit that modified each file?

Kind regards,  
Theodora

comments: author: Ginu Thomas
body: Thanks [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) for your response.

I was looking for the display of the author of the last commit that modified the file.


Tags: bitbucket-cloud

cloud
Has someone integrated to PingFederate to have SSO?
Asked by Marco Briceno:

Hi, I have the PingFederate solution in house for IAM. I also have provisioned my user accounts locally in Bitbucket cloud but I want to instead use PingId or PingFederate?

Do I need the Attlassian Cloud connector and pay for it?


Answers:
author: Gonchik Tsymzhitov
body: Hi [@Marco Briceno](/t5/user/viewprofilepage/user-id/4330327) ,

I have not tried in practice.

Based on the exist KB, you can checkout that one:

<https://support.atlassian.com/security-and-access-policies/docs/configure-saml-single-sign-on-with-an-identity-provider/>

Which is direct to

<https://docs.pingidentity.com/bundle/integrations/page/iiz1586803504950.html>

Regarding payment, yes, it's Atlassian access subscription.

You can checkout in your subscription panel

Cheers,

Gonchik

comments: author: Marco Briceno
body: Thank you [@Gonchik Tsymzhitov](/t5/user/viewprofilepage/user-id/726117) I guess we will be subscribing for the Atlassian Cloud connector for PingID/PingFederate


Tags: bitbucket-cloud

cloud
README images do not show up on repo main page
Asked by Connor Sperling:

I am trying to include images in my readme using the command

```
<img src="./images/test.jpg" width="200">
```

But the contents of the image do not show up on the repo main page:

![Screenshot 2021-03-31 142242.png](https://community.atlassian.com/t5/image/serverpage/image-id/136937i2F5B42C6CD092DD4/image-dimensions/265x303?v=v2 "Screenshot 2021-03-31 142242.png")

The image does show up if I click on the README file, however:

![Screenshot 2021-03-31 142414.png](https://community.atlassian.com/t5/image/serverpage/image-id/136940iEC9DC1AF06BB938B/image-dimensions/282x357?v=v2 "Screenshot 2021-03-31 142414.png")

My images will show up on the main page if use this in the markdown file instead:

```
![][./images/test.jpg]
```

But the images appear extremely large. The only successful way I've found to reduce the image size is with the html command above.

Any solutions to either make the image appear on the main page or reduce the size of an image using the markdown-style command?


Answers:
author: vk12
body: I also have this issue.

any solution?


author: Tony Chung
body: I'm also having this issue and it's been 11 months since the OP with no response from anyone about this bug. In my tests, even the markdown method required the images to be in the root folder. I am thankful the OP found a method that works to at least bring the image from a subfolder.

When I used the same syntax I thought it only worked for images in the root folder. After testing again, this method also works from a subfolder.

```
![Alt text for image](./image-folder/file-name.ext)
```

Also as the OP noted, this loads the images at their actual sizes.


Tags: bitbucket-server

html

markdown

readme

server
Unable to uninstall bitbucket data center on my server
Asked by Ramya K:

Hi,

I have installed the bitbucket server data center version (7.10.0) on one of my EC2 instance (RHEL7) with the latest version of git (2.21.1) on it. But, it gives an error message "Unable to detect whether the bitbucket is started correctly".

I tried to remove the folders and install it again but still having issues installing the bitbucket on that server.

Thanks


Answers:
author: Charlie Misonne
body: Did you install Bitbucket as a service? If so, did you remove the service file as well?

If you installed with a root user: make sure to change the file ownerhship to the same user that will run the service (preferably not the root user).

comments: author: Ramya K
body: Hi Charlie,

Thank you for your response. Yes, I installed it as a service. Can you please help me with the service file location ?

Thanks


author: Charlie Misonne
body: Servicefiles are under */etc/systemd* on RHEL7 when using systemctl. It could be in the *user* or *system* subdirectory.

But removing the file will not be sufficient. You should use the systemctl command to do a cleanup.

I'm not a Linux expert byt this [answer on stackexchange](https://superuser.com/a/936976/287980) could help.


author: Ramya K
body: Thank you Charlie. That information is helpful. I will try that out.

Thanks


Tags: bitbucket-server

server
Approach to restrict repository deletion in Bitbucket server through HAProxy load balancer
Asked by Jira Support:

Environment : Bitbucket Version - 5.16.0, HAProxy Load Balancer - 1.5.18  
Requirement : Restrict deletion of repository from Bitbucket server and display an appropriate error message stating that the "User does not have delete permissions" with error code 403.  
We have the HAProxy configured as Load balancer which will redirect the requests to Bitbucket servers.  
Options tried on HAProxy server:

Edited the haproxy.cfg file as below :

<br />

Option 1:

frontend web-frontend  
bind \*:80  
mode http  
option httplog

capture request header X-Forwarded-For len 15  
acl url_check path_reg \\/projects\\/(\[A-Za-z\]+)\\/repos\\/(\[A-Za-z0-9\]+)$  
acl method_check method DELETE  
use_backend bitbucket_del_repo_error if url_check method_check

<br />

frontend webhttps-frontend  
bind \*:443 ssl crt /etc/ssl/agile-test.pem  
mode http

option httplog  
capture request header X-Forwarded-For len 15  
acl url_check path_reg \\/projects\\/(\[A-Za-z\]+)\\/repos\\/(\[A-Za-z0-9\]+)$  
acl method_check method DELETE  
use_backend bitbucket_del_repo_error if url_check method_check  

backend bitbucket_del_repo_error  
mode http  
errorfile 403 /var/www/403.http  
errorfile 503 /var/www/503.http  

Option 2: To display the custom error page through HAProxy, tried the tollowing types of displaying the custom error file present in the HAProxy server  
1. http-request deny if url_check method_check  
2. block if url_check method_check  
3. http-request redirect code 403 location /var/www/403uri.http if url_check method_check  
4. redirect location /var/www/403uri.http if url_check method_check  

However, when we try to delete the Bitbucket repository through POSTMAN, using the following URL, a proper error page with error code (403 - forbidden) is displayed as the response in POSTMAN.  
URL tried is : https://\<bitbucket-host\>/projects/\<project-key\>/repos/\<repository-name\>  

But when we click on "Delete Repository" button in the repository settings page, a popup window appears asking if you really want to delete. If we click Yes/Delete option, we get the following error message "Something went wrong while trying to serve your request. Try reloading the page"  

Questions:  
1. Are we following the proper approach for restricting repository deletion through HAProxy load balancer?  
2. Is there any other approach to restrict the repository deletion from Bitbucket server and display a proper error message?


Answers:
author: Kurt Klinner
body: [@Jira Support](/t5/user/viewprofilepage/user-id/4329837)

Any options to upgrade your BB instance.

<https://confluence.atlassian.com/bitbucketserver/bitbucket-server-7-4-release-notes-1013849643.html> staring with 7.4 you have the option (at least in DC) to control who is able to delete repos

In case of older version you might want to check the comments in <https://jira.atlassian.com/browse/BSERV-10718>

Hope that helps


Tags: bitbucket-server

server
What are the commits that are linked in a commit
Asked by Michael Nieman:

If I look at a commit in Bamboo (URL ending with "/commits/\<commit-hash\>"), there seems to always be one or two links to other commits on the right side. If I click on them it begins a seemingly endless journey down a long line of commits. What is the significance of the links that appear on a particular commit?

![Screen Shot 2021-03-31 at 10.00.04 AM.png](/t5/image/serverpage/image-id/136810iA4521506427C53D3/image-size/large?v=v2&px=999 "Screen Shot 2021-03-31 at 10.00.04 AM.png")


Answers:
author: Steffen Opel _Utoolity_
body: Hi [@Michael Nieman](/t5/user/viewprofilepage/user-id/4329669)

Welcome to the Atlassian Community!

The screenshot seemingly stems from Bitbucket Server (I guess you reached the screen by clicking the resp. commit on your Bamboo build result).

This line lists the parent commit(s) of the commit you are looking at (the one in your URL ".../commits/\<commit-hash\>") - regular commits just have a single parent commit, but in this case you seem to be looking at a merge commit, which has two parents.

You should be able to visualize this hierarchy when you navigate one up to the entire commit history (just the ".../commits" URL), here's an example:

![cac-62399-commit-overview.png](https://community.atlassian.com/t5/image/serverpage/image-id/136851iE1C2EC9B9F7C250C/image-size/large?v=v2&px=999 "cac-62399-commit-overview.png")  

As you can see, commit 841b7e6df25 has been merged into another branch, so the resulting merge commit e066465439b now has two parents, namely 841b7e6df25 and the preceding commit 9acdc6a6864 from the target branch. This is exactly what is shown when I navigate to the commit view for e066465439b:

![cac-62399-commit-view.png](https://community.atlassian.com/t5/image/serverpage/image-id/136852i7150E7744BA07D63/image-size/large?v=v2&px=999 "cac-62399-commit-view.png")

I hope this helps, Cheers,  
Steffen

comments: author: Michael Nieman
body: That makes perfect sense. Thank you for the detailed \& timely response!


Tags: bamboo
How can I get body of the confluence cloud with rest api
Asked by Lyrics Lords:

Is there anyway to get body of the confluence cloud with rest api?

<https://community.atlassian.com/t5/Confluence-questions/how-to-get-full-content-body-html-using-confluence-REST-API/qaq-p/710532>

at this link [@Cliff Berg](/t5/user/viewprofilepage/user-id/1462184) tried to get content but failed.

Could you tell me how to get content of the page of confluence cloud?

Thanks


Answers:
author: Alex Koxaras _Relational_
body: Hi [@Lyrics Lords](/t5/user/viewprofilepage/user-id/5176979)

Try the following:

```
https://YOURDOMAIN.atlassian.net/wiki/api/v2/pages/{PAGE_ID}?body-format=storage
```

Replace the YOURDOMAIN with your actual domain, and {PAGE_ID} with the id of the page.

comments: author: Lyrics Lords
body: wow great!!!

it work! thanks so much!


author: Parth Vyas
body: [@Lyrics Lords](/t5/user/viewprofilepage/user-id/5176979) [@Alex Koxaras _Relational_](/t5/user/viewprofilepage/user-id/4150197) ,  
Is there a way to fetch the css details as well. ATM, I do get the HTML back but that looks more like a plain text with no CSS linkages.  

Any help is appreciated.


Tags: cloud

confluence-cloud
how can I get the permission to insert image file from my device
Asked by Xuan Sun:

hi, I found that I do not have the permission to upload image file from my device to the confluence, could you please tell me how can I apply for this permission?? thanks a lot!!


Answers:
author: Jerryton Surya
body: Hi [@Xuan Sun](/t5/user/viewprofilepage/user-id/5177375) welcome to the Atlassian community   

Can you check the documentation provided by your organization for their Confluence instance? The documentation may contain information about the permissions required to upload files and how to request permission.  

Or else contact your Confluence administrator they should be able to provide you with information on the permission settings and the process for requesting permission.


Tags: confluence-server

server