youngmon/atlassian-qna huggingface dataset:
WordPress Website Hosting Features
Asked by Joseph Ben Abarado:

Hi All,  

I am new in Bitbucket.  

I am a WordPress website designer and not a programmer.  

I have a WordPress website that I want to host on a Bitbucket server.  

I would like to know if Bitbucket has WordPress website hosting features.  

If yes, is there an existing instructional video that I could learn?  

Thank you very much Bitbucket community.


Answers:
author: Peter Van de Voorde
body: Hi [@Joseph Ben Abarado](/t5/user/viewprofilepage/user-id/5508062) ,  

Bitbucket is a code repository so it's great for hosting your code, but it's not a website hosting platform.   

You could host a static HTML site on Bitbucket but no full WordPress website.  

I'm afraid you'll need to look for another solution.  

Cheers,  
Peter

comments: author: Joseph Ben Abarado
body: Thanks, Peter!


author: Peter Van de Voorde
body: You're welcome [@Joseph Ben Abarado](/t5/user/viewprofilepage/user-id/5508062) .   

If you feel like this answered your question could you please click on the 'Accept Answer' button above my answer? That might help others in the future and gives me a few kudos :)   

Cheers,  
Peter


author: Joseph Ben Abarado
body: Answer accepted.  

Thanks again Peter!


Tags: bitbucket-cloud

cloud
Is it possible to decipher the repo url from the tag or commit url of any bitbucket repository
Asked by PravinG74:

I have a use case where I need to clone the particular tag or commit using the URL ofo that tag or commit or branch. I have seen multiple instances of bitbucket (on cloud, on prem) I see that there is no single pattern in the URLs here are few examples I know.

<https://bitbucket.org/PravinG74/test2/commits/2aa5055f37a764986faaf95dd2c23ad114a951c6>

<https://bitbucket.org/PravinG74/test22/branch/patch1>

<https://bitbucket.org/PravinG74/test22/src/patch1/>

Out of these URL, I need to identify the repo URL so that I can clone it using JGit.


Answers:
author: Peter Van de Voorde
body: Hey [@PravinG74](/t5/user/viewprofilepage/user-id/5507988) ,  

Welcome to the Atlassian Community.   

Wouldn't it be easier to use the Bitbucket REST API to get this information instead of trying to parse it from the URL?   

Check out the documentation here: <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-repositories/#api-repositories-get>   

Cheers,  
Peter


Tags: bitbucket-cloud

cloud
How do I disable all access to Bitbucket but leave it running?
Asked by Mike Quentel:

**TL;DR:**please, could you tell me a relatively quick, easy way to set Bitbucket (Server v5.13.0) to either be completely inaccessible, or to be read-only mode, for all Bitbucket users, but without shutting down the Bitbucket instance?

