youngmon/atlassian-qna huggingface dataset:
Bitbucket pipeline settings gone
Asked by Andrew Bailey:

I've transferred a repository from one workspace/project to another. In the old workspace, pipelines were working fine. In the new one, I go to the project's pipelines area, and there's a message saying "Pipelines is currently **disabled** for this repository. Enable it in the settings to start building again." with a link to go to settings. I click the link, but get a 404 "Resource not found" error. I manually navigate to the repository settings page, and there's not a pipelines section like there used to be. It's just gone! The new workspace is on a new free plan with 0 build minutes used and 50 remaining. I don't see any other settings page that would enable pipelines, and I need to know what steps to take to use pipelines again.


Answers:
author: Andrew Bailey
body: The settings have appeared after about 2 hours.


author: Ben Steel
body: I also have the same problem from exactly the same steps. Repository was transferred two whole days ago and the pipelines section is still missing.

comments: author: Ben Steel
body: I was able to fix the issue by going to the project pipelines setting for a different repository (that did not have this issue) then changing the url.

So if repo good-repo worked fine, and repo problem-repo had the issue I copied the url from the good repo <https://bitbucket.org/>\<workspace\>/good-repo/admin/addon/admin/pipelines/settings and swapped it to <https://bitbucket.org/>\<workspace\>/problem-repo/admin/addon/admin/pipelines/settings and suddenly the settings page appeared.


author: miloban
body: I have the same problem, for me it is still not appearing since yesterday...


Tags: bitbucket-cloud

cloud
My Bitbucket repositories are hacked how to keep it secure in cloud
Asked by Sai Durga:

How to keep my repository to keep in secure

It got hacked, can you please suggest any plugins to keep secure


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

What is the nature of the "hack"? Is it a simple "someone else guessed your password" or "I gave the wrong person access"? Or something else?


Tags: bitbucket-cloud

cloud
Bitbucket Pipeline - Error creating a Pull Request - "Branch not found"
Asked by Andy Rouse:

I'm trying to create a scheduled pipeline which will retrieve from a Salesforce instance and create a Pull request with any changes that have been retrieved. Broadly speaking it:

1. Checkouts "develop"
2. Creates a new branch locally
3. Retrieves from Salesforce
4. Commits the changes
5. Pushes the new branch to Bitbucket
6. Calls the API to create a Pull Request for somebody to review and merge to "develop"

The issue is with step 6. The call to the API results in an error:

"source: branch not found: {{branch name is in here}}"

The bitbucket bash script has the following commands directly following each other:

* git push
* node {{reference to JS file which makes the API call}}

The branch name matches with the one just pushed. Is there an issue with timing (e.g. do we need to pause before making the API call), or is something else at play here?

**EDITED TO ADD MORE DETAILS**

* I've update my node script to include a delay, but that hasn't appeared to have worked
* I've used Postman API with the same bearer token and, as far as I can tell, the same API call and that is able to create the Pull Request as expected.


Answers:
author: Andy Rouse
body: Apologies - This was related to a typo in the arguments passed between the bash script and the node javascript.

It is completely possible to git push in the bash script and immediately call the pull requests API in the node script and create a Pull Request


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

pull-request
Mermaid support for bitbucket markdown
Asked by sluis:

Hello

Are there any plans to add markdown support for rendering mermaid.js diagrams?

Your competitors are able to do it (Gitlab and Github), so I assume it is possible without major changes.

