youngmon/atlassian-qna huggingface dataset:
Run Kubectl rollout status for a deployment to GKE
Asked by Eleazar Nwachukwu:

I have a pipeline that deploys applications to GKE using  
atlassian/google-gke-kubectl-run:1.3.1.  
I would like to watch the status of my deployment using Kubectl rollout status. If the deployment completes successfully, the pipeline should be complete.  
If the deployment fails the pipeline should fail.  
How can I achieve this with Kubectl rollout status?  
For instance:

```
- pipe: atlassian/google-gke-kubectl-run:1.3.1  variables:    KEY_FILE: '<string>'    PROJECT: '<string>'    COMPUTE_ZONE: '<string>'    CLUSTER_NAME: '<string>'    KUBECTL_COMMAND: 'apply'
    RESOURCE_PATH: '<string>'
    KUBECTL_COMMAND: 'rollout status deployment/'

```


Answers:
author: o_kyrdan
body: Hi [@Eleazar Nwachukwu](/t5/user/viewprofilepage/user-id/4945790)

Thank you for your question!

This pipe doesn't support wait for deployment finish.

We'll investigate your feature request and notify you.

Best regards,  
Oleksandr Kyrdan

comments: author: Eleazar Nwachukwu
body: I am looking forward to read from you.

If you know any other pipe that can support waiting for deployment finish (Kubectl rollout status), please do recommend it.

Thank you.


Tags: bitbucket-cloud

cloud
Stuck in "we couldn't log you in" when opening bitbucket
Asked by Budi Irawan:

Can anyone help me to solve this issue? I tried to log in to my old bitbucket account.

My email address is email@gmail.com

![Image 2022-05-26 at 22.11.29@2x.jpg](/t5/image/serverpage/image-id/199287i80E9F26AE4FF3412/image-size/large?v=v2&px=999 "Image 2022-05-26 at 22.11.29@2x.jpg")


Answers:
author: Mark C
body: Hi [@Budi Irawan](/t5/user/viewprofilepage/user-id/471203)  

Thank you for reaching out to the community.

I checked your account and I can see that it was on dormant status which means you haven't logged in to Bitbucket.org for a long period of time.  

For this, I went ahead and reactivated your Bitbucket Cloud account.  
You should be able to log in back to your account.  
If you're having issues logging in, kindly reset your password using this link. - <https://id.atlassian.com/login/resetpassword>

<br />

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

Regards,  
Mark C

comments: author: Budi Irawan
body: I see, thank you Mark!


author: Mark C
body: Glad to know it helps [@Budi Irawan](/t5/user/viewprofilepage/user-id/471203)  

Do let me know if you have further questions that I can help with and feel free to mark this question as answered as well.  

Regards,  
Mark C


author: Budi Irawan
body: done!

Thank you!


Tags: bitbucket-cloud

cloud
Is there an option to freeze or lock repo temporary?
Asked by Olya Rosenberg:

I know that as an admin you could give everyone only 'read' permission in order to prevent any changes to the repo.

Is there a simple option somewhere in settings to temporarily freeze the repo?


Answers:
author: Patrik S
body: Hello [@Olya Rosenberg](/t5/user/viewprofilepage/user-id/4945957) ,

Welcome to Atlassian Community!

I'm afraid there's no particular feature in Bitbucket Cloud to freeze the repository, but in case what you are trying to achieve is to prevent users from pushing new changes to a particular repo you can either give everyone only 'read' permissions, as you already mentioned, or you also have the option to create a branch permission to block everyone from pushing changes, like the below example :

