youngmon/atlassian-qna huggingface dataset:
How to Create Hook Script in Bitbucket
Asked by Hudson Huang:

Hi,

I am going to write a hook to prevent users to push large files to bitbucket.

Search and get the following guide:

[Hook Scripts (atlassian.com)](https://developer.atlassian.com/server/bitbucket/how-tos/register-maintain-hook-scripts/)

I have setup the Atlassian SDK, and try to create some bitbucket plugin with hook module, but seems the demo code is so old, that i can't finish compile.

But as my understand, I don't need to create bitbucket plugin to add a script hook, right?

Is there anyone can help to give some demo of the following?

[Hook Scripts (atlassian.com)](https://developer.atlassian.com/server/bitbucket/how-tos/register-maintain-hook-scripts/)

Regards,

Hudson


Answers:
author: Hudson Huang
body: easy way to do that:

[How to Execute pre-receive hook after upgrading Bitbucket Server from 7.x to 8.x version \| Bitbucket Data Center \| Atlassian Documentation](https://confluence.atlassian.com/bitbucketserverkb/how-to-execute-pre-receive-hook-after-upgrading-bitbucket-server-from-7-x-to-8-x-version-1235848872.html)


Tags: bitbucket-data-center

bitbucket-server

data-center
Cannot push due to repository size is to big
Asked by Randi Junior:

Enumerating objects: 6, done. Counting objects: 100% (6/6), done. Delta compression using up to 8 threads Compressing objects: 100% (3/3), done. Writing objects: 100% (4/4), 369 bytes \| 369.00 KiB/s, done. Total 4 (delta 2), reused 0 (delta 0), pack-reused 0 remote: Repository is over the size limit (4 GB) and will not accept further additions. remote: remote: Learn how to reduce your repository size: <https://support.atlassian.com/bitbucket-cloud/docs/reduce-repository-size/#Rewind-history-to-undo-large-commits>.

I can not push due to reaching the sit limit of the repo.  

Please can someone run gc on my repo?


Answers:
author: Ben
body: Hi [@Randi Junior](/t5/user/viewprofilepage/user-id/5574391)

I've executed a gc, but this has only reduced the size by 100mb.

To troubleshoot this further - a support ticket is required for us to investigate your repository in the backend. Please raise a support ticket using the paid company workspace URL that you have access to - if you encounter issues raising a ticket, please let me know which timezone you are in so I can raise one with the appropriate team in your location:

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

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Cant find my friend's account when I try to search them and invite them into the repository.
Asked by Aljo Nicolo M. Andina:

I typed their exact email and username, but their account won't just pop up. The purpose for this is for us to collab for our project. Can someone help us? This is also my first time using bitbucket.


Answers:
author: Syahrul
body: G'day, [@Aljo Nicolo M. Andina](/t5/user/viewprofilepage/user-id/5574292)

Welcome to the community!

You will have to invite your friends to the workspace before they can collaborate with you. Please check our guide below on how to invite new users to your workspace:

[Grant access to a workspace](https://support.atlassian.com/bitbucket-cloud/docs/grant-access-to-a-workspace/)

Regards,  
Syahrul


Tags: bitbucket-cloud

cloud

collaboration

problem
Require linked Jira ticket as a pre merge check
Asked by Frank Rosalia:

I'm looking to add a functionality to our team's workflow which requires users to link a Jira ticket to a PR as a pre-merge check for merges to master branch. I'm not sure if this is something that exists out-of-the-box or if this is a good use case for [custom merge checks](https://support.atlassian.com/bitbucket-cloud/docs/set-up-and-use-custom-merge-checks/). Any advice is appreciated!


Answers:
author: Saxea _Flowie_
body: Hi [@Frank Rosalia](/t5/user/viewprofilepage/user-id/5574554)

This is not available out-of-the-box on Bitbucket. It is possible to implement using a custom merge check, although you need to develop and deploy our own app. Alternatively, an easier way is to use existing addons like [Flowie](https://flowie.app/docs/en/plugins/commit-policy) (which we provide) or Better Commit Policy. This [question](https://community.atlassian.com/t5/Bitbucket-questions/Custom-Commit-message/qaq-p/2752522) has some more details.


Tags: bitbucket-cloud

cloud

custom-merge-checks

jira
part of BITBUCKET_REPO_SLUG is replaced by a Workspace variable
Asked by fmq:

Hi all..

So basically I have workspace variable called ASYS_DOCKER_HUB_USER, the value is "audser", the project name is "<https://bitbucket.org/kurobits/api-audser>", now in my pipeline I have the following:

- echo $BITBUCKET_REPO_SLUG

witch I would expect to produce: api-audser

but it produces:

![slug.jpg](/t5/image/serverpage/image-id/343244i7F07A17BFA6736F0/image-size/large?v=v2&px=999 "slug.jpg")

so basically it's replacing part of the slug with the name of a variable that has the same value as part of the actual slug, any ideas as why this could be happening?

TIA


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

Welcome to the community!

Is the variable a secure variable? If it is, the echo command will not display its value in the logs, as secure variables are not exposed in this manner.

In summary, when you set a variable as secure, any attempt to echo it during the build steps will not reveal its value, ensuring its confidentiality

Regards,  
Syahrul

comments: author: fmq
body: Hey Syahrul

Well there are two variables in play here, on is a standard Bitbucket pipeline variable (BITBUCKET_REPO_SLUG) that represents the Slug of the repository and the one that I'm trying to use (the echo is only for demonstration purposes of what happens) , I would asume it's not a secure variable, the second variable is a secure variable (ASYS_DOCKER_HUB_USER) that it's value just so happens to be the same as part of the value for the repo slug, so, when I try to use the repo slug it will print out the NAME of the other variable.

Let's assume that:

$BITBUCKET_REPO_SLUG=api-audser  
$ASYS_DOCKER_HUB_USER=audser

any attempt of using $BITBUCKET_REPO_SLUG in the pipeline will turn out as:  
api-$ASYS_DECOKER_HUB_USER (instead of api-audser)

It is a very strange behavior.

Regards


author: Syahrul
body: Hi [@fmq](/t5/user/viewprofilepage/user-id/2316919)

Thanks for clarifying.

This behavior is expected. The reason is that the pipeline detects "audser" as a secure variable because you configured "$ASYS_DOCKER_HUB_USER" as such. Therefore, when you echo "$BITBUCKET_REPO_SLUG", it returns "api-$ASYS_DOCKER_HUB_USER" because "audser" is considered a secure variable, and thus, it is masked.

We have a feature request on this that I highly suggest you Vote and Watch them at:

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

Regards,  
Syahrul


author: fmq
body: Hi [@Syahrul](/t5/user/viewprofilepage/user-id/744536)

thanks for the response, I asume then that this only happens in the logs file but not on the actual pipeline?

Thanks!


author: Syahrul
body: Hi [@fmq](/t5/user/viewprofilepage/user-id/2316919)

Yes! This doesn't affect any of your pipeline build. It only masks in the build logs output.

Regards,  
Syahrul


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

pipelines
Request to Recover Deleted Bitbucket Project
Asked by MAS9:

Hello,  
I clicked a button with sync and push functionalities on my local environment, and it resulted in the deletion of the entire Bitbucket project.  
I still have the source code locally. Is it possible to recover the project?


Answers:
author: Brant Schroeder
body: [@MAS9](/t5/user/viewprofilepage/user-id/5574732) welcome to the Atlassian community

You will need to follow the instructions here: <https://confluence.atlassian.com/bbkb/reinstating-deleted-bitbucket-repositories-from-a-local-copy-1217301861.html>


Tags: cloud
I have made the commit and merged with master file but the changes are not deploying front end
Asked by SEO TEAM:

I have made the changes in Index.twig file and merged with the master file. Also I have approved the changes still the changes are not reflacting on the website front end.


Answers:
author: Charlie Misonne
body: Hi [@seo](/t5/user/viewprofilepage/user-id/4253851) and welcome to the Atlassian Community!

I'm not sure this is the right place to ask about your application not being deployed properly. We don't know anything about your environment and setup.

Do you have more details? And is this something that worked before and is now broken?

comments: author: SEO TEAM
body: What you need to know about the environment and setup.

Previously it was done by my developer but I am managing but somehow its not working.


author: Charlie Misonne
body: How do you deploy your code?


author: SEO TEAM
body: I made the changes in the template and them submitted the commit. After that, I approve than and merge with the master file.


author: Charlie Misonne
body: yes ok so your change is merged with master.

But what happens after that merge? Is a deploy mechanism being trigger with a (Bitbucket) pipeline?  
And if so, does that pipeline show any errors?

It is very unlikely that your code change on master will have an effect on your application just like that. There must be some kind of process performing the steps to apply the change in your application.  
Any insights on that?


author: SEO TEAM
body: I don't see either any deploy mechanism or any pipeline.

Guide me where i can find or do i need to take any step.


author: Charlie Misonne
body: Do you have anything under **pipelines** in Bitbucket?

It is likely that another process was put in place. Could be with scripts that were run manually or another CI/CD tool.

Best thing would be to ask your developer.


Tags: bitbucket-cloud

cloud
Unable to view Git commits on Crucible
Asked by madhu:

Hi Team,

We are unable to view the recent commits on your Crucible. Request your immediate assistance on the same.

Regards,

Sri Charan M S


Answers:
author: madhu
body: There were multiple issues in this case, which were

1. Permissions issue on the Crucible folder for the public key file.
2. Git Executable was somehow not present in the Crucible install directory
3. Finally after resolving bot the above, finally reindexing solved the issue.


author: Dave Theodore [Coyote Creek Consulting]
body: Sounds like you need to reindex the repo. If it's stuck reindexing, you may need to restart Fisheye.
MySQL won't start after setting server character set to UTF-8
Asked by Michael Weber:

I'm following the instructions at <https://confluence.atlassian.com/crucible/migrating-to-mysql-298977509.html> to get a Crucible evaluation installation running with MySQL 5.7.29 on Windows Server 2012 R2. If I follow the step to edit my.ini to set character-set-server=utf8, then upon the next attempt to start MySQL, it gets stuck in the starting state, with no new messages in the .err file to indicate what is wrong. Doesn't use CPU or disk, just stuck. And even after killing it with task manager and removing the character-set-server=utf8 line from my.ini, the same thing happens. Once this change is made, it always gets stuck starting, and I have not found a fix. I tried uninstalling / reinstalling MySQL, and the same thing happened. So with the third installation, I'm leaving the server at latin1 and creating the fisheye database set to the latin1 character set (given the note in the above link that the db and server character sets must match), and hoping for the best ...

Are there updated instructions available for getting MySQL running with Crucible with a utf8 character set?


Answers:
author: Gonchik Tsymzhitov
body: Hi [@Michael Weber](/t5/user/viewprofilepage/user-id/4004527) ,

Did you find some solution, please share ?
unable to login to Fisheye / Crucible
Asked by Areus GmbH:

Hi all,

all of the sudden all users are unable to login to fisheye / crucible, no matter if internal or external directory.

I created a local test user namend "fecru_test" and it says "FISHEYE USER" and "CRUCIBLE USER", however when I try to login, I get the error "Password incorrect or unknown user".

The debug logs don't tell a lot:

2020-07-10 01:48:32,357 DEBUG \[qtp1696263571-150 \] fisheye ProfilingServletFilter-logRequest - start request POST /login?password=XXXX\&atl_token=aa885226b84b6141b6420ad70097537b4c20db1b\&rememberme=on\&origUrl=\&username=fecru_test sessionid=node0rr5dbhst1q581lqu9sgr4hnq00

<br />

2020-07-10 01:48:32,363 DEBUG \[qtp1696263571-150 \] com.atlassian.crowd.manager.application.ApplicationServiceGeneric ApplicationServiceGeneric-findUserByName - Located user 'fecru_test' in directory 1 'Internal Directory'

<br />

2020-07-10 01:48:32,368 DEBUG \[qtp1696263571-150 \] fisheye DefaultUserManager-loginWithSanitizedUserName - Authentication for user fecru_test failed

<br />

2020-07-10 01:48:32,368 DEBUG \[qtp1696263571-150 \] fisheye DefaultUserManager-incrementFailedLoginsCount - User 174: fecru_test now has 5 failed login attempts

<br />

2020-07-10 01:48:32,391 DEBUG \[qtp1696263571-150 \] fisheye ProfilingServletFilter-logRequest - end request in 35ms POST /login?password=XXXX\&atl_token=aa885226b84b6141b6420ad70097537b4c20db1b\&rememberme=on\&origUrl=\&username=fecru_test sessionid=node0rr5dbhst1q581lqu9sgr4hnq00 200 mem=6.994MB

Does anybody have some tricks how to track this down?

Thanks, Osama


Answers:
author: Areus GmbH
body: Found out that after reverting back from 4.8.3 to 4.8.0 things are working.

Maybe I've missed something at the last update?

Will dig deeper...

/Osama
Best user management practices for Fisheye?
Asked by Courtney Dorsey:

Hi everyone,

We have added all users to a new directory in Crowd that syncs up with Fisheye, but I was wondering if there were any best practices you've found along the way for user management in the web interface.

Would it be to set up separate groups in Crowd for each repository/project, or set up groups in Fisheye itself for each? Or maybe just add individual users to the group?

Looking to see what others have done to make things easier. We currently only have a 50 person license, so it would be ideal to find out now before expanding.

We are currently running version 4.8.0.

Thanks all!


Answers:
author: Dave Theodore [Coyote Creek Consulting]
body: I would use the "keep it simple" model. If it's OK for everyone to have access to everything, why restrict? If you have 3rd party QA and you only want them to see certain things, you could create "employees" and "external" groups, populate them with the appropriate users and use those two groups to manage access. I wouldn't recommend using granular repo permissions unless you need to, though. It just seems to cause more problems than it's worth when we see clients doing this.

Assuming you are connecting Fisheye to Jira, there is a [permission](https://confluence.atlassian.com/adminjiraserver073/managing-project-permissions-861253293.html) called "View development tools" that controls which users have the repo details show up on the associated Issue. This is useful if you want your developers to see that information, but not your business users, for example.


Tags: confluence

crowd

group

user-management
Application link - unable to perform the steps because the help popup window hides the form
Asked by Sumeetha Thahira Salim:

I am trying to link JIRA server application with Crucible. I followed the steps in Crucible documentation Global Settings -\> Application Links -\> Entered the application URL -\> Clicked on "Create New Link" button

On doing the above a form to fill in the details appears, but is immediately replace by another popup window titled "What's new for application links". If you close the popup and try to perform the steps above again, the popup appears again. This goes on repeatedly even after trying in different computers.

I am using the 4.8 version of Crucible. Please suggest how to resolve this.


Answers:
author: Jason Dzillack
body: I vaguely remember having this issue.

I believe updating the java version fixed it.
Does Atlassian put Crucible in "Maintenance" mode ?
Asked by phillangevin:

I've just been told by a guy from SmartBear Collaborator that Crucible has been pushed in Maintenance mode by Atlassian so there is no plan for future improvements other than fixes.

Is this true ? Or just a very bad sales pitch ?

They told me that they are now an Atlassian Partner.


Answers:
author: phillangevin
body: It has already been answerd here:

<https://community.atlassian.com/t5/Fisheye-Crucible-articles/Fisheye-and-Crucible-are-entering-basic-maintenance-mode/ba-p/1269975>
How to install Crucible on windows?
Asked by Vishal_Koul:

I want to install Crucible on Windows to see how it works probably using free tier first and then I want to integrate it with my Bitbucket repository so as to use its pre commit code review mechanism.Please advise.


Answers:
author: Dave Theodore [Coyote Creek Consulting]
body: Atlassian has a [doc](https://confluence.atlassian.com/fisheye/installing-fisheye-on-windows-960155262.html) for that.
Is Fisheye/Crucible 3.10 compatible with Microsoft Edge
Asked by Michael Wohlgemuth _Wolge_:

Greetings.

Have been checking these sites:

* <https://confluence.atlassian.com/display/FISHEYE0310/Supported+platforms>
* <https://confluence.atlassian.com/display/CRUCIBLE0310/Supported+platforms>

But no mention of **Edge** in Browsers. Does the fact that it is not mentioned there mean it is not supported? Would be glad if someone could shed some light on this for me.

Thank you.


Answers:
author: Michael Wohlgemuth _Wolge_
body: For anyone having the same question:

I created a support request and asked atlassian about this topic. They came back to me and told me that Edge is not supported for the aforementioned versions of the apps.

\[end of official answer\]

My own tests showed that Edge works alright with the tools, though. Your mileage may vary, so my suggestion is to test it in your environment.

regards
Change the 'Review by <username>' worklog description of a Crucible review in Jira
Asked by Tamas Csabina:

Topic quite explains the question:

Is there a way to change the 'Review by \<username\>' worklog description of a Jira ticket? This is generated when a user finishes a Crucible review that is connected to a Jira ticket.

We are using Crucible/Fisheye 4.6.0.

Thanks,

Tamas


Answers:
author: Tamas Csabina
body: I tried editing \\fecru-4.6.0\\content\\static\\pcgwlk\\2static\\script\\cru\\review\\submit-time.js to

```
var defaultComment = function () {
  return "Code review by " + review.getLoggedInUser().displayName;
}; 
```

Restart the Crucible server, but does not change the description...
Docker Image for Fisheye/Crucibel
Asked by John:

Hello,

I have two questions.

1) Do we have an official Atlassian docker image for Fisheye/Crucibel ?

2) I am in the process of migrating Fisheye from Windows server to Kubernetes.The data needs to be restored and even the database is going to be new. I am facing a challenge here as the restore instructions asks me to run "./fisheyectl.sh restore" command after shutting down the fisheye instance, but since my instance is running in POD in Kubernetes, as soon i shutdown the fisheye instance, the POD will exit and i am not able to run the restore command. Is there any Atlassian way to restore Fisheye/Crucibel backup in Kuberenetes. Please help

Regards,

John


Answers:
author: David S
body: I think the answer is, you don't restore inside the docker container.

You simply move the data over.


author: Backend IT Gutefrage
body: In case somebody else stumbles upon this question like I did:  

1) <https://hub.docker.com/r/atlassian/fisheye>

2) My source was on Linux not Windows but I suppose you could simply migrate to a Linux VM first. Stopping the service inside the container just doesnt work.

I mean you could build your own container where your not starting the Server at all but instead a dummy service.

Once on Linux with the data already in the DB schema you want you can just copy the data to your filesystem, change the FS permissions and mount it into the container.


author: John
body: Hello Team,

Can anyone help me here.
Issuw in viewing mu source tree stash list
Asked by Naman Malhotra:

Hi ,I have saved some stashes over a period of time in my source tree ,but today suddenly I m not able to see any of the list under stashes section,its just got blank,version 3.4.15


Answers:
author: Joe Carroll
body: Duplicated by: [Content of stash is not shown (atlassian.com)](https://community.atlassian.com/t5/Sourcetree-questions/Content-of-stash-is-not-shown/qaq-p/2532658)


Tags: bitbucket

cloud
Sourcetree 4.2.5 freezing in Mac Sonoma 14.0
Asked by Odd Einar Haugen:

I have recently upgraded to Mac OS Sonoma 14.0, and Sourcetree kept working fine. However, after updating to the latest version of Sourcetree 4.2.5, the application has stopped working. I can open it as usual, but it freezes as soon as I try to pull or commit files. All I get is the infamous spinnning beachball, and I have to force-quit the application.


Answers:
author: chris_columbian
body: Does your Mac utilize an Intel processor or an Apple/M-series processor?

comments: author: Odd Einar Haugen
body: Thanks! It is a new Mac, and it has an Apple M1 processor.

Actually, I have given up and changed to GitHub Desktop, which seems to be stable. I miss the graphical interface of Sourcetree, though.
Sourcetree Reset Settings Save
Asked by ayaka_ito:

Hello \~

It will be reset every time you start Sourceree.

It is below.

?Local repository

?SSH client settings

Every time I add something or reset the key settings.

I would like to save the settings so they don't get reset.

thank you.

///////

Sourtree????????????????

????????

??????????

?SSH??????????

???Add????????????????

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

???????????


Answers:
author: ayaka_ito
body: ?????????

solved. thank you.

???????Sourcetree?????????????????????

<https://lipoyang.hatenablog.com/entry/20180827/p1>
What causes git to merge contents from different files?
Asked by cse_jskaggs:

I am having an issue where git is trying to merge contents from completely different files into each other and if it really breaking my project as you can imagine. Here is an example of what I see after a merge:

![2023-10-20 10_03_02-Sourcetree.png](/t5/image/serverpage/image-id/287517i1351BBEA7754DA3A/image-size/large?v=v2&px=999 "2023-10-20 10_03_02-Sourcetree.png")

What's extra special is that it seems that the file being merged in HEAD is pulling it's contents from another file, and the remote branch is the one that has correct contents in this case, but I do see it happening the other way around as well where the current head is the correct contents.

Anyone have any thoughts on this? It is happening to us on multiple projects, for multiple developers.

EDIT: to add some detail. In the case above, the XRGeneralSettings.asset.meta file does not yet exist in HEAD. This merge should simply be creating it from the remote branch, but instead, there is a conflict being generated.


Answers:
author: Mukesh Kumar
body: Hi [@cse_jskaggs](/t5/user/viewprofilepage/user-id/925052)

We have tried reproducing the issue mentioned above. But it is not reproducing at our end.

If possible, could you please provide access to the mentioned repository? or share a sample repository which reproduces the same issue.

If these options are not possible, we can have a zoom call to see the issue on your machine. if you are comfortable with zoom call, please share the date and time we can contact you.
SourceTree is not getting past the Splash Screen
Asked by David Stewart:

When trying to run SourceTree, the applications splash screen is briefly shown and then nothing happens. I have tried "Repair" and reinstallation with no success. Does anyone know what next steps I should take. There doesn't appear to be any live customer support, so this seemed liked the next best thing. What are the proper channels to seek support?


Answers:
author: jvmbatista
body: If you're running a win32 machine go to putty webside and download the binaries for win32. for some reason sourcetree ships win64 binaries instead of win32 ones.