I was following another [thread](https://community.atlassian.com/t5/Bitbucket-questions/Bitbucket-Wikis-Mermaid-support/qaq-p/1102749) but it was closed with no apparent reason.


Answers:
author: Charlie Misonne
body: Hi [@sluis](/t5/user/viewprofilepage/user-id/2169416)

I found a feature request that has been closed as "won't fix": [BCLOUD-18559.](https://jira.atlassian.com/browse/BCLOUD-18559)

Someone raised a new request here: [BCLOUD-21675.](https://jira.atlassian.com/browse/BCLOUD-21675)You can vote on it and add a comment to raise awareness.

Personally I doubt it will be implemented anytime soon because that other one was closed in 2022.


Tags: bitbucket-cloud

cloud
Is It possible to disable a global pre-receive hook only for 1 repo
Asked by Margaria Vince:

Hello, Is it possible to disable a specific global pre-hook on a repository level ? I have a pre-hook to handle tags but I have some repos that needs to not follow this rule.

To be more clear, I have a global pre-hook with a regex to manage tag naming. I need to make this pre-hook disabled since I need to check tags of those repos using another regex


Answers:
author: Yannis Argyropoulos __ScriptRunner - The Adaptavist Group__
body: Hi [@Margaria Vince](/t5/user/viewprofilepage/user-id/5095262)

ScriptRunner's Global level Pre-Hooks, have a Projects/repositories component, where you can define which repositories this hook applies to. This is the best way to way to achieve what you described.

There is also the 'condition' field where you could do something like this :

```
! (repository.slug == 'rep_1' && repository.project.key == 'PROJ')
```

However, I would strongly suggest you use the \`Projects / repositories\` component instead


Tags: bitbucket-server

scriptrunner

webhook
Different merge strategy based on branch
Asked by Kyunghwan Choi:

Is it possible to set a different merge strategy based on target branch? For example, main only allows 'squash, ff only', and release/\* branches allows ff only? If this is not possible, which I don't think it is, can this be requested as a feature?


Answers:
author: Patrik S
body: Hello [@Kyunghwan Choi](/t5/user/viewprofilepage/user-id/5141894) ,

Welcome to Atlassian Community!

I'm afraid it's currently not possible to define the merge strategy based on the branch, but the good news is that we already have a feature request to include that functionality:

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

I would suggest you to add your vote there, since this helps both developers and product managers to understand the interest. Also, make sure you add yourself as a watcher in case you want to receive first-hand updates from that ticket. Please note that all features are implemented with [this policy](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) in mind.

Thank you, [@Kyunghwan Choi](/t5/user/viewprofilepage/user-id/5141894) !  
Patrik S


Tags: bitbucket-cloud

cloud
Atlassian Access pricing for Bitbucket
Asked by Konstantin Zhabko:

Hello. I use next Atlassian products:

* Jira Cloud - 32 users
* Jira Work Management - 0 users
* Confluence - 33 users
* Bitbucket - 14 users

In this case how much I will pay for the Atlassian Access service? I see the pricing page but didn't understand if I need to pay for 32 or 14 users.


Answers:
author: Theodora Boudale
body: Hi [@Konstantin Zhabko](/t5/user/viewprofilepage/user-id/3385940),

Please check the following page:

* <https://www.atlassian.com/software/access/pricing>

> Atlassian Access is an additional subscription applied across your Atlassian cloud products including Jira Software, Jira Service Management, Jira Work Management, Confluence, Bitbucket, Trello, and Statuspage.
>
> Each billing cycle (monthly or annually), you are only charged for the number of unique users provisioned to a product supported by Atlassian Access regardless of how many products any one person is using. For example, if Sally has access to Jira Software, Confluence, and Bitbucket, you'll only pay for her once each billing cycle.
>
> For Jira Service Management, you are only charged for the unique agents licensed on the product. Users who only create requests via the Jira Service Management portal aren't licensed, so you will not be charged for them.

If you have 33 *unique* managed users with access to any of the products listed above, then you will pay for 33 users.

Kind regards,  
Theodora


Tags: atlassian-guard

bitbucket-cloud

cloud
Error in App distribution step in Pipeline integration
Asked by G?kmen Bayram:

Hello everyone, when merged with development, the pipelines process starts. I have two steps in Pipelines flow.  
1- Detekt  
2- Firebase App Distribution.

It completes the Detekt step successfully, but I always get an error on the Firebase App Distrubition step. I don't see a detailed error message in Bitbucket. (As indicated in the picture)  

![Screen Shot 2023-02-08 at 12.31.23.png](/t5/image/serverpage/image-id/238923i7942089031221711/image-size/large?v=v2&px=999 "Screen Shot 2023-02-08 at 12.31.23.png")  

In the picture below, I am sharing the contents of the .sh file that I want to run in the yml file. To see Logs due to error received "./gradlew assembleDebug appDistributionUploadDebug  
Even if I close " and run "./gradlew assembleDebug --stacktrace" I get an error and I can't see the error message. What should I do in this situation?  

![Screen Shot 2023-02-08 at 12.32.46.png](/t5/image/serverpage/image-id/238924i99EECFAEFC24CDB1/image-size/large?v=v2&px=999 "Screen Shot 2023-02-08 at 12.32.46.png")  

Contents of my .yml file  
![Screen Shot 2023-02-08 at 12.35.57.png](/t5/image/serverpage/image-id/238925iAAFD32DA0178383E/image-size/large?v=v2&px=999 "Screen Shot 2023-02-08 at 12.35.57.png")


Answers:
author: Theodora Boudale
body: Hi [@G?kmen Bayram](/t5/user/viewprofilepage/user-id/5141654),

Have you tried using the --debug or --scan option in the command to get more output?

Kind regards,  
Theodora

comments: author: G?kmen Bayram
body: Hi [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) . Yes, I tried. I saw the logs in the first picture.


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

firebase
List "Lost" Repos
Asked by Arnaud Demarcq:

We've recently removed all access from some repositories (including admin rights). As a consequence, we were not able to see them.

Luckily, we've been able to "recover" them by going (blinkdy) to their respective admin page and undo this change.

\* <https://bitbucket.org/>\<oraganisation\>/\<bucket_id\>/admin/access

However, in order to be 100% sure this has been done for every impacted repository, we would need a way to list buckets with no access (or all projects including those, this would work fine as well)

All the API entry points and web pages we've seen are using the rights of the current user to list repo. So we're able to "recover a repo" only if we know it is there.

Is there a way to list these repos with no access rights attached ?


Answers:
author: Patrik S
body: Hello [@Arnaud Demarcq](/t5/user/viewprofilepage/user-id/683152) ,

Thank you for reaching out to the community!

The public API endpoint to [List repositories in a workspace](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-repositories/#api-repositories-workspace-get) will indeed not return repos that the user has no access to. I went ahead and created a feature request for that endpoint to return the "Lost repos" for the admins of the workspace :

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

I would suggest you to add your vote there, since this helps both developers and product managers to understand the interest. Also, make sure you add yourself as a watcher in case you want to receive first-hand updates from that ticket.

As a workaround, while this feature is not implemented, you can create a new group in your workspace and use the below script to add all the repositories to this new group :

* <https://bitbucket.org/bbcloud-support-scripts/update-group-access/src/master/>

The script will add all the repos existing in the workspace, including the "Lost" repos. You can then check the repo list in the group to identify what repositories you might have missed previously.

Please note the above script was not written by Atlassian developers and is considered a third-party tool. This means that this is also not supported by Atlassian. We highly recommend you have your team review the script before running it to ensure you understand the steps and actions taking place, as Atlassian is not responsible for the resulting configuration.

Thank you, [@Arnaud Demarcq](/t5/user/viewprofilepage/user-id/683152) !

Patrik S

comments: author: Arnaud Demarcq
body: Thanks a lot.

I'll have a look a your script and see if we can use it for our account.


author: Blue Ridge Consultants
body: I wish I could provide you a better answer, but we're stumped as you've already explored the APIs and they are limited by the scope of the user accessing the call.

I will suggest checking the Audit Log under your workspace settings though.


Tags: bitbucket-cloud

cloud
Unable to clone Repo with warning could not find UI helper 'Atlassian.Bitbucket.UI'
Asked by Balasri sai chandana:

When trying to clone the repository from GIT BASH in my local directory it is showing the warning as follows with the repository folder name being created alone without the project files in it

warning: could not find UI helper 'Atlassian.Bitbucket.UI'

what exactly the issue for this?


Answers:
author: Patrik S
body: Hello [@Balasri sai chandana](/t5/user/viewprofilepage/user-id/5141529) ,

Looks like this was an [issue introduced in git for Windows v](https://github.com/git-for-windows/git/issues/4166)[2.39.0](https://github.com/git-for-windows/git/issues/4166), where the Git Credential manager included in that version was facing issues finding the UI helper that is prompted for the user to select the authentication method and to put the credentials.

I would suggest trying to download the latest version (2.39.1 by the time I write this message) from the link below :

* <https://git-scm.com/download/win>

You can uninstall git from your system and install the new version from the link above, as it should contain the fix.

Let me know in case you have any questions.

Thank you, [@Balasri sai chandana](/t5/user/viewprofilepage/user-id/5141529) !

Patrik S

comments: author: Balasri sai chandana
body: Hi [@Patrik S](/t5/user/viewprofilepage/user-id/4603309)

Thank you for response

Able to clone the repo using ssh feature.

More than a issue it kind of seems a secure feature for companies who uses bitbucket may be which is where I had that warning!!

On my personal ID in bitbucket - able to clone the repo as Atlassian authentication done for first time of cloning into repo


Tags: bitbucket-cloud

cloud
???????SQLServerDB????
Asked by shoutarou.hirano:

BitbucketPipeLine????????????DB??????????????????????

?????????????????????????????????????????????????????????????DB?SQLServer??Windows??????AzureIaaS?VM??????????

?????????PipeLine?????????????????????????DB???????????yaml???????????????????

???????????????????????????


Answers:
author: Rick Li
body: ????????????????????????  

??community ???????????????????????????

* [Running MSSQL service in Bitbucket Pipeline](https://community.atlassian.com/t5/Bitbucket-questions/Running-MSSQL-service-in-Bitbucket-Pipeline/qaq-p/696956)   

????????????


Tags: bitbucket-cloud

cloud
Is my email/domain on email suspension list?
Asked by santhoshkumardk:

Hi,

One of our employees is unable to get a password reset email. Could you please help if his email id is on the suspension list if so, could you please remove the blockage?

EmailId: \<email_removed\>

Thank you so much and really appreciate it!


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

The email address of this user was in one of our suppression lists, so I went ahead and removed it.

Please make sure first that this email account is active and that the user can receive emails from other users, and then ask the user to request a new password reset email via this link: <https://id.atlassian.com/login/resetpassword>

A new password reset email needs to be requested, as the previous ones were dropped. Please feel free to let me know how it goes.

Just a heads up, I removed the email address from your post to comply with our privacy policy.

Kind regards,  
Theodora


author: Harald Seyr
body: Hi [@santhoshkumardk](/t5/user/viewprofilepage/user-id/922687)

maybe [Unsuppress invitation emails with one click - Atlassian Community](https://community.atlassian.com/t5/Jira-articles/Unsuppress-invitation-emails-with-one-click/ba-p/2230952) helps. This is a new feature that just was released by Atlassian. However, it requires some admin from your organisation to act.

Regards,

Harald


Tags: bitbucket-cloud

cloud
How to use multiple mysql container databases to run php unit tests in parallel
Asked by Drew Gallagher:

My team is using Laravel tested with phpunit.

We want to run our tests in parallel however when using paratest it tries to connect to multiple databases, and the databases need to exist before running it.

For example if my database name is nova, it will try to connect to nova_1, nova_2...nova_N, for each process in parallel.

I could write a script to connect to msyql and create those databases, but I thought it might be easier to define multiple containers with mysql databases for each up to N processes.

Is there a way to to use more than one mysql container database so I can achieve this?

<https://laravel.com/docs/9.x/testing#running-tests-in-parallel>


Answers:
author: Theodora Boudale
body: Hi Drew,

I don't think this is possible with [service containers](https://support.atlassian.com/bitbucket-cloud/docs/databases-and-service-containers/), as they don't support port mapping and each service will use its default port. If you define multiple mysql services, all of them will try to use port 3306 and the build will fail.

However, you can spin up multiple database containers with [Docker Compose](https://docs.docker.com/compose/) instead and use a different port for each container, or you could use one mysql service container and create the different databases in that container.

Kind regards,  
Theodora


Tags: bitbucket-cloud

bitbucket-pipelines

database

laravel

mysql

php
Is there a way to delete a "Deployment" that resulted from a Pipeline Build?
Asked by Nick Daniel:

While configuring a Bitbucket Pipeline for a repo, there were a few dummy Deployments triggered as a result of the starter template I chose.

I have updated the yaml file to prevent any additional misleading "deployments" (as nothing was actually deployed), but I was hoping there would be a way to remove those entities as to not confuse users in the linked Jira project.

This doesn't appear to be something I can do from the web interface, but is it something a support agent could resolve for me?

Thanks


Answers:
author: Syahrul
body: Hey [@Nick Daniel](/t5/user/viewprofilepage/user-id/931177)

G'day,

If I understood this correctly, do you wish to delete pipeline deployments? If yes, there's no way to delete the already executed pipeline build.

The pipeline list is a record of all the pipelines you have run so you can keep track of it.

Let me know if it's something you wish to have. I can create a new Feature request on your behalf of you.

Cheers,  
Syahrul

comments: author: Nick Daniel
body: Hello [@Syahrul](/t5/user/viewprofilepage/user-id/744536), thank you for the response.

I do understand what the builds and deployments are used for; and I have them successfully/happily implemented in many repositories \& projects.

My feature request, if it is not already available, would be:
> A BitBucket repository-admin can delete/remove/archive/strike a "deployment" entity, so that they can have a clean deployment history if someone accidentally commits changes to the repo's Pipelines (bitbucket-pipelines.yml) that erroneously indicates something was deployed somewhere.

I imagine this is a somewhat frequent occurrence, but only when teams are setting up and/or modifying their Pipelines config. For my current scenario, I just want to remove the deployment metadata associated with some of these "dummy deployments", which didn't actually deploy anything and were instead just the result of a starter pipelines template.

Hopefully this was clear, but please let me know if I can elaborate any further.

Thanks again!  
Nick

Edit: To clarify.. I don't wish to modify the build history, as that is a representation of pipeline runs. I want the ability to strike a "deployment" that is associated with a pipeline run, so that I can clean up any erroneous "deployments".


author: Syahrul
body: Hi [@Nick Daniel](/t5/user/viewprofilepage/user-id/931177)

Thanks for the details explanation and use case!

I have proceeded to create the feature request at:

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

Feel free to add anything if you wish. Don't forget to **Watch** and **Vote** for the feature request so that you'll receive an update in the future.

Cheers,  
Syahrul


Tags: bitbucket-cloud

cloud
Integrate Bitbucket with ServiceNow
Asked by Lon Landry:

How can I integrate bitbucket with ServiceNow?

I saw a like question that has been unanswered in BitBucket community since 2019.


Answers:
author: Diana_Architect_ZigiWave
body: [@Lon Landry](/t5/user/viewprofilepage/user-id/5141153) hi. It is possible. What's the use case? You can check out the systems' marketplaces for 3rd party tools that can help with the integration. You can also take a look at ZigiOps- a fully [no-code integration tool](https://zigiwave.com/bitbucket-servicenow-integration/?utm_source=atls-snowbbucket&utm_medium=atls-snowbbucket&utm_campaign=atls-snowbbucket&utm_id=atls-snowbbucket) that connects the two, allows you to customize the data you want to transfer between them, sync it and keep them up to date in real-time. It doesn't store any of the data transferred. Feel free to check it and even have a quick chat with our team to see how [ZigiOps](https://zigiwave.com/zigiops/?utm_source=atls-zops&utm_medium=atls-zops&utm_campaign=atls-zops&utm_id=atls-zops) makes the integration.

Regards, Diana


author: Maria Barrios (Adaptavist)
body: Hi [@Lon Landry](/t5/user/viewprofilepage/user-id/5141153) There are a few apps in the market that will let you connect BitBucket with Service Now, I guess it all depends on the type of integration you're looking to perform.

Stitch It is an Atlassian-focused integration app with pre-built connectors that will allow you to sync your Service Now and BitBucket instances together. It's code-based too which means there's no limits to what you can customise. You can learn more about Stitch It using [this link](https://www.adaptavist.com/products/other-apps/stitch-it).
Can I compile assembler code in a bitbucket pipeline?
Asked by Neil OConnor:

converting to bitbucket from Endevor. Assembler code needs to be incorporated into bitbucket pipeline(s). Is this possible?


Answers:
author: Erez Maadani
body: Hey [@Neil OConnor](/t5/user/viewprofilepage/user-id/5140865) ,

<br />

Given a runner or a docker image with the necessary frameworks and the required pre- requisites, you should be able to build.

The bb pipelines run the commands within the runners/containers so it's not limited to any coding technology.

See links below for further help:

<https://support.atlassian.com/bitbucket-cloud/docs/use-docker-images-as-build-environments/>

<https://support.atlassian.com/bitbucket-cloud/docs/runners/>

comments: author: Neil OConnor
body: thanks


Tags: bitbucket-cloud

cloud