![Screen Shot 2022-05-26 at 17.32.21.png](https://community.atlassian.com/t5/image/serverpage/image-id/199407i257A6EDD4FBDB305/image-size/large?v=v2&px=999 "Screen Shot 2022-05-26 at 17.32.21.png")

The above branch permission will be applied to all the branches in the repository (cause it's using the **\*** wildcard) and will prevent everyone from pushing new changes to the repo (no write access).

You can create a similar rule in your repository by going to **Repository Settings \> Branch permissions.**

For more details about branch permissions you are also welcome to check the following documentation :

* <https://support.atlassian.com/bitbucket-cloud/docs/use-branch-permissions/>

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

Thank you, [@Olya Rosenberg](/t5/user/viewprofilepage/user-id/4945957) .

Kind regards,

Patrik S

comments: author: Olya Rosenberg
body: This is exactly what I was looking for. Thank you!


author: Patrik S
body: Hello [@Olya Rosenberg](/t5/user/viewprofilepage/user-id/4945957) ,

Awesome! Happy to have been of some help :)

Thank you!


Tags: bitbucket-cloud

cloud
deployment step in pipeline stuck in queued state
Asked by Keith Mason:

I have a deployment that won't start running. It is acting as though the deployment is in progress, in that it goes into queued state and stays there. There are sufficient idle runners, and the deployment dashboard shows the deployment as stopped. I have even tried deleting and recreating the deployment in configuration, but it hasn't helped.

The UUID of the step for one instance of this is 4c3422ec-240d-45d1-9381-de8b0b95c5dc

How do I get my deployment to run again?

EDIT: It looks like all of my deployments are stuck the same way, even ones I've never used before.


Answers:
author: Sanketh Iyer
body: Hi [@Patrik S](/t5/user/viewprofilepage/user-id/4603309) , I am facing the same issue, any solution?


author: Patrik S
body: Hello [@Keith Mason](/t5/user/viewprofilepage/user-id/622516) ,

Checking our internal tools I've noticed your account has access to a Premium subscription which is entitled to our Standard support.  
So in order to further investigate this case, I have created an internal ticket for you using the email of your community account, so you don't have to share this information here.  
You should have received an email with a link to the support ticket. Just in case you haven't received it, please feel free to let me know and I can post the ticket URL here. The ticket will be visible only to you and Atlassian staff, no one else can view its contents even if they have the URL.  
Thank you, [@Keith Mason](/t5/user/viewprofilepage/user-id/622516) .  
Kind regards,  
Patrik S


Tags: bitbucket-cloud

cloud
Is my user's email address on suppression list?
Asked by DA Admin:

Hello support, I'd like to confirm whether a user's e-mail is on the suppression list. This is my first attempt at opening a ticket, am I clear to provide this user's e-mail address in a forum such as this?

Thank you


Answers:
author: Patrik S
body: Hello [@DA Admin](/t5/user/viewprofilepage/user-id/4945256) ,

As this request involves sharing sensitive information, such as the e-mail address,  
I have created an internal ticket for you using the email of your community account, so you don't have to share this information here.  
You should have received an email with a link to the support ticket. Just in case you haven't received it, please feel free to let me know and I can post the ticket URL here. The ticket will be visible only to you and Atlassian staff, no one else can view its contents even if they have the URL.  
Thank you, [@DA Admin](/t5/user/viewprofilepage/user-id/4945256) .  
Kind regards,  
Patrik S

comments: author: DA Admin
body: Hey Patrick can you post the URL here? I have not received the e-mail. Thank you so much!


author: Patrik S
body: Hello [@DA Admin](/t5/user/viewprofilepage/user-id/4945256) ,

Sure thing!

Please find the link to the internal ticket below :

* <https://getsupport.atlassian.com/browse/BBS-186586>

Let me know in case you run into any issues accessing it.

Thank you, [@DA Admin](/t5/user/viewprofilepage/user-id/4945256) .

Kind regards,

Patrik S


Tags: bitbucket-cloud

cloud
Someone has already added that SSH key to another account.
Asked by soft.develop.mx:

When I try to locate the account with my ssh key it doesn't tell me what it is and I get this error:  

ssh -T git@bitbucket.org  
authenticated via ssh key.

You can use git to connect to Bitbucket. Shell access is disabled

Can you help me please?


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

This usually happens when you try to use the same key with two different accounts. You should not generally be sharing keys between accounts.

You can fix this by generating a new key for the new account.

comments: author: soft.develop.mx
body: The problem is that I use this ssh key to anothers providers for example adobe, gitlab and github, I need to know in which account it was registered in order to delete it


author: Nic Brough -Adaptavist-
body: You'll need to raise that with Atlassian as a support call.

Meanwhile, you should arrange to stop sharing keys across accounts.


Tags: bitbucket-cloud

cloud
Cannot Clone Visual Studio to BitBucket
Asked by David Mercer:

HI

I have a new laptop that cannot connect to BitBucket from Visual Studio 2019. Because of this I am unable to clone to my local repository.

I am able to log into bitbucket no problem from this new laptop, however when I try and clone from visual studio the Artissan log in box keeps coming up and after entering credentials a few attempts it declines.

My colleague remembers saying he had similar issues ages ago but cant remember the resolution. Any help appreciated.


Answers:
author: Patrik S
body: Hello [@David Mercer](/t5/user/viewprofilepage/user-id/4941889) ,

Welcome to Atlassian Community!

When you are prompted for the credentials, could you please make sure you are providing your **bitbucket username** (not the e-mail address) and an [**App Password**](https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/) (not your account password)?

- The bitbucket username can be found in your account's personal settings by accessing the following link <https://bitbucket.org/account/settings/>

- As for the App Password, you can create it in your account accessing here: <https://bitbucket.org/account/settings/app-passwords/>

For more details about App Passwords you are also welcome to check the following documentation :

* <https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/>

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

Thank you [@David Mercer](/t5/user/viewprofilepage/user-id/4941889) .

Kind regards,

Patrik S


Tags: bitbucket-cloud

cloud

vscode
How to find a branch name by commit ID?
Asked by Mani:

Hello,

Using the bitbucket API, I am trying to find the branch name that a commit is made. I thought following API will return the branch name but it doesn't.

<https://api.bitbucket.org/2.0/repositories/{WORKSPACE}/{REPO}/commit/{COMMIT_ID>}  
Thank you.


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

The branch where a commit was originally made isn't directly stored in Git.

You can use the following command in a clone of the repo to find all branches that *contain* a certain commit (but not necessarily the branch where this commit was created):

```
git branch --contains <commit_hash>
```

This will show branches whose tip commits are descendants of the named commit, meaning that you may see multiple branches for certain commits.  
E.g. if your repo has 50 branches, that command in the repo's initial commit will show all 50 branches.

Please see below the comment from one of our developers on why we don't include that info in the API:

* [https://jira.atlassian.com/browse/BCLOUD-11627?focusedCommentId=2239913\&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-2239913](https://jira.atlassian.com/browse/BCLOUD-11627?focusedCommentId=2239913&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-2239913)

Kind regards,  
Theodora


Tags: atl-gruland

bitbucket-cloud

cloud
Do I need git-lfs for a repository that will store big 3d files? (LAN repo, not online)
Asked by Juan Gea:

Do I need git-lfs for a repository that will store big 3d files? (LAN repo, not online)

I?m afraid to use standard GIT for such large binary files.

Some advice will be very welcome, I?m kind of newbie to GIT.

Thanks in advance!


Answers:
author: sszasztoth
body: If you are storing large binary files it is generally recommended to use Git LFS independent of whether you use Bitbucket Cloud or Bitbucket Server. Git was generally not built with large binary files in mind and Git LFS solves the issues that Git has with these large files.

To read up on why you should use LFS please see: <https://blog.bitbucket.org/2016/07/18/git-large-file-storage-now-in-bitbucket-cloud/>


Tags: git

git-lfs
How do I see my changes on localhost?
Asked by Mladen Mijatovi?:

I have installed and set SourceTree client on my computer, clone remoted files on my local repository, and come to the step - making changes and prorgamming...

So, I have to make some php programming, how can I launch my local repository files on my local computer? How can I check how does it work in browser? Do I need to use something like Xamp, ampps and similar...?


Answers:
author: Seth
body: It depends on the language you are programming in. If it's PHP (I'm guessing based on "XAMP"), then yeah, you'll need XAMPP or something similar.

Depending on what your programming language is, just search google for "how to setup \<language\> development environment". If you can't find any good resources there, try to find a QA site for that language to get help. There's no guarantee that anyone who has experience in setting up dev environments for your language on your OS is answering "sourcetree" questions on this site.

You'll also need to select a tool for editing code - again, search for existing resources, your selection will be based on personal preferences (what's important to you? feature set, performance, look-and-feel, etc).

