youngmon/atlassian-qna huggingface dataset:
Merged tag not visible in commits history when merging branches
Asked by Maciej Kuran-Janowski:

**Hey there ?.**

As in the question title, merged tag is not visible in the commits history when merging branches. Sometimes it shows \`MERGED\` tag but often not.

**STEPS TO REPRODUCE THE PROBLEM:**

**Scenario:** I am done with branch \`GR-115\` and want to merge to \`develop\`. I \`commit\` and \`push\` all the changes to remote \`GR-115\` branch. Then I follow the steps:

```
git checkout develop
git fetch origin develop
git pull origin develop
git merge GR-115
git push origin develop
```

What we see in the Bitbucket remote repo -\> Commits tab

![bitbucket-before-merge.png](https://community.atlassian.com/t5/image/serverpage/image-id/276621i6C1DEE47A255F842/image-size/large?v=v2&px=999 "bitbucket-before-merge.png")

![bitbucket-after-merge.png](https://community.atlassian.com/t5/image/serverpage/image-id/276622i09E43F326B4B273B/image-size/large?v=v2&px=999 "bitbucket-after-merge.png")

**Expected behavior:**

**![bitbucket-merged.png](https://community.atlassian.com/t5/image/serverpage/image-id/276623iAD2230891365B952/image-size/large?v=v2&px=999 "bitbucket-merged.png")**

We would like to know what causes the issue and why sometimes the \`MERGED\` tag is visible and why often not. Having this tag displayed really helps to understand what's going on in commits history and gives a clear picture. I would appreciate your help :)

Thank you in advance,

Maciej


Answers:
author: Saxea _Flowie_
body: The "merged label" is to indicate this is a merge commit. When it doesn't appear, it is because it was able to do a fast-forward merge.

You can ask git to create a merge commit even if it can fast-forward by doing:

```
git merge --no-ff GR-115
```

You can also set this as the default behaviour with:

```
git config --global merge.ff no
```

comments: author: Maciej Kuran-Janowski
body: [@Saxea _Flowie_](/t5/user/viewprofilepage/user-id/5230209) What a great answer! Thank you so much. I hope to test it asap.


Tags: bitbucket-cloud

cloud

git
I'm migrating Bitbucket 7.8.0 database from one MS SQL server to another.
Asked by jamie_brown_ngc_com:

I'm migrating Bitbucket 7.8.0 database from one MS SQL server running MS SQL 2016 to another running MS SQL 2019. I'm not seeing any instructions on how to do this. Are there any other steps other than changing the config file to point to the new server?


Answers:
author: Robert Wen_ReleaseTEAM_
body: I'd take a look at the Microsoft documentation.

<https://learn.microsoft.com/en-us/sql/sql-server/migrate/guides/sql-server-to-sql-server-upgrade-guide?view=sql-server-ver16>


author: Christian Glockner
body: Hi,

From the Bitbucket Server side nothing else is required, assuming you're taking care of the SQL Server side of things (i.e. moving the DB to the new server). You can also use the Database Migration Wizard in Bitbucket Server to move the data over, provided you have the connection details and empty database on the destination server.

See <https://confluence.atlassian.com/bitbucketserver/connect-bitbucket-to-an-external-database-776640378.html>

Cheers,

Christian  
Premier Support Engineer  
Atlassian


Tags: bitbucket-server

server

sql
Bit bucket Repo is over size.
Asked by Sreehas.Gade:

My bit bucket repo is over size the, the actual size of my project to push into bitbucket is 2gb but the .git file is 4gb this is making mt repo oversize.


Answers:
author: Sreehas.Gade
body: Thanks for the response [@Patrik S](/t5/user/viewprofilepage/user-id/4603309)

There are large files present in my repository so, I just transferred them into git LFS, now the problem is resolved.


author: Patrik S
body: Hello [@Sreehas.Gade](/t5/user/viewprofilepage/user-id/5299209) and welcome to the Community!

There are a couple of alternatives to reduce the size of a git repository, which are described in detail in our article [Reduce Repository Size \| Bitbucket Cloud](https://support.atlassian.com/bitbucket-cloud/docs/reduce-repository-size/).

However, I see you have already opened an internal ticket for the same issue, so I would suggest focusing on that ticket to avoid any confusion that may arise from discussing the case in multiple places.

Once the ticket is closed, feel free to share the solution with the Community here.

Thank you, [@Sreehas.Gade](/t5/user/viewprofilepage/user-id/5299209) !

Patrik S


Tags: bitbucket-cloud

cloud
How to generate Access token for the FID
Asked by Mahalakshmi Anbuselvan:

to trigger spinnaker post deployment activity , we need a access token for Bitbucket to store in secret manager

Kindly help to know how to create a access token for a FID


Answers:
author: Aron Gombas
body: Is it Bitbucket Cloud or self-hosted?


Tags: unknown-hosting-type
Errors writing first pipelines script
Asked by Cameron:

Hi, I'm trying to write my first bitbucket pipelines script to build and deploy code on jboss eap server. What I have so far is:  

![pipelines.PNG](/t5/image/serverpage/image-id/276504i45A1EDDA0B551D3F/image-size/large?v=v2&px=999 "pipelines.PNG")

I have 2 questions:

1. Will this build then deploy my code successfully

2. On line 24 I get "bad indentation of mapping entry line 24 column 12" Which is toward the end of variables between the word and :

Any help would be greatly appreciated


Answers:
author: Patrik S
body: Hey [@Cameron](/t5/user/viewprofilepage/user-id/4129354) and thank you for reaching out to Community!

It seems like the syntax you have used is invalid. I've adjusted the formatting of your YML file to fix the indentation, which you can find below :

```
image: maven:3.6.3

