youngmon/atlassian-qna huggingface dataset:
Deploy Azure Static Web App
Asked by lprada:

Hi, any help deploy to a azure static web app? is the same as to a normal web app?


Answers:
author: Igor Stoyanov
body: [@lprada](/t5/user/viewprofilepage/user-id/176390) hi. Thanks for your question. It's a good case to use [Pipe: Azure CLI Deploy](https://bitbucket.org/atlassian/azure-cli-run/src/master/) :

```
script:  - pipe: atlassian/azure-cli-run:1.0.1    variables:      AZURE_APP_ID: $AZURE_APP_ID      AZURE_PASSWORD: $AZURE_PASSWORD      AZURE_TENANT_ID: $AZURE_TENANT_ID      CLI_COMMAND: 'az staticwebapp <your params>'
```

To discover more pipes, visit our [**Bitbucket Pipes Marketplace**](https://bitbucket.org/product/features/pipelines/integrations).

Regards, Igor.

comments: author: Saqib Ur Rehman
body: HI [@Igor Stoyanov](/t5/user/viewprofilepage/user-id/4550492) .  

I used this command in azure cli:

```
az ad sp create-for-rbac --name MyServicePrincipal
```

I added directly there values to your above mentioned script but im faced by this error.

![azureissuse.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/276848i5CA98E6C580DA6D6/image-size/large?v=v2&px=999 "azureissuse.PNG")

Is there any other way so that i can push my app to azure web app.

Also are we only required to send our app as zip file or only the build app. can we directly send build files or we have to send them as zip folder?


author: Igor Stoyanov
body: [@Saqib Ur Rehman](/t5/user/viewprofilepage/user-id/5300439) hi. The error points you, that you dont have Azure subscription when trying to login.  
Answering your question, [take a look at Azure pipes here.](https://bitbucket.org/product/features/pipelines/integrations?&search=azure)  

Maybe [this azure-web-apps-deploy pipe](https://bitbucket.org/atlassian/azure-web-apps-deploy/src/master/) is what are you looking for.  

Also, please, next time create a new question with your own issue instead.  

Regards, Igor.


author: Saqib Ur Rehman
body: Thanks.  
The issue was solved but i dont know why.  

Our manager bought Azure subscription im added as a contributor to it. When i created a ServicePrincipal and gave it access, still the credentials were not working, But when manager created a servicePrincipal it worked.


Tags: bitbucket-pipelines

azure
Receiving invalid license alert after upgrade
Asked by Mark McGahan:

Based on a security advisory received from Atlassian, my IT team upgraded our version of Bitbucket Data Center and Server from 5.9.0 to 7.17.1. After this upgrade, an alert is active in Bitbucket that says "**Your license is not valid for this version of Bitbucket.** Users will not be able to push code to repositories hosted on Bitbucket."

The license settings say that our license expired in 2019, but I have a payment confirmation from Atlassian that our license is renewed through August 2022.

How do I get Bitbucket synced up with the correct license information?

Thank you.


Answers:
author: Daniel Eads
body: Hey [@Mark McGahan](/t5/user/viewprofilepage/user-id/4630600) , welcome to the Community!

I do see that your license is still current. One thing that often occurs however is that the licenses are renewed through Atlassian's billing services, but the renewed licenses aren't applied back into Bitbucket Server. This often affects people when they upgrade, as the upgraded version will need the new license key from the renewal.

What you will want to do:

1. Log in to <https://my.atlassian.com>
2. Copy the license key for your Bitbucket Server license
3. Log in to Bitbucket Server as an admin
4. Go to **Administration** \> **Settings** \> **Licensing**
5. Paste in the license key you retrieved in step 1 and Save

Cheers,  
Daniel \| Atlassian Support

comments: author: Mark McGahan
body: Yes, our license settings had not been updated with the latest license key. Thanks.


author: Jimmy Seddon
body: Hi [@Mark McGahan](/t5/user/viewprofilepage/user-id/4630600)!

The members of the community aren't really equipped to help with license issues.

If you believe (and you have proof) that your license should not be expired, I would contact support for assistance, which you can do here:

<https://support.atlassian.com/contact/>

I hope that helps!

-Jimmy


Tags: bitbucket-server

server
PR Decorations from Sonarqube stay hidden
Asked by Johannes Paur:

Hi everyone,

I have an issue setting up the pull request decorations from Sonarqube Enterprise on Bitbucket Server.

Sonarqube actually delivers the decorations to the Bitbucket instance. There should then be a report available on the pull request page, but there is nothing there.

I tested this with a vanilla bitbucket 6.10.14 and a 7.17.1 (as a docker instance) from a Sonarqube Enterprise 8.9.0, 8.9.1, and 8.9.2.

The Log points to this particular spot:  
10.18.199.10,10.18.99.10 \| http \| o@1BKQBINx694x2333x0 \| admin \| 2021-11-10 11:34:59,219 \| "PUT /rest/insights/1.0/projects/TA/repos/alice/commits/0c1cbc5a1f50cbd017a65c331d5de71af1a3d4b8/reports/com.sonarsource.sonarqube HTTP/1.1" \| "" "okhttp/4.9.0" \| 200 \| 573 \| 620 \| access-token:id:290119840153 \| 91 \| 14nhufa \|

So, the data lands here, it seems, the commit ID is where the branch split off, so before the actual commit in the branch. I have no idea if this is even remotely correct:

<https://my-bitbucket/rest/insights/1.0/projects/TA/repos/alice/commits/0c1cbc5a1f50cbd017a65c331d5de71af1a3d4b8/reports/com.sonarsource.sonarqube>

{"data":\[{"title":"Bugs","value":"0","type":"TEXT"},{"title":"Vulnerabilities","value":"0","type":"TEXT"},{"title":"Code Smells","value":"0","type":"TEXT"},{"title":"Security Hotspots","value":"0","type":"TEXT"},{"title":"Code Coverage","value":"n/a","type":"TEXT"},{"title":"Duplication","value":"n/a","type":"TEXT"}\],"createdDate":1636540499206,"details":"Quality Gate passed","key":"com.sonarsource.sonarqube","link":"[https://my-sonar/dashboard?id=TA\&pullRequest=1](https://my-sonar/dashboard?id=TA&pullRequest=1)","logoUrl":"<https://my-sonar/images/embed-doc/sq-icon.svg>","result":"PASS","title":"SonarQube","reporter":"SonarQube"}

What do I miss? Is there an additional configuration necessary in Bitbucket to activate the insights reports on the pull requests page? Is the place the report was delivered to correct? Do I need another plugin apart from the default Code Insights?

Thanks \& BR,  
Johannes


Answers:
author: Johannes Paur
body: Hi everyone,

I figured it out in the end.

This was the crucial bit of information: <https://developer.atlassian.com/server/bitbucket/how-tos/code-insights/>

\[...\]As with the build status API, code insights are only displayed if they are associated with the latest commit on a pull request's source branch. \[...\]

So, if you do the sonar scan from the wrong branch (!= the PR source branch), or you do pre-merge checks (auto merging and creating commit hashes locally on the CI infrastructure only) then the decoration will not be visible. The report is then, as was my hunch, put in the wrong place.

BR, Johannes


Tags: bitbucket-server

server
automatically down merge a change
Asked by Allister:

do you know if there's a bitbucket tool or plugin, where one can enable to automatically down merge a change?


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

Could you please clarify what you mean by 'down merge'? I've never heard of or read about that term in any Git documentation.

If you could explain with a concrete example what you want to automate, I can check if there are any options available for that.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

merge
Not receiving Bitbucket invitation emails
Asked by jeffstahlin:

I'm trying to invite a member from our organisation to Bitbucket but none of the invitations that I've sent seem to be getting through. I've seen plenty of other posts user's email addresses have been stuck in a "blocked" list. Can you please check if \<email removed due to privacy reasons\> is blocked and unlock it if that is the case.

Thank you in advance,

Jeff


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

Thank you for reaching out to Atlassian Community!

I checked our logs and confirmed that indeed, this email had a block on the server that prevented emails from being sent to them, so I removed the email from the suppression list.

Just to give you some context around this issue, it can occur when the system tries to send an email to the user and the account does not exist yet, is not activated, or it rejects the email for some internal reason.

Could you please remove the invitation and send them a new one? You can do this by following the next steps:

In case you have invited the user to a **specific repository**:

* Access the workspace \> Go to the repo you have invited them to;

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

* Click on the "**invitation pending**";

* Select the "**Cancel invitation**" option to remove the invitation;

* Add the email again to send a new invitation.

In case you have invited the user to a **group on this workspace**:

* Access the workspace \> **Settings**;

* Access **User groups** \> Open the group you have invited them to**;**

* Click on the "**invitation pending**";

* Select the "**Cancel invitation**" option to remove the invitation;

* Add the email again to send a new invitation.

Please let me know how it goes.

Kind regards,  
Caroline

comments: author: jeffstahlin
body: Thanks a lot Caroline, the issue is now resolved. The invitation has been received successfully by the new member.

Regards,

Jeff


author: Caroline R
body: Hi, Jeff!

Thanks for your confirmation, I'm glad to know it worked.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud

invite
repository exceeds size limit
Asked by Bouke Johannes Kaaks:

Hi all,

Our bitbucket repository exceeds the size limit. The problem was with a certain branch called sl_phaseChange that contained too large commits. I first tried fixing it by reverting to previous commits, then by deleting the branch entirely from the remote. However this didn't work.

Locally I've managed to run the garbage collection and reduce the repository size. However I cannot run the garbage collection on the remote. Therefore I'm kindly requesting the support staff to run the garbage collection and help bring the size down.

Thanks in advance for the help,

Kind regards,

Bouke.


Answers:
author: Theodora Boudale
body: Hi Bouke,

I checked in our system the repos that your Bitbucket Cloud account owns or has access to, and one of them was over the size limit. I ran a garbage collection on this repo and its size is now 29.2 MB.

Please feel free to let me know if things are ok now and if you need anything further.

Kind regards,  
Theodora

comments: author: Bouke Johannes Kaaks
body: Thank you so much Theodora.

I will learn from my mistake for the future.

Best wishes,

Bouke.


author: Theodora Boudale
body: Hi Bouke,

You are very welcome, I'm glad to have helped.

Please feel free to reach out if you ever need anything else.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Using APP PASSWORD to downlod zip of repo results in 403 telling me to log in
Asked by Alan Holden:

Until recently, we had a CFML script which would pull down a complete zip file of our branch and parse it out to the server. The \<cfhttp\> tag attribute would look like this:

```
url="https://bitbucket.org/[account]/[project]/get/[branch].zip" 
```

An Atlassian username and password was used, and everything worked fine. Obviously, we want to move to an **APP PASSWORD** account with reduced permissions - because our current method of using user credentials is going to be deprecated, right?

So, after playing around with permissions enough to get *any response at all*, we finally got this (the "contents" of the .zip file) from our latest attempt:
> **403 Forbidden**   
> **Your account is currently inactive. Because it's been a while since you logged in, you'll need to log in at <https://bitbucket.org> to get back in to your account.**

I doubt that there's any way for an APP PASSWORD to actually "log in" at the bitbucket.org web site. This message seems like a red herring.

So I'm stumped. What is the server actually trying to tell us, what exactly are the permissions needed on an APP PASSWORD for our ++current endpoint above++ to continue working?

(We've tried Workplace=Read, Projects=Read, Repositories=Read, Pull requests=Read)

Thanks all,  
Al


Answers:
author: Alan Holden
body: The 403 message is a red herring, and seems to avoid saying that the *Label* should not be substituted for the \[account\] name (see url above) when an app password is used.

IOW, every APP PASSWORD you create continues to employ \[account\] as the username.

I would suggest an **Enhancement Request** to add some hint wording to this effect - where App Passwords are created, perhaps a tooltip (?) next to the "Label" column header, or a faux "Username" header which just repeats the correct value on each row.  
I suspect this would reduce the volume of support traffic from idiots like me.

comments: author: Alan Holden
body: FYI It looks like the only permission needed was "Read" under "Pull requests".


author: Bharat Barot
body: kutumb aap downlod


Tags: bitbucket-cloud

cloud

password
Not receiving invitation emails
Asked by Sachin Pokhariyal:

Hi

We are not receiving invitation emails on below users

\<emails removed due to privacy reasons\>

I doubt if these are in supression list.

Please help

Thanks


Answers:
author: Caroline R
body: Hi, [@Sachin Pokhariyal](/t5/user/viewprofilepage/user-id/4628168)! Welcome to the community!

I checked our logs and confirmed that both emails had a block on the server that prevented emails from being sent to them, so I removed the emails from the suppression list.

Could you please remove the invitations and send them a new one? You can do this by following the next steps:

In case you have invited them to a **specific repository**:

* Access the workspace \> Go to the repo you have invited them to;

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

* Click on the "**invitation pending**";

* Select the "**Cancel invitation**" option to remove the invitation;

* Add the emails again to send a new invitation.

In case you have invited them to a **group on this workspace**:

* Access the workspace \> **Settings**;

* Access **User groups** \> Open the group you have invited them to**;**

* Click on the "**invitation pending**";

* Select the "**Cancel invitation**" option to remove the invitation;

* Add the emails again to send a new invitation.

Please let me know how it goes.

Kind regards,  
Caroline


author: Sachin Pokhariyal
body: Please remove above mail ids from suppression list


Tags: bitbucket-cloud

cloud

jira
Increase ssh connection timeout
Asked by Paulo Guedes:

I keep getting the error "Connection to bitbucket.org closed by remote host." because my git hooks take long to complete, is there a way to increase the connection timeout?  

<br />


Answers:
author: Theodora Boudale
body: Hi Paulo,

Could you please let us know  
1. What operation gives you that error? Is it clone, pull or push?  
2. What kind of hooks are you using, is it a client-side pre-push hook or something else?  
3. How long approximately after you start the operation do you see it timing out?  
4. What OS and SSH client are you using? I'm asking because SSH configuration is set differently depending on that.

Kind regards,  
Theodora

comments: author: Paulo Guedes
body: Hi,  
Here are the answers:  

1 - It's a push.  
2 - Yes, a client side pre-push hook.  
3 - Around 3-4 minutes.  
4 - Mac OS.  


author: Theodora Boudale
body: Hi Paulo,

Thanks for the info. I would suggest first checking the files **/etc/ssh/ssh_config** file (system-wide ssh configuration) and **\~/.ssh/config** (ssh configuration for your user) in your laptop, and see if there are any values set for **ServerAliveInterval** and **ServerAliveCountMax** (either for **Host \*** or for **Host bitbucket.org**).

If you don't see these options in any of the two files, what you can do to keep the connection open for longer would be to add the following in either of the files:

```
Host bitbucket.org
  ServerAliveInterval 300
  ServerAliveCountMax 2
```

The above values are just an example and you can adjust them depending on how long your hook needs to finish. What these settings will do is make your SSH client send a null packet to Bitbucket every 300 seconds (5 minutes) and give up if it doesn't receive a response after 2 tries. This will give you 10 minutes before the connection times out, if the hook takes longer to complete you can set a higher value to either or both of the options.

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Unlimited repositories limited to 300
Asked by gjwdijk:

Bitbucket Cloud license clearly states unlimited repositories. However, limit seems to be 300, as no more repo's can be created. No response from Atlassian in past 10 days. Who can help?


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

We have that limit in place for workspaces in the Free plan to prevent abuse and validate that it's a person who needs more than 300 repos and not a spam bot.

I have overridden this limit for your workspace, so you should be able to create more repositories now.

Please feel free to let me know if you need anything further.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
loopback addresses in pipelines
Asked by ceeceegee:

Hello,

Is it possible to assign loopback addresses (or manual ip addresses to services) to containers within a pipeline? My app needs some dummy addresses to run tests against, and 127.0.0.1 isn't enough.

>     ip addr add 192.168.40.1/32 dev lo
>     RTNETLINK answers: Operation not permitted


Answers:
author: Syahrul
body: Hi [@ceeceegee](/t5/user/viewprofilepage/user-id/4627989) ,

Welcome to the community!

If you need to talk between services running in docker, they have to be attached to the same docker network so you can address the services using \<container-name\>:\<container-port\> or consider using [docker compose](https://docs.docker.com/compose/overview/) to run the services which create a custom network for the compose stack if you wish to have multiple address/loopback.

For more information, please check:

* [Changes to pipeline docker](https://community.atlassian.com/t5/Bitbucket-articles/Changes-to-make-your-containers-more-secure-on-Bitbucket/ba-p/998464)

I hope this helps.  

Cheers,  
Syahrul


Tags: bitbucket-cloud

cloud
how to get List of repositories
Asked by jjordan1:

how to get List of repositories using the UI


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

Thank you for reaching out to Atlassian Community!

In order to see the list of repositories under a workspace in the UI, you can click on your avatar in the upper right corner \> open the workspace you would like to check \> then, Bitbucket will redirect you to a page with a list of all the repositories that you have access to under this workspace.

Also, in case you would like to get a list of all the repositories for a user, you can use the following endpoint:

* <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-repositories/#api-repositories-workspace-get>

Please let me know if that's what you are looking for and feel free to ask for any additional information.

Kind regards,  
Caroline

comments: author: Dhruv Saxena _Fortune Tech_
body: Hi Caroline,  

When I log in to Bitbucket, I'm somehow now redirected to:  

<https://bitbucket.org/>\<workspace-name\>/workspace/overview  

Effectively, it restricts my view of **Recent Repositories** , **Pull Requests** , etc. from one single workspace alone. However, I know that I was able to see repositories (and PRs) from multiple workspaces at one go in the same view before.  

Is this something that has been changed as a feature, or is it some personalised settings? If it's settings, I don't remember that I changed anything, but owing to the fact that I work with several workspaces, it would be really helpful for me to know if there's a way for me to get back to the old view of having all repositories from all workspaces shown at once, please.  

Thank you!


author: Dhruv Saxena _Fortune Tech_
body: Hi [@Caroline R](/t5/user/viewprofilepage/user-id/3934006)   

Just tagging you in. Sorry, missed doing that last time around.  
Any inputs would really be helpful.  

Thanks!


author: Venkataramana
body: HI [@Caroline R](/t5/user/viewprofilepage/user-id/3934006) ,  

We are using Bitbucket Datacenter model and workspace feature is not available in datacenter model. is there any api to get all repos list from all projects?

Please let me know.


author: Theodora Boudale
body: Hi [@Dhruv Saxena _Fortune Tech_](/t5/user/viewprofilepage/user-id/5178403) and [@Venkataramana](/t5/user/viewprofilepage/user-id/4873083),

Please create a new question in community via <https://community.atlassian.com/t5/forums/postpage/board-id/bitbucket-questions>.

It's best to create a new question if you need assistance, as a certain question can become difficult to follow if try to answer multiple users' questions to unrelated issues.

Kind regards,  
Theodora


Tags: atl-gruland

bitbucket-cloud

cloud
Repo admin capabilities (add/delete group members)
Asked by sheidas:

I am the dev lead/release manager for our team. we have a repo that i am an admin of.

and i need to be able to create a group and add/delete people from it, but from what i understand that you have to be 'Global Admin' to be able to do that.

Is that true? i guess then i don't understand the security model.   

How can we delegate the group maintenance to someone other than Global Admin


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

Repositories in Bitbucket Cloud are owned by workspaces and user groups are available in each workspace's settings.

You can find more info on workspaces here:

* <https://support.atlassian.com/bitbucket-cloud/docs/create-and-manage-workspaces-in-bitbucket-cloud/>

In order to be able to access a workspace's settings and user groups, you need to belong to a user group that has administartor access to the workspace. If you are an administrator of certain repositories only (but not a workspace admin), you can add/remove users and existing user groups to/from a repo, but you don't have access to the user groups page.

You can talk with one of the existing admins of the workspace you use and request to be added to a user group that has admin access to the workspace, or request that they create a new user group and add certain users/emails to it.

If you don't know who the workspace admins are, please feel free to let me know and I can create a support ticket for you so that we provide you with the names of the admins.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Can folder icon change if modified file below?
Asked by Philip Cannata:

In "Show All" mode of SourceTree, is it possible to have a setting where it changes the folder icon to show that a file within the folder changed much like MacHg puts a blue circle with a slash inside it next to the folder that has a change inside?


Answers:
author: Philip Cannata
body: Icons in SoureTree, thanks.


author: Seth
body: Are you asking about folder icons inside of SourceTree, or inside the Explorer/Finder?


author: Timothy
body: Raise this issue here ([](https://jira.atlassian.com/browse/SRCTREE)<https://jira.atlassian.com/browse/SRCTREE>)?