This question is similar to *[How to switch Bitbucket to read-only mode](ttps://community.atlassian.com/t5/Bitbucket-questions/How-to-switch-Bitbucket-to-read-only-mode/qaq-p/1411874)* (posted back in 2020). That post includes a link to this [Read only tool](https://bitbucket.miwalker.net/projects/SCRIPTS/repos/read-only/browse) but I am not clear as to whether this tool will accomplish what I need.

**Why:** I am performing a simultaneous migration and upgrade of Bitbucket (going from one Linux server environment to another Linux server environment, and from **Server** version to **Data Center** version). Additionally, in case this might be relevant, this will also be a migration from a systemd deployment to a Docker container deployment.

During this migration and upgrade, I would like to immediately stop anyone from writing or modifying anything in Bitbucket on the old instance. Our Bitbucket is hosting **over 1000 repos**. I would like the Bitbucket instance to continue running during the migration.

The solution could be either preventing all access to all users, or forcing all users to be read-only access mode.

Perhaps controlling by IP address, like this article *[Control access to your private content](https://support.atlassian.com/bitbucket-cloud/docs/control-access-to-your-private-content)*

Eventually, I would like to have all users only be able to do read-access on the old server. But for now, during the migration, I want to ensure nobody updates or adds to any repo on the old server.

Many thanks.


Answers:
author: Ulrich Kuhnhardt _IzymesCo_
body: Hi [@Mike Quentel](/t5/user/viewprofilepage/user-id/4017465)

The Python script does exactly what I was going to suggest.

**Locking BBServer**

1. Read branch permission of repo and log it to a file
2. Set branch permissions in all repos to read_only

**Unlocking BBServer**

1. Read permissions log file
2. Apply permissions.

Note that as far as my limited understanding of Python goes, the script does not handle project wide branch permissions that are inherited by repos.

comments: author: Mike Quentel
body: thank you


Tags: bitbucket-data-center

bitbucket-server

data-center
Pipelines with manual steps are shown as paused
Asked by Pete Smith:

Hi all.

I'm hoping this hasn't been asked and I've just missed it.

Since about last Friday, one of our repos in bitbucket has been building very strangely.

The repos has 3 automatic steps - unit tests, smoke test and simulator build.

Once these have passed, we can then build a range of steps manually, to produce an installation pack for each of our customers.

Up to about last Friday, the build would be marked as passed so long as those first 3 automatic steps passed.

Since Friday (ish, I'm not entirely sure when), any pipeline which has ever run, and had the first 3 steps passed is now shown as "Paused".

![paused.png](/t5/image/serverpage/image-id/326401iB05B6FC764FE5C8E/image-dimensions/269x461?v=v2 "paused.png")

We have some pipelines on that repos which have no additional steps (used to push artifacts to our internal registry). When these pass, they go green.

Has there recently been any updates to Bitbucket, or do you think someone has been fiddling with some settings somewhere and retrospectively changed the behaviour of pipelines?

If anyone can give me any pointers, I'd greatly appreciated it.

Thanks in advance.

Pete


Answers:
author: Theodora Boudale
body: Hi everyone,

Our Product Manager, Edmund Munday, has addressed another community question regarding this topic. You can read a detailed explanation here:

* <https://community.atlassian.com/t5/Bitbucket-questions/Why-do-I-see-the-completed-pipeline-status-as-quot-Paused-quot/qaq-p/2695645#M104654>

To summarize, the "Paused" status now more accurately represents the build's actual state in the system. This adjustment is purely cosmetic and aims to enhance consistency and transparency within the user interface. It specifically impacts Pipelines that include manual steps. Such a trigger is commonly employed for manually approving deployments or managing optional steps that may be executed toward the end of a pipeline.

It's important to note that these pipelines have always been designated as "Paused" within the system, a detail consistently reflected in the user interface when sorting pipelines by their status.

If you have any more questions, please don't hesitate to let us know.

Kind regards,  
Theodora


author: Marin
body: Same issue here and I hope this is just a bug and not intended behavior, as it is a huge and confusing change in the UX of our pipelines.


author: Daniel Baber
body: I am seeing the same thing with a project. Haven't seen the normal "Successful" but stop behavior since.... well it looks like all of the runs in the past got this status now.

comments: author: Pete Smith
body: Hi.

Thanks, that's useful to know it's not just me then!

Hopefully someone at Atlassian will sort it out.

Thanks again.


Tags: bitbucket-cloud

cloud

pipelines
Workzone reviewer priority
Asked by Brent Hessell:

Hello  
I have recently started using workzone (v7.9.4) and have unexpected results in the reviewers section.

I work on a large application, with multiple teams working in different parts of the system. The different teams name their branches so we can identify which team it is. We then have reviewers based on source branch, I.e.  
Source branch is Team1 -\> reviewer group for team 1  
Source branch is Team2 -\> reviewer group for team 2 etc, with a catch all at the end  
Any branch -\> default reviewer list.

What I am seeing is a branch for Team 1, team 1 reviewers plus default reviewers are being added. It appears both rules are being matched and applied, not just the first in the list as I was expecting.

Has anyone else noticed this behaviour?

Thanks


Answers:
author: Brent Hessell
body: From the support call that was raised. This is a bug in v7.9.4 of workzone, and has been fixed in v7.9.10


author: Ulrich Kuhnhardt _IzymesCo_
body: Hi [@Brent Hessell](/t5/user/viewprofilepage/user-id/2811402)

Thanks for sharing your observation. I'm happy to support you with this issue.

I think you have set up Workzone correctly. Please be aware that Bitbucket repository default reviewers which are defined outside Workzone are added by Bitbucket.

Best way forward is to create a [support request](https://izymes.atlassian.net/servicedesk/customer/portal/1/group/1/create/1?summary=Workzon%20reviewer%20rules%20incorrectly%20applied&environment=workzone%207.9.4&description=I%20work%20on%20a%20large%20application,%20with%20multiple%20teams%20working%20in%20different%20parts%20of%20the%20system.%20%20The%20different%20teams%20name%20their%20branches%20so%20we%20can%20identify%20which%20team%20it%20is.%20%20We%20then%20have%20reviewers%20based%20on%20source%20branch,%20I.e.%20Source%20branch%20is%20Team1%20-%3E%20reviewer%20group%20for%20team%201%20Source%20branch%20is%20Team2%20-%3E%20reviewer%20group%20for%20team%202%20etc,%20with%20a%20catch%20all%20at%20the%20end%20Any%20branch%20-%3E%20default%20reviewer%20list.%20What%20I%20am%20seeing%20is%20a%20branch%20for%20Team%201,%20team%201%20reviewers%20plus%20default%20reviewers%20are%20being%20added.%20It%20appears%20both%20rules%20are%20being%20matched%20and%20applied,%20not%20just%20the%20first%20in%20the%20list%20as%20I%20was%20expecting.) with us so we can handle your data confidentially and reproduce your specific issue.

Best, Ulrich

// Izymes - Workzone


Tags: bitbucket-data-center

data-center

workzone
Error running pipeline for branch definition
Asked by Boris Kravchenko:

I have the following workflow.

The prod branch pipeline runs with the following branch definition:  

```
master:
    - step:
          <<: *Env_Settings
          name: Prod Env Settings
          deployment: prod
    - parallel:
          - step: *xxxx
          - step: *xxxx
    - step: *xxxx
    - parallel:
          - step: *test_commit
          - step: *hotfix_fe_commit
```

At the end, in the last parallel step, when the commits are made to hotfix_fe_commit, that will kick of the hotfix_fe branch pipeline, which has the following definition:

```
hotfixfe:
  - step:
      <<: *Env_Settings
      name: Prod Settings
      deployment: prod
  - parallel:
      - step: *xxxx
      - step: *xxx
  - step:
      <<: *xxx
  - parallel:
      - step: *test_commit
      - step: *hotfix_commit
```

On the very first step( named "Prod Settings"), I am getting following error:
> This pipeline was paused because [prod](https://bitbucket.org/workspace-id/repo/addon/pipelines/deployments) can not be deployed to from the hotfixfe branch.
>
I am not sure why this is causing an error. My intention is to reuse the deployment environment and I know that you cannot reuse an environment in the same pipeline. But the commit kicks of a brand new pipeline, so I believe that I should be able to reuse the deployment environment.

My branch restrictions are identical for both branches that use this deployment environment. Is there something else potentially happening?


Answers:
author: Theodora Boudale
body: Hi Boris,

Deployments can be configured to run only on certain branches. This can be done from **Repository settings** \> **Deployments** \> select a certain deployment environment \> there is an option there **Branches allowed to deploy to \<environment name\>** . Based on the message you posted here, it looks like this is the case for the **prod** deployment environment in this repo.

If you are an admin of a repository, you can see it following the steps I outlined (the **Repository settings** option is only visible to admins). If you are not an admin, you can reach out to an admin of the repo and discuss the possibility of adding the branch **hotfixfe** to the branches that are allowed to deploy to **prod**.

Just a heads up, I edited the error message in your post to remove the link to the repo URL for privacy reasons.

Please feel free to reach out if you have any questions!

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Azure DevOps pipeline gets triggered after any update in a PR
Asked by Ola:

I've observed that any update in a PR - not code-related but for example - adding reviewers - is triggering the build pipeline.

Is it a normal behavior of Bitbucket integration with Azure DevOps or is it possible to avoid this?


Answers:
author: Saxea _Flowie_
body: Hi [@Ola](/t5/user/viewprofilepage/user-id/5507387)

It will also trigger on when title, description, reviewers, destination branch, and delete branch options are changed.

[Flowie](https://flowie.app/), a addon for workflow that we provide, supports granular events, so you choose to build only when there's a code change and not the other events.

comments: author: Pavel Maskevich
body: I have the same problem and can't figure out how to configure that. I can change webhook manually, but if I apply flowie config, webhook is updated.

<br />

[@Saxea _Flowie_](/t5/user/viewprofilepage/user-id/5230209) could you please show an example how it can be configured or link to proper section in documentation? I couldn't find anything like that.


author: Saxea _Flowie_
body: Hi [@Pavel Maskevich](/t5/user/viewprofilepage/user-id/1896968), this plugin is currently only available via customer request. Please reach out to support@flowie.app and we can enable it for you on our workspace and provide the details.


author: Syahrul
body: G'day, [@Ola](/t5/user/viewprofilepage/user-id/5507387)

Welcome to the community!

It sounds like a webhook triggers your integration. Can you navigate to repository settings \> Webhook and locate the Azure integration?

Check the webhook trigger and see if there's any PR update. If yes, then adding a reviewer is expected to trigger the webhook to Azure.

Regards,  
Syahrul


Tags: bitbucket-cloud

cloud
I deleted my personal workspace with my username
Asked by Varun Verma:

Hi,

I deleted my personal workspace with my username and I am not able to recover it. I was actually trying to unbind my personal workspace from sonarcloud so that I could add the organization workspace but I could not do anything after deleting my personal workspace.


Answers:
author: Ben
body: Hi [@Varun Verma](/t5/user/viewprofilepage/user-id/3108739)

Unfortunately, we are not able to recover deleted accounts/usernames - once a deletion occurs, this is permanent as per our documentation:

* <https://support.atlassian.com/bitbucket-cloud/docs/delete-an-account/>

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
How to connect Sourcetree with Bitbucket Data Center using SAML
Asked by Greens:

We are using the latest version of Bitbucket Data Center, using SAML for logging in.  
Basic authentication is disabled.

How can Sourcetree be used with this configuration?


Answers:
author: Greens
body: After some searching I found one way:

You need an HTTP access token for your account on the Bitbucket server. (Manage account -\> HTTP access tokens).

<br />

When you use git CLI, the Bitbucket server can be used by adding

```
 -c http.extraHeader="Authorization: Bearer [your access token]" 
```

to the initial git clone command. The configuration is added to the local .git/config file.

<br />

It is more convenient to add it to the git global config:

```
git config --global http.extraHeader "Authorization: Bearer [your access token]"
```

In Sourcetree it is still not possible to add an account but at least now you can use 'Clone' in a new tab.

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

Keep in mind that the token is plain text visible in config files.  
When compromise is suspected you can simply revoke the token.


Tags: bitbucket-data-center

data-center

sourcetree

sourcetree-data-center
Manage Deployment Environments Variables
Asked by Rodrigo Soto:

Is it possible to manage (download, add, update, etc) deployment environment variables on a large scale? For example, with a file?

Thank you for your assistance!


Answers:
author: Patrik S
body: Hello [@Rodrigo Soto](/t5/user/viewprofilepage/user-id/5237007) ,

welcome to the Community!

You can use the [Bitbucket Cloud's public API](https://developer.atlassian.com/cloud/bitbucket/rest) to modify the deployment environment variables. I'm listing below the relevant endpoints that could be used for that purpose along with their documentation :

* [GET - List variables from an environment](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pipelines/#api-repositories-workspace-repo-slug-deployments-config-environments-environment-uuid-variables-get)
* [POST - Create a variable for an environment](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pipelines/#api-repositories-workspace-repo-slug-deployments-config-environments-environment-uuid-variables-post)
* [PUT - Update a variable for an environment](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pipelines/#api-repositories-workspace-repo-slug-deployments-config-environments-environment-uuid-variables-variable-uuid-put)
* [DELETE - Delete a variable for an environment](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pipelines/#api-repositories-workspace-repo-slug-deployments-config-environments-environment-uuid-variables-variable-uuid-delete)

You can explore those API endpoints and build a script on top of it in case you want to apply some changes to deployment environment variables in multiple repositories under your workspace.

I hope that helps! Let us know in case you have any questions.

Thank you, [@Rodrigo Soto](/t5/user/viewprofilepage/user-id/5237007) !

Patrik S

comments: author: Rodrigo Soto
body: Thanks a lot! Your answer really helped me out.


Tags: bitbucket-cloud

cloud
Why am I not receiving Bitbucket invitations on my email?
Asked by Alexandra Bumbar:

Not receiving email invitations from Bitbucket in order to be able to work on my team's project. I am getting other kinds of emails from Bitbucket and other Atlassian products, however the invitiation emails from my supervisors are not reaching my inbox/spam. Can someone help with that?


Answers:
author: Syahrul
body: G'day, [@Alexandra Bumbar](/t5/user/viewprofilepage/user-id/5506681)

A good starting point is to search for "am.atlassian.com" and look for the email subject "invited you to join" in your mailbox. It's possible that the email was filtered and moved to another folder.

I can see no issues from our mail logs, so it's likely being redirected due to a filter or removal on your mail server level. If you can't locate them in your mailbox, maybe check with your mail server team to see if they blocked our invite email.

Regards,  
Syahrul

comments: author: Alexandra Bumbar
body: Hi Syahrul, thank you for your reply. I will check that.


Tags: bitbucket-cloud

cloud
Export User List in Bitbucket V5.15.1
Asked by Tharunkumar B:

Export User List in Bitbucket V5.15.1

Suggest me if any plugin or other options


Answers:
author: Charlie Misonne
body: I do this via the database most of the time.

Here is [an example](https://confluence.atlassian.com/bitbucketserverkb/querying-the-bitbucket-server-and-data-center-database-to-get-a-list-of-users-group-memberships-and-source-directory-1116294094.html) in Atlassian's documentation. But it really depends on which info you need exactly.

Unrelated: Bitbucket 5.15.1 will be 6 years old in November. I really recommend upgrading to an instance that contains all security patches.


Tags: bitbucket-data-center

data-center
Required Name chnage
Asked by Rajesh Kotekar:

Dear Support,

In local copy we would like to change the name which highlighted in the below image.

Thanks \& Regards,

Rajesh Kotekar ![Name change.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/326019i94CADF6C3EADD66B/image-size/large?v=v2&px=999 "Name change.jpg")


Answers:
author: Ben
body: Hi Rajesh,

May I know what the screenshot is highlighting? Is this a username, repository name, branch name...etc?

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Error when running ./gradlew clean in android studio (java)
Asked by Mike:

BUILD FAILED in 41s  
Watched directory hierarchies: \[C:\\aProj\\Android-DE\\MathPuzzler\]  
Configuration cache entry discarded due to serialization error.


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

This is almost certainly not a Bitbucket problem. Your build process is failing, so you need to debug that. Ignore Bitbucket for now, try running the build manually to find out where it is failing.

Try giving it the same parameters you have given it in Bitbucket, they may be the problem.

comments: author: Theodora Boudale
body: Hi Mike,

I just wanted to add to Nic's reply and provide more info on how to troubleshoot the build locally:

If this build runs on Atlassian's infrastructure or with a Linux Docker self-hosted runner, these builds run in Docker containers based on the image you specify in your bitbucket-pipelines.yml file. You can follow this guide to troubleshoot such a build locally with Docker:

* <https://confluence.atlassian.com/bbkb/troubleshoot-failed-bitbucket-pipelines-locally-with-docker-1318882094.html>

If you use a Linux Shell or MacOS runner, these runners use Bash to run pipeline steps directly on the host machine. You can clone the repo and run the bitbucket-pipelines.yml file commands directly on the host machine in Bash.

If you use a Windows runner, it uses PowerShell to run pipeline steps on the Windows machine. You can clone the repo and run the bitbucket-pipelines.yml file commands on PowerShell on the host machine.

<br />

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
We couldn?t log you in. Try logging in again.
Asked by Borislav Kulov:

Hello,  
I haven't been using BibBucket for a while and now I can't login. I tried to reset my Atlassian password twice for the last couple of days. I'm able to login to my Atlassian account but I can't open BitBucket. I'm keep getting the following error:  
"We couldn't log you in. Try logging in again.".

Could you please elaborate on this?


Answers:
author: Ben
body: Hi [@Borislav Kulov](/t5/user/viewprofilepage/user-id/5506195)

I could see that your account was de-activated because you had not logged into the UI since 2018, I have since re-activated your account and you should be able to login now.

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: Borislav Kulov
body: Thanks Ben for the account reactivation. I can login now.

I had a repository before, which I can't see now. I suppose it was delete because of inactivity?


author: Ben
body: Hi [@Borislav Kulov](/t5/user/viewprofilepage/user-id/5506195)

Great news! I'm glad to hear you are able to login now :)

For those missing repositories:

* We would not delete GIT repositories for any reason even if there was a period of account inactivity, I've checked your account and all the workspaces you have access to - there does not appear to be any GIT repositories present there
* If those repositories you've mentioned were Mercurial (HG) repositories, however, support for these were sunsetted years ago and ultimately were removed from the platform back in 2020 (these cannot be recovered):  
  <https://bitbucket.org/blog/sunsetting-mercurial-support-in-bitbucket>  

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud