youngmon/atlassian-qna huggingface dataset:
Hash format in Pull Request event payloads (Webhooks)
Asked by Rimas Luksys:

Hi there,

Is there a reason why Pull Request event payloads include just a part of Git commit hash (first 12 characters) rather than all 40 characters?

```
`"commit" : { "hash" :  "d3022fc0ca3d" }`
```

Repository event payloads include full Git commit hashes:

```
`"target": {`  `"type": "commit",`
  `"hash": "d3022fc0ca3d65c7f6654eea129d6bf0cf0ee08e",`
`  ...`
```

Are there any plans to change this in the future?

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

Thank you!


Answers:
author: Theodora Boudale
body: Hi Rimas,

We have a report about this in our issue tracker:

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

The first two comments in that issue are from our developers, you can read them for an explanation of why this is occurring as well as workarounds on how to get the full hash.

If we change this now there is a risk of breaking any client or application that was dependent on only the short version of the hash. So any solution would need to take this into account as well and it's not likely that this will be fixed in the short term.

I would recommend selecting the option "This affects my team" in the bug report to indicate you are affected by this and you are also welcome to leave a comment with your feedback there. You can also select the "Start watching this issue" option in the ticket if you'd like to get notified via email on updates.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
extra zip file is created during support zip creation
Asked by abhishek v kadival:

hello all ,

i am creating support zip files from rest call for our bit bucket cluster .

/rest/troubleshooting/latest/support-zip/cluster refer : [Create a Support Zip](https://confluence.atlassian.com/support/create-a-support-zip-790796819.html)

but i am always getting extra file for a single node

we have a cluster with 4 nodes where rest call is creating a extra zip for a single node .

can any one help me in understanding this behavior .


Answers:
author: abhishek v kadival
body: problem solved after update of bb to 7.21.X


Tags: bitbucket-server

server
You can use git to connect to Bitbucket. Shell access is disabled
Asked by vadirajks:

Hi Team

is it possible to use same key for 2 different bitbucket account's?  
getting this error when i am trying to add keys:  
Someone has already added that SSH key.  
Please let me how to fix this.  
Thanks,


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

It is not possible to add the same SSH key to two different Bitbucket Cloud accounts.

When a user performs an operation like clone or push via SSH, we use the SSH keys to identify the authenticated user.

If we allowed adding an SSH key to multiple accounts, we wouldn't be able to identify the user and whether they have permission to clone/pull/push to a specific repo.

If you have multiple accounts and if you want to use SSH with both, you will need to generate and use a separate SSH key pair for each account.

Kind regards,  
Theodora


author: Prerna Sony
body: Hi, [@vadirajks](https://community.atlassian.com/t5/user/viewprofilepage/user-id/3890188) Welcome to the community!

You can't use the same key between accounts. You must create new keys for each individual Bitbucket account.

comments: author: vadirajks
body: Hi Prerna Sony,

fyi, looks like i am not able to see your response.

Thanks,


author: Prerna Sony
body: Hi, [@vadirajks](/t5/user/viewprofilepage/user-id/3890188) Welcome to the community!

You can't use the same key between accounts. You must create new keys for each individual Bitbucket account.

In case you would like to read more about SSH keys, you can access the following link:

* <https://support.atlassian.com/bitbucket-cloud/docs/set-up-an-ssh-key/>

I hope this helps .


Tags: bitbucket-cloud

cloud
How to get AZURE_PASSWORD (*)
Asked by Unni Krishnan:

I need to configure azure cli in bitbucket pipeline.

Mention the steps to create AZURE_PASSWORD from azure


Answers:
author: Igor Stoyanov
body: [@Unni Krishnan](/t5/user/viewprofilepage/user-id/5036034) hi. Thanks for your question.

You should set repository variable AZURE_PASSWORD with value you configured on azure portal.

[How to setup repository variables](https://support.atlassian.com/bitbucket-cloud/docs/variables-and-secrets/#Repository-variables)

Secrets section on azure portal

![Screenshot 2022-09-23 at 14.40.48.png](https://community.atlassian.com/t5/image/serverpage/image-id/217503iB322EB602E50353D/image-size/large?v=v2&px=999 "Screenshot 2022-09-23 at 14.40.48.png")

Regards, Igor


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

What do you mean "get" Azure password? What password? Shouldn't you know what it is if you set it?


Tags: azure

bitbucket-pipelines

cloud

kubernetes
How do I generate HTTP access tokens?
Asked by C.B. Ladd:

I've read [this documentation.](https://confluence.atlassian.com/bitbucketserver/personal-access-tokens-939515499.html)

It indicates that "tokens can be created for teams to grant permissions at the project or repository level rather than for specific users" which is precisely what I'm looking to do.

It also says that to create such a token one must be a project or repo admin.

I am in the administrator group for this organization and my projects and repos.

It says that in "the **Project** or **Repository settings** , select **HTTP access tokens**."

I do not see HTTP access tokens in the Project or Repository settings.

What am I missing?

Thank you in advance!


Answers:
author: Ben
body: G'day!

Welcome to the Bitbucket Cloud community! :)

The documentation that you are referring to is for Bitbucket Data Centre, rather than Bitbucket Cloud (as indicated by the tags that this ticket is logged under).

The equivalent for Bitbucket Cloud is Repository Access Keys (read access) which are SSH-based and are configured in Repository Settings \> Access Keys, or App Passwords which are configured at the account level in Personal Settings \> App Passwords that can be used for API calls:  
<https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/>

Hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
User mistakenly pushed very large file - how can I clean up the repo?
Asked by Chris Nightingale:

Hi, a user (actually the owner of a repo I am an admin in) just mistakenly pushed a .FBX file containing \~700MB of textures to our repo, along with several other large texture files. Following this I was unable to fetch the repo, or even to view the Commit page for that commit - the webpage timed out. I advised them to make a local backup of their branch and then deleted the offending branch from the repo in BitBucket, as I couldn't fetch it myself to reset the branch.  

This has allowed me to fetch the repo again, but I am unable to push as the repo is now 4.58GB, over the 4GB limit - we were at around 1.5GB before.

I have turned on, and asked them to turn on, "Delete dangling commits when over size limit", but this has had no effect. [This page](https://support.atlassian.com/bitbucket-cloud/docs/reduce-repository-size/) says to raise a support ticket to run git gc on the repo, but I cannot see how to do that, as the support page directs me here.  

In the near future I will be setting us up with LFS - I could just really do to get things moving again right now!


Answers:
author: Ben
body: G'day Chris!

Welcome to the Bitbucket Cloud community! :)

The reason you have been directed here is because you have contacted us from a free workspace - Free workspaces are only entitled to support from our Bitbucket Cloud community except if the issue relates to invitations for users not being received.

I have performed a garbage collection in the backend to reduce your repository size from 4.58GB to 783.1MB.

I would suggest following the below article in future for when you need to convert to GIT LFS:  
<https://support.atlassian.com/bitbucket-cloud/docs/reduce-repository-size/>

Hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: Chris Nightingale
body: Hi Ben,  

Thanks so much!

Kind regards,

Chris


Tags: bitbucket-cloud

cloud
Bitbucket WebHooks ssl error
Asked by Stijn Coussement:

We where using bitbucket v6.10 untill yesterday we updated to V7.21.4.

Before the update the webhooks where working fine. no problems connectin our jenkins instance what so ever. But today after the update I get the following error:

```
An SSL error occurred, please check that the provided resource uses https.
```

The url of the webhook didn't change and on the Jenkins side we didn't change anything as well.

Why do I get this error now and how can I resolve this?

What can i check to get more detailed error messages as this doesn't say much atm.

I already re-imported the bitbucket ssl certificate to our jvm in Jenkins but no luck on that.

Thanks for the assistance.


Answers:
author: Arnold Serrao
body: Hi, did you find a solution to this issue. I am facing the same issue and would like to know how to solve it. Thanks

comments: author: Stijn Coussement
body: Yes, we found the solution, it turned out that we forgot to add the SSL certificate of our Jenkins instance to the new docker container of the upgraded version. Apparently we have downloaded a new container and didn't upload the ssl.


author: Nicol?s Guzm?n
body: The comment above is correct, we have just faced the same problem and the solution was to add the SSL certificate in the Bitbucket server.

We struggled with this after an upgrade to version 7.21.7


author: Ibrahim Buamod
body: I do have a self-signed certificate will that work, after adding the certificate I am still having the same issue


Tags: bitbucket-server

jenkins

server

ssl

webhook
Rename adminPage settings panel
Asked by Yauheni Kuzmianok:

Hello Community,

I'm developer and trying to add new section in bitbucket cloud for repository settings. So I've added "adminPage" item in atlassian-connect.json. The new section is displayed but have the name of add-on.

I'm wondering is it possible to rename "adminPage" header name as currently it gets the name from descriptor as add-on name but I need to customise it with my own label


Answers:
author: Theodora Boudale
body: Hi Yauheni,

I don't know if that's possible, I just wanted to suggest posting your question in the developer community as well, which is specifically for development questions:

<https://community.developer.atlassian.com/c/bitbucket-development/bitbucket-cloud/13>

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

development
Is Atlassian having Bitbucket certification?
Asked by Sasikumar Viswanathan:

Is Atlassian having Bitbucket certification? if not, is Atlassian have any plan to start Bitbucket Certification? please advice.

Thanks,

Sasi


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

I checked with the responsible team and they confirmed we currently don't have a Bitbucket certification on the roadmap this year.

Kind regards,  
Caroline

comments: author: Sasikumar Viswanathan
body: Hi [@Caroline R](/t5/user/viewprofilepage/user-id/3934006) ,

Thank you so much for your assistance in verifying certification.

Thanks,

Sasi


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

is it on the roadmap this year?

Kind regards,

Julian


Tags: bitbucket-cloud

cloud
Unable to reach bitbucket site
Asked by AYUSHI PADHA:

I am connecting to bitbucket site for the long time by Chrome, Firefox and Internet Explorer but it can't be reached.

How to get connected to this site as soon as possible ?


Answers:
author: Theodora Boudale
body: Hi [@AYUSHI PADHA](/t5/user/viewprofilepage/user-id/5035287),

We've had some reports from users seeing an error that includes DNS_PROBE_FINISHED_NXDOMAIN and we are looking into it.

In case you see the same in the error message in your browser, I would suggest

* Try using Google DNS below and check if the site gets resolved afterwards:  

  8.8.8.8  
  8.8.4.4  

* You can try entering the following in the hosts file of your machine and then check if Bitbucket website is loading  

  ```
  104.192.141.1 bitbucket.org
  ```

  <br />

  Please note that in case it works, it should be a temporary workaround as Bitbucket IPs could change at any time.  

* Reach out to your ISP to report this and ask them if there is an issue with routing from their network to Bitbucket

If you see a different error, please let us know the exact error message you are seeing as Charlie asked.

Kind regards,  
Theodora

comments: author: AYUSHI PADHA
body: Thank you so much [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) !! Your kind suggestions are very helpful.

Problem is resolved and I can access my bitbucket account without any delay ..

Thanks !!


author: Charlie Misonne
body: Hi [@AYUSHI PADHA](/t5/user/viewprofilepage/user-id/5035287)

Welcome to the Atlassian community!

What do you get in your browser?

Any chance your company blocks traffic to Bitbucket? [Here is a list of IP addresses](https://support.atlassian.com/bitbucket-cloud/docs/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall/) that should be witelisted.

comments: author: AYUSHI PADHA
body: Thank you [@Charlie Misonne](/t5/user/viewprofilepage/user-id/502263) !!

My browser was showing -

**This site can't be reached**

check if there is a typo in bitbucket.org.

If spelling is correct, try running Windows Network Diagnostics.

**DNS_PROBE_FINISHED_NXDOMAIN**

Reload

But now, the issue has been resolved and I am happy and would appreciate the way you

reached out and provide valuable suggestions and support.

Thanks !!


author: Charlie Misonne
body: I'm glad [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) was able to resolve your issue :-)


Tags: bitbucket-cloud

cloud
Wildcards in Required Builds
Asked by Rene Wittmann:

The Required Builds option enables us to specify which builds have to be taken into account for merging. This is quite good and powerful, but I wonder whether it is even more powerful and lets you use wildcards for the Bamboo plan/project names.

I haven't seen this option documented (for branch name exclusion it is documented).

Are wildcards allowed? Or is there the possibility to 'forget" newly created Bamboo plans for the project?


Answers:
author: tadhgakamai
body: It doesn't work for me in Jenkins, but I would also like to have this feature.


Tags: bitbucket-server

server
Duplicate - SourceTree not loading.
Asked by Matt Sharp:

Hi Folks, just downloaded SourceTree as a part of my University Assignment. I've cleared the Temp, re-installed (or attempted to at least anyway) and I'm still failing to get it loading. My UAC is set to never notify, so I don't need to "Run as admin".

<br />

Any Ideas?  
Cheers.

```
ERROR [2017-10-05 13:28:21,182] [1] [SourceTree.App] [.ctor] - finish EnsureSquirrelExecutionStubIsCopied
ERROR [2017-10-05 13:28:21,316] [1] [SourceTree.App] [OnStartup] - Failed to start
System.NullReferenceException: Object reference not set to an instance of an object.
 at SourceTree.Notifications.NotificationsManager.SetOwner(NotificationDialogWindow notificationWindow)
 at SourceTree.Notifications.NotificationsManager.ShowNotificationDialog[T](NotificationDialogWindow notificationWindow, Tuple`2 customAction, VistaTaskDialogIcon icon)
 at SourceTree.Notifications.NotificationsManager.ShowNotificationDialog[T](String title, String message, Tuple`2 customAction, String cancelLabel, String suppressionSetting, Action`1 suppressionChangedAction, Object contentControl, String contentCommandLabel, Action contentAction)
 at SourceTree.Notifications.NotificationsManager.ShowNotificationDialogWithYesConfirmation(String title, String message, String details)
 at SourceTree.Configuration.WpfSpellCheckerPreFlightCheck.Run()
 at SourceTree.AppRoot.RunPreFlightChecks()
 at SourceTree.AppRoot.OnStartup(StartupEventArgs e)
 at SourceTree.App.OnStartup(StartupEventArgs e)
```


Answers:
author: Matt Sharp
body: [After searching and searching, this worked for me.](https://jira.atlassian.com/browse/SRCTREEWIN-7898?focusedCommentId=1617586&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-1617586 "Answer")
when i clone new project in mamp(mac) at that time fetching some error like this in SourceTree.
Asked by vipul onus:

git -c filter.lfs.smudge= -c filter.lfs.required=false -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree clone https://CloanURL/htdocs/new_stock

Cloning into '/Applications/MAMP/htdocs/new_stock'...

warning: templates not found /usr/local/git/share/git-core/templates

error: RPC failed; curl 56 SSLRead() return error -36

fatal: The remote end hung up unexpectedly

fatal: early EOF

fatal: index-pack failed

Completed with errors, see above


Answers:
author: bgannin
body: Did the clone begin and terminate prematurely or did it not start at all?


Tags: git

mac
Source Tree Not Able to register Email Add
Asked by Kumar.Abhishek@macquarie.com:

Atlasslian Source-Tree 2.1.2.5 not able to register on install. Multiple versions are affected due to this issue .

I now have two users with this issue, all basic trouble shooting has been done (reinstall/clear internet settings etc).

Has anyone else seen this?![22181214_179859575915854_732364748453067085_o.jpg](/t5/image/serverpage/image-id/7252i3C2C812E62E5B10D/image-size/large?v=v2&px=999 "22181214_179859575915854_732364748453067085_o.jpg")


Answers:
author: bgannin
body: We're working with the Identity team to track down the issue. Thank you for your patience.

comments: author: Kumar.Abhishek@macquarie.com
body: Hi Brian

Any update on this issue ?


author: Ana Retamal
body: Hi Kumar! This issue has been reported in several Community threads and also in our issue tracker at [SRCTREEWIN-7244](https://jira.atlassian.com/browse/SRCTREEWIN-7244). The development team is currently working on it together with the id.atlassian.com team. One of our developers suggested a few workarounds in that page, please follow them and let us know if they worked for you. I also recommend you to watch the bug ticket to get notifications about any updates or new workarounds that might arise.

Hope that helps!

Ana

comments: author: Kumar.Abhishek@macquarie.com
body: Hi Ana

I have tried the workaround but some of them are not allowed in our environment . and this is already affecting most of our users . Please suggest how soon we will have a fix regarding this issue .
SourceTree shows files I need to commit right after cloning
Asked by carolyn cheng:

I just clone the repository, sourceTree already shows me I have modified 54 files and I need to commit them. But I haven't done anything yet


Answers:
author: Ana Retamal
body: Hi Carolyn, can you send us a screenshot so we have a better understanding of what's happening?

Also, please remember to tell us which Sourcetree version and OS are you using.

Cheers!

Ana
Sourcetree External Diff: Deleting temporary files
Asked by Eric Feigenson:

When I do an External Diff, it creates some workfiles with the strings _BACKUP_, _BASE_, _LOCAL_ and _REMOTE_ in them. These files remain even after the diff is done. I'd like them to be deleted after the external diff.

Can Sourcetree do that, or do I have to write my own script?

Sourcetree version is 2.6.3 (134)

Beyond Compare Version 4.2.2 (build 22384)

MacOS 10.11.6

Thanks!


Answers:
author: bgannin
body: Sourcetree doesn't actually generate the temp files (here's [an example](https://stackoverflow.com/questions/6978501/git-difftool-problem-unable-to-create-temp-file) of how it can go rogue) we just specify the diff command to be run and the argument format. It should be written to a temporary directory in */var* or the like and cleaned up when the system next purges it. If it's that sensitive I'd recommend a script which you could then invoke as a custom action within Sourcetree.

Brian Ganninger  
Senior Mac Developer, Sourcetree

comments: author: Eric Feigenson
body: Hi Brian, thanks for your reply, and the stackoverflow link. That should be enough to get me moving in the right direction.


Tags: diff
sourceTREE atlassian account
Asked by jbouliere:

Hello,  

we intend to buy a license BITBUCKET server and use SourceTREE. As we have many developers can you tell me if is necessary to have an atlassian account to take advantage of SourceTREE ?  

Thks,  

Julien bouliere  
COVEA company


Answers:
author: Mikael Sandberg
body: Yes, you need a my.atlassian.com account (which is free to setup). During the install of SourceTree you will be asked to either enter an existing account or create one.
'git status' failed with code 128 on SourceTree
Asked by Lorenzo Arena:

![error_encountered.png](/t5/image/serverpage/image-id/7221i087058232C8E90B0/image-size/large?v=v2&px=999 "error_encountered.png")

Hello,

I get this error almost every time I change a file tracked by lfs. I tried to switch between embedded or system git but without results.

I am using:

* SourceTree v2.3.1.0
* Embedded Git v2.14.1 + git-lfs v2.0.2
* Disabled LibGit2 integration
* Windows 10

If I try to run

```
git lfs logs last
```

I get (\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* only to hide real paths):

```


$ git-lfs.exe filter-process
Unable to move H:\***********************\.git\lfs\tmp\104500565 to H:\***********************\.git\lfs\objects\0e\1e\0e1ebb73a03194b335e13e247e67f623fe7f61a47545d054fdc2078df0d027d9


rename H:\***********************\.git\lfs\tmp\104500565 H:\***********************\.git\lfs\objects\0e\1e\0e1ebb73a03194b335e13e247e67f623fe7f61a47545d054fdc2078df0d027d9: Accesso negato.

ENV:
LocalWorkingDir=H:\***********************
LocalGitDir=H:\***********************\.git
LocalGitStorageDir=H:\***********************\.git
LocalMediaDir=H:\***********************\.git\lfs\objects
LocalReferenceDir=
TempDir=H:\***********************\.git\lfs\tmp
ConcurrentTransfers=3
TusTransfers=false
BasicTransfersOnly=false
SkipDownloadErrors=false
FetchRecentAlways=false
FetchRecentRefsDays=7
FetchRecentCommitsDays=0
FetchRecentRefsIncludeRemotes=true
PruneOffsetDays=3
PruneVerifyRemoteAlways=false
PruneRemoteName=origin
AccessDownload=none
AccessUpload=none
DownloadTransfers=basic
UploadTransfers=basic
GIT_CONFIG_PARAMETERS='color.branch=false' 'color.diff=false' 'color.status=false' 'diff.mnemonicprefix=false' 'core.quotepath=false'
GIT_DIR=.git
GIT_LFS_PATH=C:\Program Files\Git LFS
GIT_PAGER=cat
GIT_PREFIX=
```


Answers:
author: Ana Retamal
body: Hi Lorenzo, are you using a mapped drive? H: looks suspiciously like a mapped drive and Git doesn't play nicely with those. If you are would you be able to switch to a local drive and see if the error persists?

Let us know!

Best regards,

Ana

comments: author: Shannon Romano
body: Hi Ana - I am having the same issue as Lorenzo and my repos are on a secondary drive on my computer. Due to size issues, this is how we need to have our workstations configured. Do you have any suggestions for changing permissions or anything else so that SourceTree will play nicely across drives?

Thanks

shannon


Tags: git

status

windows