pipelines:
  default:
     - step:
        name: Build and Test
        caches:
         - maven
        script:
          - mvn -B verify - - file pom.xml
        after-script:
           # Collect checkstyle results, if any, and convert to Bitbucket code Insights.
          - pipe: atlassian/checkstyle-report:0.3.0
     - step:
        name: Deploy
        script:
          - pipe: atlassian/scp-deploy:1.3.0
            variables:
             USER: '$BAMBOO _USER'
             SERVER: '$DEV_SERVER'
             REMOTE PATH: '/home/bamboo'
             LOCAL_PATH: '$(BITBUCKET_CLONE_DIR)/**'
          - pipe:  atlassian/ssh-run:0.5.0
            variables:
             SSH_USER: '$BAMBOO_USER'
             SSH_PASS: '$BAMBOO_PASS'
             SERVER: '$DEV_SERVER'
             COMMAND: '<Command to run in the destination server>'
```

You can try running the pipeline with the yml above and let us know how it goes.

For future reference, to validate the syntax/indentation of your YML file before pushing it to your repository, you can use the [Bitbucket Pipelines Validator](https://bitbucket-pipelines.atlassian.io/validator).

Thank you, [@Cameron](/t5/user/viewprofilepage/user-id/4129354) !

Patrik S


Tags: bitbucket-cloud

cloud
We couldn?t log you in
Asked by Duy Nguyen:

I would like to log in to review my old projects. Unfortunately, I am unable to log in anymore. I receive the following message:

"We couldn't log you in You may run into this issue when you use specific browsers or add-ons that hide the referer header for id.atlassian.com and other Atlassian sites. Check for these and then try logging in again."

What should I do? I have already cleared the cookies. Nothing has helped.

Thank you very much.


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

The reason you were unable to log-in is that your account has been DORMANT since 2018-10-02.

I have just re-activated your account, please attempt to sign-in again.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
I am trying to use the google repo tool to fetch my bitbucket repo but it is not working
Asked by anthony_garza:

How come this just kinda works with every other git repo but when I try to add my private repo to the default.xml file it just sits there and churns.

I have tried ssh keys to the repo. I have tried different paths to the repo. I would really just like this to work.


Answers:
author: Norbert C
body: Hi Anthony,

Thank you for reaching out to Atlassian Community, I'm Norbert, it's nice to meet with you

Can you let us know what's the name of the application which you'd like to use to connect with Bitbucket Cloud?

Best Regards,  
Norbert  
Atlassian Support


Tags: bitbucket-cloud

cloud
Which project is using my SSH key?
Asked by Rene Bartkowiak:

Hey community, when I want to add my public SSH key to Bitbucket I'm getting "Someone has already added that SSH key." So looks like I used it in another Bitbucket project (a couple of years ago). Unfortunately I cannot remember where. Is there any way to figure that out and remove it from the old Bitbucket? Thanks!


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

We will require to investigate this internally so I have proceeded to create a support ticket on behalf of you that can be viewed at:

[Support portal](https://support.atlassian.com/requests)

Regards,  
Syahrul


Tags: bitbucket-cloud

cloud
Password changed by ex employee
Asked by kalpesh:

Hi Everyone,

One of the disgruntled employees changed our Bigbucket access.

Right now he is not responding, how do I take control of my workspace?


Answers:
author: Aron Gombas _Midori_
body: I am not sure what this story means exactly, but if you control his company email, then ask a password change link in email and change the password to something you know.


Tags: bitbucket-cloud

cloud
Searching for file/folder names, and keyword in files
Asked by gil:

Currently I can search for file/folder name, and file content in Bitbucket Cloud. However, there's limit in size of file content for searching. We need to be able to search for all content. What's the workaround for this? Any other tools I can use to have this feature in place? Thanks.


Answers:
author: Patrik S
body: Hello [@gil](/t5/user/viewprofilepage/user-id/502427) and thank you for reaching out to the Community!

As you correctly stated, there are some considerations to take into account when using [Bitbucket Cloud Code search](https://support.atlassian.com/bitbucket-cloud/docs/search-in-bitbucket-cloud/#Code-search-considerations), and one of them is that only files smaller than 320 KB get indexed. This is to grant the performance and stability of the platform to all the users.

In case you need to search content from larger files, a possible workaround would be to **clone the repository locally** and perform the search using the [**git grep**](https://git-scm.com/docs/git-grep) command. The following git grep example will return the names and line number of all the files in **master** branch that contains the word "hello" :

```
git grep -n hello master
```

You can explore the different flags and arguments of git grep command on its [official documentation](https://git-scm.com/docs/git-grep).

Also, I found this article that contains multiple examples of using git grep to search files in the repository that may also be useful :

* <https://git-scm.com/book/en/v2/Git-Tools-Searching>

Hope that helps! Let me know in case you have any questions.

Thank you, [@gil](/t5/user/viewprofilepage/user-id/502427) !

Patrik S


Tags: bitbucket-cloud

cloud
Can't receive email invitation
Asked by AhmadShabib:

I am not able to receive an email invitation to this email address: a\*\*\*\*\*\*\*\*\*\*\*4@g\*\*\*\*.\*\*m


Answers:
author: Mark C
body: Hi [@AhmadShabib](/t5/user/viewprofilepage/user-id/5298360),

Welcome to the community.

I checked your email from our internal logs but the email has no bounced status.  
Would it be possible for you to ask the admin who invited you to reinvite your email again?

Let me know how it goes.

Regards,  
Mark C

comments: author: tester
body: Hi [@Mark C](/t5/user/viewprofilepage/user-id/1210823) ,

Could you please check my email for the same reason as AhmadShabib?


author: tester
body: I am trying to invite myself from another Bitbucket account (I am learning Git, so it would be usefull to have ability of 'cooperation' in this field).  
(The "Resend invitation" doesn't make any changes, I have checked SPAM folder)


Tags: bitbucket-cloud

cloud

email
How to delete a folder under a branch of a repository
Asked by rqian:

I create a new branch within a repository, in the new branch, I want to remove some folders, such as webroot, how can I do it?


Answers:
author: Ulrich Kuhnhardt _IzymesCo_
body: Here is what Chat-Gee-Pee-Tee thinks. Looks absolutely spot on.

![bitbucket community question chatgpt.png](https://community.atlassian.com/t5/image/serverpage/image-id/276354iCB970EE7A733A6D3/image-size/large?v=v2&px=999 "bitbucket community question chatgpt.png")


Tags: bitbucket-cloud

cloud
How Do I Sync PR Reviewer and Jira Custom field?
Asked by Alexandra Anghelescu:

I am trying to do something similar to this [How Do I Sync PR Reviewer and Jira Assignee? (atlassian.com)](https://community.atlassian.com/t5/Bitbucket-questions/How-Do-I-Sync-PR-Reviewer-and-Jira-Assignee/qaq-p/1804421). However instead of Assignee, I have a custom field called "Code Reviewer" (can be multiple users).

I am having a hard time setting the custom field value from the webhookData, it's expecting something like this format (I cannot pick the field from the list, so have to set it manually):

{  
"fields": { "Code Reviewer": ??? }  
}

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

I am not sure what the ??? should be, I tried many variations like this  
"Code Reviewer":{{webhookData.pullrequest.reviewers.account_id.asJsonArray}} , I am also not sure webhookData is coming in as a json or xml ?


Answers:
author: Alexandra Anghelescu
body: figured it out (also use the customfield id not the description of the field)

{"fields": {  
"customfield_10129" {{webhookData.pullrequest.reviewers.account_id.asJsonObject("id").asJsonArray}}

}}


author: Alexandra Anghelescu
body: I also looked at this <https://support.atlassian.com/cloud-automation/docs/jira-smart-values-json-functions/>


Tags: automation

bitbucket-cloud

cloud

jira

pull-request

webhook
File name too long: bitbucket pipeline
Asked by Talha Hammad:

Hi,

I had a repo with multiple branches, one is main with the remote host and the other is develop with another remote host.

I'm setting pipelines for both branches and the pipeline for the main branch is working fine.

I'm facing an error while running the pipeline for the develop branch "File name is too long".  

I have added the host key in base-64 format in the repository variable and fetched the host fingerprint, my connection from the host to bitbucket via   
ssh git@bitbucket.org is established but this error is making me furious.

can anyone help?


Answers:
author: Norbert C
body: Hi Talha,

Welcome to Atlassian Community. My name is Norbert, it's nice to meet with you.

I would like to ask if you could give us a few lines from the error message you receive in your build, which fails with the "file name too long" error? That would help us better understand this behavior.

I'm looking forward to hear from you.

Norbert


Tags: bitbucket-cloud

cloud
Allow rich Jupyter Notebook code reviews / diffs
Asked by Liam Dennis:

Hi all,  

When doing code previews for Jupyter notebooks, it diffs the undelying json file which is messy and very difficult to provide feedback on. Github uses nbdime to show rich previous of the notebooks: <https://github.blog/changelog/2023-03-01-feature-preview-rich-jupyter-notebook-diffs/>  

Can Bitbucket add something similar, without relying on third party platforms like ReviewNB?


Answers:
author: Norbert C
body: Hi Liam,

I'm Norbert from Atlassian Support, it's nice to meet with you.

Unfortunately Bitbucket Cloud doesn't have a native capability to render Jupyter notebooks. Having said that we do have a feature request this:

[BCLOUD-21058 - Enable rich rendering of Jupyter notebooks (BB-12986)](https://jira.atlassian.com/browse/BCLOUD-21058)

Please vote, watch and comment your business requirement on the BCLOUD ticket so that our engineering team is aware of your interest.

Best Regards,  
Norbert  
Atlassian Support

comments: author: Liam Dennis
body: Thanks Norbert. I've commented there, as you suggest.


author: Norbert C
body: Thank you for doing this, Liam.


Tags: bitbucket-cloud

cloud
Using SSH for Cloning in Bitbucket Pipelines
Asked by Oguz Gurler:

Hello everyone!

I'm curious if it's possible to change the way Bitbucket Pipelines clone our repositories from HTTPS to SSH. Has anyone here done this before? If so, could you kindly share the steps or pointers on how to make this switch?


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

Please specify which part of the connection you are attempting to modify. Are you looking to make changes during the initial build setup, or are you referring to adjustments within the build steps?

Unfortunately, if you intend to modify the connection during the build setup, this isn't feasible. However, if you seek to alter the connection within the build steps, you can adjust it according to your preferences.

For build steps, you can check the following page on how to clone in pipeline steps via SSH from another repository:

<https://bitbucket.org/blog/cloning-another-bitbucket-repository-in-bitbucket-pipelines>

Regards,  
Syahrul

comments: author: Oguz Gurler
body: G'day, [@Syahrul](/t5/user/viewprofilepage/user-id/744536)

We don't want to clone another repo.

At "Build setup", pipeline cloning repository which will be built, via https. We need to learn that is there any way to change this to ssh?

Regards,

Oguz


author: Syahrul
body: Hi [@Oguz Gurler](/t5/user/viewprofilepage/user-id/5151642)

Thanks for the update. Unfortunately, that is not possible. The default clone during build setups is only via HTTPS.

That said, Interested to understand why you wish to change the connection.

Cheers,  
Syahrul


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

We are trying to change the connection because have timeout problem when cloning with HTTPS.

We also asked the a question about this problem:

<https://community.atlassian.com/t5/Bitbucket-questions/Experiencing-Inconsistent-and-Lengthy-Code-Clone-Times-in/qaq-p/2440611>


author: Syahrul
body: Hi [@Oguz Gurler](/t5/user/viewprofilepage/user-id/5151642)

Thanks for the update. I suggest responding to one of my coworkers, Theodora, on the questions she has to investigate the issue further.

However, for this question, the answer is no, we can't change the build setups clone connection.

Regards,  
Syahrul


Tags: bitbucket-cloud

cloud
Can jira fish eye be used to integrate dynamic clearcase views ?
Asked by swetha reddy:

Hi,

I have a clearcase version 7 installed on a unix server .I am using dyanic views .

Can jira fish eye be used to integrate clearcase dynamic views with jira ?

Please post me few screenshots on how this can be done ,if its is possible .

Thank you


Answers:
author: Conor
body: Please be aware that FishEye support for Clearcase is being phased out.
Does latest version support revieiwing from local repositories (using Mercurial)?
Asked by Nariman Riahi:

We use Mercurial and the issue with Crucible 2.5 is that I can not do code review from my local repository. Does the latest version suppoort this functionality?


Answers:
author: mwatson
body: If by "local" clone, you mean your clone of a central respository which is being indexed by FishEye, then the short answer is no.

Instead, you can do a hg diff against the latest revisision on the central server an upload that as a pre-commit or patch review.

Even better is to use a "feature branch" workflow where you make your changes on a branch, push then to the central repository and review them, then when the review is complete, merge it to your main branch (this is the workflow we use internally on the FishEye team).

You could run "hg serve" and get your FishEye to index your local clone and then raise a review on that, but the index may take some time to complete, you have to run hg serve whenerver you want FishEye to pick up changes, and reviews will not detect the commit when it is pushed to the central repository, so you will miss the audit trail of the review.


author: Conor
body: Yes, the current version of Crucible supports Mercurial, but it has done so even before the 2.5 release.

FishEye makes its own local clone and this works from a local repository without problems for me, certainly for the current version.

Can you elaborate on what problem you have experienced? What version of Mecurial are you using and what is your OS? How are you specifying the local repository location?
Why is FishEye is not starting?
Asked by Damian Nelson:

I can't get FishEye to start.

I have:

-Downloaded FishEye zip file  
-Unzipped file  
-go into bin folder and run ./run.sh

Then I get Killed message.

I am trying to run this on Linux server.

I don't know what to do.


Answers:
author: Conor
body: Are you running the default Java install on Linux? We recommend using an Oracle JVM to run FishEye.

There is more information here:

<http://confluence.atlassian.com/display/FISHEYE/Supported+Platforms>

comments: author: Radu Dumitriu
body: Please make sure you are not using OpenJDK. Do a \`which java\`


author: MatthewC
body: Can you include some more info?

What's in the logs?

I presume that you've verified Java is running OK \& the correct version?
Dashboard not showing commits from everyone
Asked by Dathan Pattishall:

I cannot see the commits of everyone in my dashboard. Is there a way I can see the commits from everyone in my dashboard?

Currently I have to goto all activity of a given respository to view all users commits. I'd like to see this in my dashboard instead saving me three clicks.


Answers:
author: Michael Heemskerk
body: Hi Dathan,

In your dashboard activity stream, all activity from your 'favourited' items is displayed. To see all commits for a given repository, simply favourite the repository by clicking the star for the repository on the Repositories page (click on the 'Source' tab).

Cheers,

Michael
Mysql unicode error
Asked by Mousa Shaya:

I have configured my MySQL database to have the following collation:

CREATE DATABASE \`crucible\` /\*!40100 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci \*/

When I try to configure crucible to use my MYSQL db I get this error:

|---|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|   | The database is not using Unicode. Crucible requires that the database uses a UTF8 encoding to support internalization. 2011-08-22 08:32:21,368 ERROR - MySQL DB is using collation 'utf8_unicode_ci' These are the paramteres that I am using: useUnicode=true characterEncoding=UTF8 connectionCollation=utf8_unicode_ci How can I use MySQL database with crucible? |


Answers:
author: Tom Davies
body: FishEye expects the collation "utf8_bin", as a case insensitive collation can cause problems when a file's path or name differs only in case. See http://confluence.atlassian.com/display/FISHEYE024/Migrating+to+an+External+Database#MigratingtoanExternalDatabase-MigratingtoMySQLEnterpriseServer
JIRA crashing after configuring FishEye
Asked by Saneth Kumar:

Dragon Slayer - Stage 5, Step 3

Immediately after I configured the FishEye Plugin in JIRA, i got logged out of JIRA and couldn't log back in.

I tried Shutting down JIRA and Starting it back up, but now the command window just crashes the moment it opens. However, Confluence and Fisheye are working fine.

I couldn't find anyone who faced this problem on this forum. So i hope someone can help me.

Thanks


Answers:
author: Colin Goudie
body: Take a look in the JIRA logs and post any exceptions you find.