I personally do develop PHP on Windows, and I find it easier to use a tool like VirtualBox to set up a Linux VM for testing code (still not easy, even when I've got 8+ years of experience installing PHP on Linux). I've used many different IDEs, and have yet to find one that is better than all the others in every respect.

comments: author: Mladen Mijatovi?
body: Thanks on answer bro you really get the point!
Unable to register SourceTree
Asked by Ara K:

I have just installed SourceTree for Windows (8.1). I start the application and it asks me to log in to my Atlassian account. I have set up my account and am able to log in from the browser. I also generated a license for SourceTree. However, when I use the "Use an existing account" button on SourceTree and submit my username/password, it then gives me an error message:  

Oops, you've made a malformed request. {#toc-hId-480816466}
===========================================================

If you came here from a link we sent you, please contact support.

Any idea how to get past that? Thanks,

Ara


Answers:
author: Your_Father
body: Same. Have that problem, can not fix that....

comments: author: Ara K
body: I was finally able to get around the issue by creating a new account. No thanks to the Atlassian team...


author: ttn
body: Same
Sourcetree on Windows 7 [sometimes] not starting
Asked by Mesman:

Since the latest patch (1.9.6.1) I have had problems with SourceTree not launching. Immediately after the upgrade it started just fine. After a reboot it didn't launch at all (process SourceTree.exe got launched but didn't load more than \~35 000 kB) even after 10 minutes of waiting.

