youngmon/atlassian-qna huggingface dataset:
BitBucket: Plugin installed but fails to be enabled
Asked by talg1978:

Hi there,

<br />

I have created a merge-hook plugin using atlassian sdk, and it works fine while loading it to my local host bitbucket instance, using the "atlas-run" command as described in [this tutorial.](https://developer.atlassian.com/server/bitbucket/tutorials-and-examples/controlling-when-pull-requests-can-be-merged/#steps)  
Now I'm trying to apply it on a bitbucket target using the [Universal Plugin Manager.](https://confluence.atlassian.com/bitbucketserver/managing-apps-776640366.html#Managingapps-Administeringappsin)

![Screenshot 2022-03-29 165934.png](https://community.atlassian.com/t5/image/serverpage/image-id/190479i0FF6C034BFA69F4E/image-dimensions/282x209?v=v2 "Screenshot 2022-03-29 165934.png")

The plugin is installed successfully but**fails to be loaded/enabled**.:

![Untitled.png](https://community.atlassian.com/t5/image/serverpage/image-id/190481iB09AB37A5EC5E4DC/image-size/large?v=v2&px=999 "Untitled.png")I wonder what went wrong, am I missing something?  
Where are these **logs mentioned in the error message**?

I'm kinda new to this, so any help would be appreciated..  
Thanks!  
TG.


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@talg1978](/t5/user/viewprofilepage/user-id/4803712) ,

plase check the atlassian-bitbucket.log file placed in \<YOUR_BITBUCKET_HOME_FOLDER\>/log/atlassian-bitbucket.log

Please attach the error that appears.

Fabio

comments: author: talg1978
body: Hi [@Fabio Racobaldo _Herzum_](/t5/user/viewprofilepage/user-id/781528) , thanks for your super quick response.

\[Edit\]: OK, I got my hands on the actual log I was looking for.

\[Edit#2\]: Fixed. (I used a deprecated class)


author: Fabio Racobaldo _Herzum_
body: you're welcome [@talg1978](/t5/user/viewprofilepage/user-id/4803712)


Tags: bitbucket-server

server
Please help me reset password I'm not receiving the reset password link
Asked by Letlhogonolo Lebogang:

I've tried sending it many times


Answers:
author: Caroline R
body: Hi, [@Letlhogonolo Lebogang](/t5/user/viewprofilepage/user-id/4845087), welcome to the community!

I checked the email linked to the account you used to create this question and confirmed it didn't have any blocks on the server. Is this email you are referring to? If that's the case, could you please test it again using the following link?

* [https://bitbucket.org/account/password/reset](https://bitbucket.org/account/password/reset/)

Please let me know how it goes and feel free to share any additional information regarding this case.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
List all Commits a day
Asked by Carsten Giesen:

Hello,

I'm looking for a way to see a list of all commits in our Bitbucket project.  
I am particularly interested in who committed what where and when.  
Thanks

Carsten


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@Carsten Giesen](/t5/user/viewprofilepage/user-id/3101138) ,

try using the following app [https://marketplace.atlassian.com/apps/1210934/awesome-graphs-for-bitbucket?hosting=cloud\&tab=overview](https://marketplace.atlassian.com/apps/1210934/awesome-graphs-for-bitbucket?hosting=cloud&tab=overview) and, in particular, use the following graph <https://docs.stiltsoft.com/awesome-graphs/data-center-and-server/commits-analytics/commits>

Hope this helps,

Fabio

comments: author: Carsten Giesen
body: Hi,

many thanks, I play arround with awesome-graphs. Very nice, but not what I'm looking for. Or with other words it's usefull no question.

What I realy need, ist a normal list of all commits.  
Just Name, Repro, DateTime

It's a kind of 'working' monitoring.

cu

Carsten


Tags: bitbucket-cloud

cloud
Why BitBucket Cloud is showing a different size than my local repo?
Asked by MCSAEP:

Hi,

I need help to run the git gc on our 3 remote repos stored in my bitbucket cloud because I already did all the steps to reduce locally the size but it has not synced in the cloud. I need a cleanup on a repos and any help is welcome, thanks.


Answers:
author: Caroline R
body: Hi, [@MCSAEP](/t5/user/viewprofilepage/user-id/4821031), welcome to the community!

I ran the GC against your repositories and managed to reduce their sizes.

I also would like to share with you that we have a feature request to allow users to mark repositories for git GC, as you can check here:

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

Please consider adding yourself as a watcher to receive the updates as we make progress with this. If you are not familiar with our Feature Request Policy, you can read more about it [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html).

Feel free to share any additional questions or concerns regarding this case.

Kind regards,  
Caroline

comments: author: MCSAEP
body: Great! Thank you so much!!! All fixed now!


author: MCSAEP
body: Hi,

I need help again ASAP to run the git gc on our 3 remote repos stored in my bitbucket cloud because I already did all the steps to reduce locally the size but it has not synced in the cloud. I need a cleanup on a repos and any help is welcome. I already create a new question for the issue, thanks.


author: brianjaod
body: Can you please run gc on my private repos too? I've already done the history rewrite commands, but the size on your end is still showing really high.

Thanks,

Brian

comments: author: brianjaod
body: Edited


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


author: Caroline R
body: Hi [@brianjaod](/t5/user/viewprofilepage/user-id/3198170),

I would like to ask if you could please create a new question for your issue, providing details on the errors you see and also whether it concerns a Bitbucket Cloud or Bitbucket Server repo.

We generally encourage users to create a new question for their issue instead of posting on someone else's question, because 1) the root cause and resolution may be different for each case 2) a question can become cluttered and difficult to follow if we try to troubleshoot multiple users' issues in it.

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

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
Verify your email
Asked by Mohamed Talaat Abdel-Moniem:

Hello there,

while I'm trying to login to bitbucket by valid email address and password, i got "To complete setup and log in, click the verification link in the email we've sent to email" message and no emails sent to me.


Answers:
author: Theodora Boudale
body: Hi [@Mohamed Talaat Abdel-Moniem](/t5/user/viewprofilepage/user-id/4843376) and welcome to the community.

I would like to ask a few questions so we can better help you:

**1.** Can you please confirm if you are trying to log in to Bitbucket Cloud (<https://bitbucket.org/>)?

Your question has the tag 'unknown-hosting-type', so I just want to make sure.

**2.** Are you trying to log in with the same email as the one of your community account?

There is a Bitbucket Cloud account with that email, however, its primary email address is already verified. Have you received the verification email since you posted?

**3.** In case you are trying to log in to Bitbucket with a different email address of yours, are you able to log in to <https://community.atlassian.com/> with that email? I will then be able to view that email and check the status of the account, and also whether the email is blocked.

If you are not able to log in to <https://community.atlassian.com/> with the email address you use when you try to log in to Bitbucket, please feel free to let me know and I can create a support ticket for you so you can share the email address privately.

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

Kind regards,  
Theodora
Post deployment API calls to Test Runner - is this possible?
Asked by Corry Littlefair:

Prior to BB cloud, we were using Jenkins for our deployment. Post deployment we were able to send an API Post to Runscope in order to trigger post deployment testing of our API's.

I cannot find anything on BitBucket to explain how we can do this? Just want to make a simple API call to an external product - not even bothered about waiting for any results.

Please - any assist appreciated.


Answers:
author: Mark C
body: Hi [@Corry Littlefair](/t5/user/viewprofilepage/user-id/4843309)

Welcome to the community.

Based on your description, it appears the suitable solution for this is by using [Bitbucket Pipelines](https://bitbucket.org/product/features/pipelines).  
Bitbucket Cloud Pipelines allows you to build, test, and deploy your code based on your preferred triggers.

* Check this page to get started with Bitbucket Cloud Pipelines - [Get started with Bitbucket Pipelines](https://support.atlassian.com/bitbucket-cloud/docs/get-started-with-bitbucket-pipelines/)

After the deployment, you can then implement the configuration called **[after-script](https://bitbucket.org/blog/after-scripts-now-available-for-bitbucket-pipelines)** where you can run commands/scripts after the deployment is done.

Hope it helps and do let me know if you have further questions.

Regards,  
Mark C

comments: author: Corry Littlefair
body: Excellent.

I sort of knew this was possible and with your response got help from the development team in order to get this working.


Tags: api

bitbucket-cloud

cloud
Consumer oauth push to repository with branch permission
Asked by Amit Blumshtien:

Hey there,

We have a CI/CD process that pushes files to git to our main branch which has branch permission enforcement, we are using to push and pull with consumer OAuth, but the push failed with that method (has read and write permission).  
what setting should I set to make it work without creating an additional user in our organization?

thanks.


Answers:
author: Mark C
body: Hi [@Amit Blumshtien](/t5/user/viewprofilepage/user-id/4843039)

Welcome to the community.

Unfortunately, while using Bitbucket Pipelines, it's not possible to push back to your repository with branch permission enabled without using a bot account (or additional user).

We do have an existing feature request for it that can be located through this link. - <https://jira.atlassian.com/browse/BCLOUD-20344>  
You can upvote and watch it for now so that you'll be notified of any updates from our team when the feature becomes available on Bitbucket Cloud.  
![](https://getsupport.atlassian.com/images/icons/emoticons/information.png) Please do note that we don't have an exact ETA for the feature request as all new features will be implemented according to our policy [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html).

Do let me know if you have further questions that I can help with.

Regards,  
Mark C


Tags: bitbucket-cloud

cloud
How to set multiple production and development branch in single repository bitbucket?
Asked by karan_shukla:

Currently by default Master branch is set and you can select any 1 branch as Production branch and 1 branch as development branch.

but what if we have multiple Production and Development branch  

Ex:  
Master branch (Production branch for main site)  
Development (Development branch for main site)  

subDomainMaster (2nd Production branch for subdomain)  
subDomainDevelopment (2nd Development branch for subdomain)  

subDomainTwoMaster (3rd Production branch for subdomain 2)  
subDomainTwoDevelopment (3rd Development branch for subdomain 2)  

for this type of scenario how we can set it and commit flow also work independently.


Answers:
author: dlaser
body: This is a git feature. I think your requirement is to have each subDomain have it's own branch. This way you can push the features into each branch. Since git lets you have branches You should try a Branching Model like this:  
Main:  
Production  
release/SubDomian1  
release/SubDomain2   
Development/SubDomian2Dev   
Development/SubDomian2Dev

This way you organize your branches where Development branches feed into Production or Release. The branches under Release are treated like Mains. Everything then feeds back into the default branch eventually. Production acts like the main branch for all of the subdomains, while each subdomain gets it's own default branch. But you could also have something as complicated as this is you need it:

Main:  
Production:  
Release/MainSub1/Domian1  
Release/MainSub2/Domain2   
Development/Sub1/Domian1Dev   
Development/Sub1/Domian2Dev   
Development/Sub2/Domian1Dev  
Development/Sub2/Domian2Dev

The added branch directores can describe the intended purposes of each branch to help you keep track of the branches and avoid human error. This will assist in searches. But you should also vote for [BCLOUD-9368](https://jira.atlassian.com/browse/BCLOUD-9368) and [BCLOUD-14286](https://jira.atlassian.com/browse/BCLOUD-14286). BCLOUD-9368 would allow you to set the default merge branch. BCLOUD-14286 would do some of the merging for you.

But really git allows you to create any arbitrary branch name in folders. You can use the branches in any way you would like. The Feature Requests listed will only help keep out human error.


Tags: bitbucket-cloud

bitbucket-development

branch

cloud

development

production
Is there a way to fetch tags in bitbucket with filtering on created_at date?
Asked by gaurav chandra:

<https://developer.atlassian.com/cloud/bitbucket/rest/api-group-refs/>

The query params on bitbucket api page support filtering, but it's not mentioned if it's applicable to tags API.

To have a query parameter which has updated_at, created_at dates on queries which give the tags which were created after that query parameter.


Answers:
author: Patrik S
body: Hello [@gaurav chandra](/t5/user/viewprofilepage/user-id/4841917) ,

Welcome to Atlassian Community!

I'm afraid it's currently not possible to query/sort by date in the [tags API endpoint](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-refs/#api-repositories-workspace-repo-slug-refs-tags-get) , however, I went ahead and created a feature request to implement that functionality, which you can find in the link below :

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

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 in mind: <https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html>

Thank you, [@gaurav chandra](/t5/user/viewprofilepage/user-id/4841917) .

Kind regards,

Patrik S
Unable to delete first bitbucket-pipelines.yml Pipeline and unable to create new pipeline
Asked by Mohsan:

Hi,

In my bitbucket repository I am unable to edit/modify or delete my first pipeline (using bitbucket-pipelines.yml).

Moreover there is not any option displaying to create new pipeline.


Answers:
author: Caroline R
body: Hi, [@Mohsan](/t5/user/viewprofilepage/user-id/4209673), thank you for reaching out to Atlassian Community.

Could you please confirm if you can edit other files under this repository? Is this happening to other users as well? Do you receive any errors when you try to edit it?

Please feel free to share any additional information regarding this case.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
project invitations are not sent to users
Asked by A_Maged:

Hi,

I'm unable to invite any email to a certain project. no invitation reaches the target email!


Answers:
author: Fadoua
body: [@A_Maged](/t5/user/viewprofilepage/user-id/4841096)

How about notifications from projects are you getting them? When someone updates an issue?

Did you run the test from the admin console see if you are getting emails?

Let me know if you need more assistance.

Best,

Fadoua
I cannot figure out what other account my ssh key is deployed in
Asked by azerghadhoun:

![2022-03-26_19-07.png](/t5/image/serverpage/image-id/190096i7D3FF2ADAC2C893D/image-size/large?v=v2&px=999 "2022-03-26_19-07.png")  

I got this, and I want to delete my public key from the other account that i dont know which.  
Thanks


Answers:
author: Caroline R
body: Hi, [@azerghadhoun](/t5/user/viewprofilepage/user-id/4841006), welcome to the community!

As we will need to know the public ssh key to further investigate this case, I have created an internal ticket for you using the email of your community account, so you don't have to share this information here.

You should have received an email with a link to the support ticket. Just in case you haven't received it, please feel free to let me know and I can post the ticket URL here. The ticket will be visible only to you and Atlassian staff, no one else can view its contents even if they have the URL.

Please feel free to share any questions if needed.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
Why I cannot use my bitbucket repos from Sourcetree?
Asked by Giczoe:

About 10 days ago my connection from Sourcetree to my free Bitbucket account interrupted, and from then I cannot use nothing in the Bitbucket. Every time it asks me to log in to Atlassian, but it doesn't work.

When I try to connect (e.g. click the Remote icon in the Sorcetree) then it tries to open my Bitbucket account. After my account has opened a "sand glass" starts and if I click the upper left menu icon, then a message appears:

### "Something's gone wrong {#toc-hId-1318068244}

We keep track of these errors, but feel free to contact us if refreshing doesn't fix things."

From 10 days!! What is it?


Answers:
author: Caroline R
body: Hi, [@Giczoe](/t5/user/viewprofilepage/user-id/4840682), welcome to the community!

This seems to be related to an authentication issue. In this case, I suggest you redo this connection by following the next steps:

* On Sourcetree, delete all accounts you have set up;

* In bitbucket, go to [**Personal settings**](https://bitbucket.org/account/settings/) \> **App authorizations** and delete the connection that Sourcetree has created;

* After that, try to reconnect it directly from Sourcetree.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
i have a bitbucket account, which am not able to access.
Asked by Meera Ramachandran:

I have a bitbucket account which am not able to access as its saying incorrect password.

The email i used for that account no longer exist.


Answers:
author: Fadoua
body: [@Meera Ramachandran](/t5/user/viewprofilepage/user-id/4840669)

In that case it will be hard if not impossible to access your account. If Atlassian wants to send an email to reset your password they will use the email on file which is the one you no longer have access to.

Best,

Fadoua
Unable to see Jenkins Builds. Error: "No Configuration Found".
Asked by Art Guerra:

In our BitBucket repository settings, we have created both a hook and webhook for Jenkins.

When I edit the webhook and click the Test Connection button, I receive a successful HTTP 200 response. When I edit the hook, go to the General Settings and click Trigger Jenkins, I see the Connection Succeeded message. When we view our Pull Requests, we can also successfully trigger a build in Jenkins.

However, if I click Builds, no builds are shown and I receive the error message "No configuration found - We could not find any Jenkins instances credentials configuration for the hook."

I am not sure what I am missing here. Where would these missing credentials need to be specified? Does anyone have any insight into this message and how to get our Jenkins builds showing for us?

Thank you; any assistance is most appreciated!


Answers:
author: Alex Dobkin
body: I have the same issue. Jenkins plugin is configured on bitbucket and it triggers the build but i get this error when I go to "Builds" in Bitbucket


author: Martin Ninaj
body: We have same issue


author: drs9222
body: I'm also having this issue. I can see builds on the branches page, but not the builds page.


Tags: bitbucket-server

server
Does Bitbucket have anything similar to TC Service Messages or GH Pipeline Commands
Asked by Michael Clayton:

Hi,

I'm looking at consolidating a bunch of fragmented CI processes from other SCM / CI platforms into Bitbucket cloud Pipelines.

Does Bitbucket have anything similar to TeamCity Service Messages or GitHub Workflow Commands that parses build logs for specially formatted stdout / log output that can be used to control build behaviour? I've not been able to find any documentation, but maybe I'm missing something.

A simple example would be calculating and updating the current build number with a TeamCity Service Message, or setting the build to "failed", but I'm interested in whether there's any documentation for a general feature rather than trying to solve these specific examples...

Thanks,

Mike


Answers:
author: Theodora Boudale
body: Hi Mike,

I'm afraid that we don't have something similar in Bitbucket Pipelines.

For the specific examples you mentioned:

- a pipelines build's number cannot be modified

- a pipelines build will fail if a command exits with a non-zero code, so you can force a build to fail with an if statement that returns a non-zero exit code if a condition is not met

You would need to do the parsing yourself though.

If there are some other specific examples/actions that you're interested in, please feel free to let us know, as there might be another way to achieve them.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Cannot query on Bitbucket REST Api endpoint /deployments/
Asked by martin-paucot:

Hi,

When a build is finished, we receive the Webhook "repo:commit_status_updated".

With this webhook we are trying to get the environment (if there is one) of the build that triggered the event.

Unfortunately the environment is not available in the payload neither in \`/pipelines/{build number}/steps\`.

We can gather it using the \`/2.0/repositories/{workspace}/{repo_slug}/deployments/\` endpoint but query and sort does not work.

The query is simply ignored :

```
GET?https://api.bitbucket.org/2.0/repositories/kmp-agency/test/deployments/?q=release.commit.hash = "597957cc354cad2b0737e4eae0c080209a235c0f"
```

And the sort parameter returns the error

```
{
"key": "deploy-service.request.bad-request",
"message": "Invalid sort attribute provided 'number'",
"arguments": {}
}
```

How can we acheive what we want ?

Thanks in advance


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

I'm afraid that sorting and filtering are not supported with the deployments endpoint.

We have a feature request about this in our issue tracker:

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

If you'd be interested in that, I would suggest adding your vote to the feature request (by selecting the **Vote for this issue** link) as the number of votes helps the development team and product managers better understand the demand for new features. You are more than welcome to leave any feedback, and you can also add yourself as a watcher (by selecting the **Start watching this issue** link) if you'd like to get notified via email on updates.

Implementation of new features is done as per our policy [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) and any updates will be posted in the feature request.

Until this is implemented, you could retrieve all deployments via API and then use another tool that filters JSON data, like jq, in order to filter the results.

Kind regards,  
Theodora


Tags: api

bitbucket-cloud

bitbucket-pipelines

cloud

rest-api
SQL Injection vulnerability?
Asked by at-delivery:

In a scan the SQL Injection vulnerability was identified, is there any configuration or patch for this vulnerability?


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

Without knowing what the vulnerability is, we can't tell you. What do you think you've found here? Could you explain more?


Tags: bitbucket-server

server