youngmon/atlassian-qna huggingface dataset:
How to access private bitbucket repository from docker composer?
Asked by Dusan Schiffel:

Hi!

How to access private bitbucket repository from docker composer? I missing help or example.

Thanks!


Answers:
author: Caroline R
body: Hi, [@Dusan Schiffel](/t5/user/viewprofilepage/user-id/4510750)!

Thank you for reaching out to Atlassian Community!

The best option in this case is to use HTTPS with the password built into the clone command:

    git clone https://$username:$apppassword@bitbucket.org/<workspace>/<repo>/

As you are using Pipelines, you can set $username and $apppassword as secured environment variables and it should work. A secure variable can be used in your scripts but its value will be hidden in the build logs. If you want to edit a secure variable, you can only give it a new value or delete it. Secure variables are stored as encrypted values.

You can follow the next steps to set them:

* Open your repository \> **Repository settings**

* Open **Repository variables**

* Add the name and the value and mark the **Secured** option \> Click **Add**

In case you would like to read more about variables, you can access the following documentation:

* [Variables and secrets](https://support.atlassian.com/bitbucket-cloud/docs/variables-and-secrets/)

I hope this helps, but do let me know if you have any questions.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud

docker
Error cloning repo from Visual Studio 2019
Asked by vijaykannan.sattanathan:

Error message :**Error encountered while cloning the remote repository: Unable to start process. Timeout waiting for child process to open named pipes.**

1. bitbucket extension for vs 2019 installed

2.can login into bitbucket repo

Working earlier but failing for sometime


Answers:
author: Theodora Boudale
body: Hi [@vijaykannan.sattanathan](/t5/user/viewprofilepage/user-id/4597145),

Could you please share which Bitbucket extension you are using? Are you facing this error when using this extension?

Atlassian has an extension for Visual Studio, but this extension is for VS Code and not for Visual Studio 2019.

In case the error occurs with a third-party extension, it may be best to reach out to the developer of that specific extension for assistance with this error.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Recover deleted repository
Asked by Miguel BOCQUIER:

Hello, one of my repository was deleted and I have no local backup for it.  
It is called "moowon".  
Is there any way I can restore it please?


Answers:
author: Caroline R
body: Hi, [@Miguel BOCQUIER](/t5/user/viewprofilepage/user-id/297382)!

Thank you for reaching out to Atlassian Community!

On some occasions, the support team can help recover core repository content, as long as the deletion happened within the last 7 days. We are unable to recover metadata (like PRs, comments, issue tracker) or any content that was deleted past 7 days.

I went ahead and created a support ticket for you using the email of your community account, so an engineer can check if restoration is possible.

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 let me know if you have any questions.

Kind regards,  
Caroline

comments: author: Miguel BOCQUIER
body: Awesome ! Thank you.


author: Caroline R
body: You're welcome, [@Miguel BOCQUIER](/t5/user/viewprofilepage/user-id/297382)!

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
Repository size isnt realistic
Asked by Gon?alo:

Hello.

Currently working on a git, and starting Monday it became too big, 5.6GB. The thing is on my local machine is only around 300MB, and in total it can reach as big as 900MB.

Tried doing git gc but nothing changed. It still is 5.6GB.

Does anyone know hot to solve this issue?

Thank you


Answers:
author: Theodora Boudale
body: Hi [@Gon?alo](/t5/user/viewprofilepage/user-id/4597105),

This issue may occur if the Bitbucket repo has dangling commits that increase its size. In this case, the gc is needed on the remote repo.

I can see that you opened a support ticket for this issue, an engineer ran a git gc on the Bitbucket repo and the repo's size has been reduced.

If you need anything further, please feel free to let us know.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Allow other container registries besides docker hub with bitbucket-pipe-release
Asked by Matthias Fasching:

Hi,

I just discovered the bitbucket-pipe-release pipe and wanted to integrate it into some of my repositories. I'm using an Azure Container Registry for my images and would like to have the option to instruct bitbucket-pipe-release to deploy to my ACR instead of docker hub.

Would it be possible to add this feature?

Thanks,  
fasmat


Answers:
author: Igor Stoyanov
body: [@Matthias Fasching](/t5/user/viewprofilepage/user-id/4460679) Hi. Thanks for your question. Currently we support only public images in docker hub. We will discuss in the team how to implement this feature and will provide feedback to you when this feature becomes available.  

Regards, Igor.


Tags: bitbucket-pipelines

cloud
allowing only certain IP's to access
Asked by Rahul S:

We wish to allow only access by certain IP's to the project. We upgraded to Premium and went to Access control where IP whitelist option is available. Added the IP and updated but somehow users logged in via other IP's are able to access the repos.

How can this be sorted? Please help.


Answers:
author: Caroline R
body: Hi, [@Rahul S](/t5/user/viewprofilepage/user-id/4596923).

I saw that you created a ticket with our support related to the same question, so to avoid any possible misunderstandings or miscommunication that may arise from discussing the same matter on two different platforms, let's focus on the ticket instead.

Once the ticket is resolved, feel free to share the resolution here to help other community members that may have the same issue.

Kind regards,  
Caroline


author: Nic Brough -Adaptavist-
body: Whitelisting only covers the whole system, you can't go down to project level.


Tags: bitbucket-cloud

cloud

ip-address

whitelist
transfer modifications in my server to git?
Asked by ChOmar:

i want when i did modification in my files with FileZilla then push it to my branch.

we work right now with Git, everyone has a branch and each one has server FTP the changes are done just local and push it to Git but when we make modifications in FTP (FileZilla) we don't know how to save the work in GIT

is it possible to transfer modifications add in my server to git ?


Answers:
author: Syahrul
body: Hi [@ChOmar](/t5/user/viewprofilepage/user-id/4597007)

Welcome to the community!

If I got this right you wish to make changes using FileZilla and push back the changes to your remote repositories in Bitbucket?

If yes, then It's not possible via the FileZilla since it's an FTP tool, but you can make changes using FileZilla and then SSH into your server and do a git status and then push your changes over to Bitbucket remote repositories.

For example:

1. You make changes to files.a in FileZilla
2. Then SSH into the server and that files directory
3. Then use git status to see if the changes is correct
4. Then create a commit with "git commit -m "commit message"
5. Afterward push your changes over using git push
6. Check your Bitbucket repositories for latest commit to see the latest changes

I hope this helps!

Cheers,  
Syahrul


Tags: ftp

git

git-ftp
Bitbucket pipelines problem with env variables after publish
Asked by Micha? Kochman:

Hi,  
I have some problem with env variables. For some reason after I publish project by the bitbucket pipeline to jfrog and use the deployed package I have local urls for requests, so it doesn't see variables from .env file.  
E.g. env file:  
\`\`\`  
REACT_APP_VERSION=$npm_package_version  
SOME_URL=https://.....  
\`\`\`  
I tried to export variables   
\`\`\`  
- set -o allexport  
- source .env  
- set +o allexport  
- npm run build  
- npm publish  
\`\`\`  
but it doesn't seem to work :(


Answers:
author: Micha? Kochman
body: I close the topic :D I've found problem inside webpack config and missing babel load and because of that generated dist did not contain env variables


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
How can add my bitbucket licenses to a specific repository in bitbucket
Asked by Jaspreet Kaur:

I have some bitbucket licenses which i need to align with one of the existing repository currently running under free subscription. Please help me understand how it can be done from bitbucket or my atlassian.


Answers:
author: Theodora Boudale
body: Hi [@Jaspreet Kaur](/t5/user/viewprofilepage/user-id/4596775) and welcome to the community!

In Bitbucket Cloud, licenses are associated with a certain workspace. You can see all workspaces your account has access to if you log in to <https://bitbucket.org/>, then select your avatar \> select **All workspaces**.

If you have for example  
- workspace-A on free plan  
- workspace-B on stnadard plan

and the repository you are referring is owned by workpsace-A, you can transfer it to workspace-B to make use of the standard plan and add more users to it.

You can find more info on repository transfer here:

* <https://support.atlassian.com/bitbucket-cloud/docs/transfer-repository-ownership/>

Please note that if you transfer a repository, its URL will change. If you and/or your teammates have a clone of the repo you are working on, you'll need to update the remote URL in your clone. Steps for that are included in the section **Update local configuration files with the new repository URL** of the documentation I linked.

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Is it possible to restrict the execution of a custom event handler to a specific repository?
Asked by Niclas Puschmann:

I am using Scriptrunner to create a custom event handler for a repository.   
Currently the event handler gets triggered every time a new branch is created in any repository or project. I want to be able to restrict the custom event handler only to a specific repository.

The BranchCreatedEvent class enables me to apply my program logic to a specific repository but as of right now I haven't found a solution to prevent the event handler to be triggered by a different repository.

I have successfully tried to restrict a different kind of event handler to a specific repository using the Bitbucket web UI. Unfortunately there isn't this kind of configuration option available for creating custom event handlers. Is it even possible to change the setting from  
'*Repositories/ Projects: All* ' to '*Repositories/ Projects: specificRepository* ' for custom event handler?  

![img.PNG](/t5/image/serverpage/image-id/164731i8DD3B854A7217665/image-size/large?v=v2&px=999 "img.PNG")

I have also checked the documentation at: <https://scriptrunner.adaptavist.com/6.5.0-p5/bitbucket/StashEventHandlers.html?utm_source=product-help#_applying_event_handlers_to_specific_projects_repositories>  

I'm not sure if I understand the sample code correctly and I haven't successfully tried it that way. I assume that the code restricts only the if block and does not change the display of the BitBucket web UI.   

My code:   

import com.atlassian.bitbucket.event.branch.BranchCreatedEvent  
BranchCreatedEvent event = event  
def repo = event.repository  
def branch = event.branch  
def branchName = event.branch.displayId  
if(repo.name == "foo") {  
doSomething()  
}


Answers:
author: Robert Giddings [Adaptavist]
body: Hi [@Niclas Puschmann](/t5/user/viewprofilepage/user-id/4595610),

Thank you for your question.

You are correct. Currently in order to restrict Custom Listeners, you need to do so programmatically.

And yes, you are correct. In order code example, doSomething() will only happen when the repository was "foo".

However you should use the code

event.repository.slug == "foo"

Here is a link to the latest edition of the relevant docs:

<https://docs.adaptavist.com/sr4bib/latest/features/listeners/custom-listeners>

However, I will also look at making Custom Listeners in future like all the other listeners, with a selectable project/repo tree.

Please let me know if that helps answer your question?

Kind regards,

Robert Giddings

comments: author: Niclas Puschmann
body: Hi [@Robert Giddings \[Adaptavist\]](/t5/user/viewprofilepage/user-id/1196283),

Yes, your post answers my question.   

Thanks,  

Niclas Puschmann


Tags: bitbucket-server

listener

scriptrunner
Wiki dissappeared
Asked by jocapal:

I have a wiki for my project; I edited it this Monday from the web, everything was okay. Today (Wednesday) I tried to access it and it says that the web doesn't exist. Any suggestions?


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

If you open the repository this wiki belonged to on Bitbucket website, do you see the option 'Wiki' on the sidebar?  
I would like to understand if the option 'Wiki' is missing and you cannot access the wiki at all, or if the issue is different (e.g. the wiki exists, but certain pages you added are not visible). Could you please clarify which is the case?

In case the 'Wiki' option is missing from the sidebar, and you have admin access to this repo, please go to **Repository settings** \> **Wiki** . If the option **No wiki** is selected there, then another admin of the repo may have disabled the wiki. Select **Private wiki** (if that wiki was private), save the changes and let me know if you can view the wiki then.

Kind regards,  
Theodora

comments: author: jocapal
body: Hi [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) , the wiki option isn't missing; the main wiki isn't missing, I created another one, worked on it several days; after a few days after I tried to enter and it just dissappeared. It just says "File doesn't exist".


author: Theodora Boudale
body: Hi [@jocapal](/t5/user/viewprofilepage/user-id/4595583),

Thank you for your reply. If I understand correctly, what is missing is a certain page of an existing wiki?

I went ahead and created a support ticket for you for this issue, so one of our engineers can investigate further. I created the ticket using the email of your community account - you should have received an email in your inbox with a link to the ticket. Just in case you haven't received the email, please feel free to let me know, I can post the link here. The ticket is visible only to you and Atlassian staff, no one else can view its contents even if they have the link.

I would like to ask if you could please leave a reply to the support ticket with a) the URL of the wiki with this issue and b) the URL that shows you the message "File doesn't exist", so we can further investigate.

If you have any questions, please feel free to let me know.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Force sync before merge
Asked by Peter Reiser:

We need a feature to force a sync before a merge has been done.

Is there anything we can do with Bitbucket ?


Answers:
author: Caroline R
body: Hi, [@Peter Reiser](/t5/user/viewprofilepage/user-id/1518311)!

Thank you for reaching out to Atlassian Community!

Currently, it's not possible to enforce the sync before a merge, however, you can either [create a Feature request](https://jira.atlassian.com/secure/Dashboard.jspa) if you'd like that or let me know if you want me to open it for you.

Please let me know if you would like to proceed with that and feel free to share any additional questions regarding this case.

Kind regards,  
Caroline

comments: author: aren
body: Hi [@Caroline R](/t5/user/viewprofilepage/user-id/3934006) , is this feature available today?

<br />

Thank you,  

Arthur


Tags: bitbucket-cloud

cloud
unable to login in bitbucket
Asked by it_helpdesk_mpac-group_com:

due to having multiple nationalities access a server and having multiple keyboard settings on that server we can't get into bitbucket webinterface anymore. Is there a way to reset administrator password from SQL database?


Answers:
author: Christian Glockner
body: Hi,

You can use the lockout recovery procedure to regain access - see <https://confluence.atlassian.com/bitbucketserver073/lockout-recovery-process-1013851075.html> for details.

Cheers,

Christian

Premier Support Engineer

Atlassian

comments: author: it_helpdesk_mpac-group_com
body: Hi Christian,

what am I doing wrong? I still can't login. It keeps telling 'invalid username or password'

What I did: I changed the code as told by your manual (see picture below)

![Screenshot 2021-10-15 102827.png](https://community.atlassian.com/t5/image/serverpage/image-id/165106iA63C19FF0D28F7EE/image-size/large?v=v2&px=999 "Screenshot 2021-10-15 102827.png")

I saved this .bat file and restarted the services for bitbucket but still can't login. Also tried to run the bat file directly but it doesn't seem to do anything.

Thank you in advance, your help is appreciated.

kind regards, Nick


author: Christian Glockner
body: Hi,

That doesn't look right - it should be set in line 12 in that file, not down there.

Cheers,

Christian

Premier Support Engineer

Atlassian


author: it_helpdesk_mpac-group_com
body: Forget my last message, I got into the system.


Tags: bitbucket-server

server
Repository downloading as invisible files
Asked by sfyfe:

I've just pulled a bunch of Mercurial repository's from BitBucket and I've found that 2 of them (out of 5) have come down as invisible files which all have a ".i" appended to the filenames.

I could manually pull the files out and batch rename them, but I'd rather find out what's caused this to happen. I find it especially odd that 3 of the repo's downloaded completely fine.

I'm on the latest version of SourceTree (1.6.3.1), running Mac OSX 10.9 Mavericks. I've tried removing the repositories in question and adding them again but the same thing happens.


Answers:
author: KieranA
body: Hi Scott,

I'm one of the SourceTree developers. SourceTree works on OS X 10.6 (Snow Leopard) and upwards and on Windows 7 upwards just to clear up what Lucas mentioned. (EDIT: Also done testing on Mavericks and SourceTree appears to work fine in there, too)

It sounds like the repositories in question do actually contain these files because typically you checkout to a folder with no files in it otherwise you get a warning. Have you checked the repository itself to see if these files exist?

Cheers

comments: author: sfyfe
body: As I've already explained, the files are present but they are invisible files with a ".i" appended to each individual file. I have to use the command "defaults write com.apple.finder AppleShowAllFiles TRUE" in terminal, in order to see them. Otherwise its a completely empty folder


author: LucasA
body: Hi Scott,

Very strange behaviour. I believe that this issue require a support ticket. Please raise a support ticket at href="https://support"\>https://support.atlassian.com.

However, Atlassian only supports Source Tree running on the latest production version of OS X or Windows, so please place your tests under Mountain Lion isntead off Mavericks.

Cheers,

Lucas Lima
SourceTree won't discard changes, can't unshelve stored diff
Asked by Rick Herrick:

I have a major issue with the newest version of SourceTree for Windows, 1.1.0.0. I added an existing repository to SourceTree (I had recently rebuilt this machine and hadn't installed SourceTree on it yet since I didn't know Mercurial support had finally been added). I had a bunch of new commits to pull before I could commit my latest changes, so I went ahead and shelved my changes. I then pulled and updated.

The problem is that, once I updated, SourceTree is convinced that two of the files in the repo are modified. They're not, but I can't make it go away. I've tried discarding the changes repeatedly, both in SourceTree and on the command line, but they continue to show as modified. The big problem is that now I can't unshelve my changes.

This is probably a result of line ending issues, but regardless of what the cause is, it needs to be handled properly, that particular issue being a well known problem between Windows and \*nix systems. I've tried any number of things, but can't get this to work. I created a short screen cap showing the problem: <http://screencast.com/t/cgxvi6wcE>.

Luckily I anticipated that there might be an issue and backed up my changes elsewhere, so all I had to do was copy them back into the repo. After that, the commit went fine and I was able to push up to Bitbucket. And after that, SourceTree doesn't show any "modified" unmodified files so things seem OK. But it definitely makes me leery of trusting my changes to the shelf without backing them up elsewhere.

So this is really probably just a bug and should be filed as such, but all the links try to push me here instead of the bug tracker, so I'll give this a go first...


Answers:
author: Rick Herrick
body: So this problem re-occurred outside of SourceTree just now, so I had to track it down.

It looks as if something (and I'm thinking SourceTree, because this only happened after today's update) added the eol extension to my .hgrc file (or mercurial.ini, I'm not clear as to which would take precedence and I went through both of them; no, I didn't install both of them, but various tools over time have decided I needed one or the other in particular). I don't think it was the eol= declarator in and of itself: I think it was the \[eol\] configuration section with a couple of entries for cleverencode. I didn't even know those options existed, so I know that I didn't add them in there! Once I removed those, the problem went away.

If SourceTree does add those cleverencode bits, it might be a good idea to NOT do that, because, at least with the version of Mercurial on my system, it seems to cause this issue, which is a real blocker.


author: Artem Kuznetsov
body: Have same issue


author: Thiago Ramalho
body: Did someone found a solution for this?


Tags: bitbucket

file
Russian comments in commit
Asked by Jasur Mirkhamidov:

![](../../upfiles/2013-08-22_12-17-18.png)

Hi.

Why I got strange text on the graph block while in description block comments are well readable?

I tried to renew git source, delete and new cloned, nothing helps.


Answers:
author: Jasur Mirkhamidov
body: Hi Lucas.

I did it. Here <https://support.atlassian.com/browse/STSP-730>


author: LucasA
body: Hi Jasur,

I cannot found any bug report or support ticket regarding this problem. Could you please raise a support tikcet on <https://support.atlassian.com> ? We'll need more info in order to dissmiss what could be ocurring and how we can fix/improve this.

Cheers,

Lucas Lima

Atlassian Support
Why does source tree use so much Virtual Memory
Asked by jrule:

Using htop on osx I see sourcetree allocating 19G of virtual memory on my machine. Resident memory size is 126M, but nothing else running on my development machine even comes close to the 19G of virtual memory allocated. Should I be concerned? Why so much?


Answers:
author: Ben Fox-Moore
body: Same behaviour noted here too. OS X 10.9 on a 2011 MBA.


author: Kim Foudila
body: I've noticed this odd behaviour too. My SourceTree reserves 20.2 GB of virtual memory.