I have found 2 other threads about this problem but none of the solutions seemed to work permanently.

What I tried so far:

* Clearing the %TEMP% folder, did not launch
* Uninstalling SourceTree, reboot, reinstall newest version (didn't launch)
* Uninstalling SourceTree, deleting the Atlassian folder in %APPDATA% and reinstalling the newest version (didn't launch)
* Uninstalling SourceTree, deleting the Atlassian folder in %APPDATA% and reinstalling an old version (1.6)
  * did not launch
  * I could launch the updater though, so I selected the version before 1.9.6.1, but that also did not launch
* Updating / repairing my .NET 4.6 installation, did not launch
* Uninstaling SourceTree, deleting the Atlassian folder in %APPDATA% and reinstalling the newest version in a different place than the default install location, **now it did launch**

So after all that it finally worked for a few days. However today seems to be the day the problem reoccurs apparently, SourceTree will not launch again. The process SourceTree.exe gets stuck at \~34 300 kB. I tried clearing the %TEMP% folder, rebooting and clearing the Atlassian folder, all did not work.

I am running Windows 7 64-bit, and would very much like for SourceTree to start working normally again, hoping someone can help me out.


Answers:
author: Mesman
body: For anybody running into the same issues as me: I installed [SmartGit](http://www.syntevo.com/smartgit/) and no reconfiguration of repositories needed, branches etc are all at the point that I left it at with SourceTree.


Tags: windows
Is it supposed to take 1 minute to change repo tabs?
Asked by Jamy Ryals:

v1.9.6.1 on Windows 10

It takes forever to change tabs in the UI. The tabs are already open and cloned, I'm just talking about clicking from one tab to another. The entire UI freezes while I sit waiting. Reproduced on other colleagues machines.

Known issue? Working on a fix? Problem with our Bitbucket repository?


Answers:
author: minnsey
body: Hi

We believe this is a problem due to the Windows Spell Checker. It s described here <https://connect.microsoft.com/VisualStudio/feedback/details/2153484/wpf-net-application-hangs-when-spell-check-is-enabled-on-controls-which-derive-from-textboxbase>

We have just released a new beta 1.9.7-beta-2 which incudes a check to clear the invalid dictionary files.

you can access the beta program here <https://blog.sourcetreeapp.com/2016/04/15/sourcetree-beta-1/>

We hope to get the fix out to General Availability before the end of the month.

As a temporary workaround please try disabling the spell checker in the Tools/Options/General tab

Thanks for using SourceTree
Terminal error "Failed to fork child process" unless run as administrator
Asked by Cameron Gocke:

From Windows 10, whenever I launch Terminal, I get an error that says, "Failed to fork child process: No such file or directory." The title bar of this window is "/usr/bin/bash --login -i". This occurs whether I'm set to use System Git or Embedded Git and I've tried updating Embedded Git as well as uninstalling/reinstalling SourceTree.

I did discover that if I launch SourceTree as Administrator (and accept the UAC prompt), I am able to launch into Terminal using either System Git or Embedded Git.

Has anyone seen this behavior or know of a way to resolve it?  

Update: I discovered the mintty.exe and bash.exe in the %LOCALAPPDATA%\\Atlassian\\SourceTree\\git_local\\usr\\bin\\ folder. If I run bash.exe directly from here it launches without an issue.   

Further update:  
I found this appears to be an issue with cygwin that was recently solved in an update. Does anyone know if there is a good way to update this independently for SourceTree?  
<https://cygwin.com/ml/cygwin/2016-08/msg00346.html>   

Sorry - I don't have permissions to add Answers, but this doesn't appear to be a SourceTree issue, but more broadly a Git for Windows issue. I have opened this issue here: <https://github.com/git-for-windows/git/issues/898>


Answers:
author: abhishek banerjee
body: I am using Windows 7 and still getting the same issue when i am trying to launch the terminal from sorce tree UI.

Using 64Bit system.

Tried installing Git in my system as well and getiing the same error. When i try to run mintty.exe getting the stack dump file generated.

Even running source tree as admin doesnot help.

Can anyone please help.
Sourcetree upgrade won't get past the "Log into your Atlassian account" page
Asked by David Mills:

I upgraded sourcetree. On my Virtual machine which is behind a Proxy, I get the License agreement page and then the "Log into your Atlassian account" page. I click on "Go to my Atlassian" and it taskes me to the page from where I press download for the license, but the Source Tree pop up remains and won't go forwards.  
How can I get past this?

The other option "Use an existing account" gets a "Navigation to the web page was cancelled" error.


Answers:
author: David Mills
body: Found a work around. I copied the
> C:\\Users\\\<user\>\\AppData\\Local\\Atlassian\\SourceTree

folder from my laptop to the VM and now it starts successfully.
Custom Action Command Prompt
Asked by Cameron Gocke:

I'm trying to create a custom action to open a command prompt to a given repository's working directory. (I'm in Windows.)

I created a custom action with this script:

C:\\Windows\\System32\\cmd.exe

And these parameters:

/k pushd $REPO  

When I launch I can see the command executed like this:  
cmd.exe /k pushd C:\\Users\\CameronGocke\\Git\\api-portal  

SourceTree; however, just spins and never launches the command prompt, whereas if I run the command directly I get what I'd expect to see.   

Update:

The response from @Geoff Joy seems to be on the right track in terms of the cause, but it is still not working properly. SourceTree still waits for the process and all child processes to finish before it returns. I have 2 scripts created for custom actions that both behave the same way. The other is to launch VS Code and looks like this:

start "" "C:\\Program Files (x86)\\Microsoft VS Code\\Code.exe" "%1"  
exit

Though the script ends, SourceTree continues spinning until VS Code is closed and then control returns to SourceTree.


Answers:
author: QwazyWabbit
body: Add an exit command to your script. SourceTree wants to see the CMD process close. If the window stays open there's no closure of the custom command. Exit 0 ought to do it.
Working with Multiple Git Accounts
Asked by Prabhat Nath:

Hello,

We are new to Git and started using GitLab for all our private repositories and using SourceTree as desktop client App.

I have 2 company accounts (myname@company1.com and myname@company2.com) accessing GitLab projects from both companies. myname@company1.com has permissions to Company-1 GitLab projects and same for the other user with Company-2 as well.

After I install SourceTree first time I can clone the GitLab URL of Company-1 and it asks for user credentials and I provided Company-1 user details and it worked. Now If I want to clone projects of Company-2 it says invalid Git. I understand SourceTree trying to use Company-1 credentials for Company-2 projects.

How can I make sure I can Clone projects from both the GitLab projects and commit in the same way as well.

Thanks.


Answers:
author: Prabhat Nath
body: I am not sure if the scenario in the question is valid for other users but for me it looks like a feature request? Please advise how can we use multiple accounts for different projects?


Tags: windows