youngmon/atlassian-qna huggingface dataset:
Can't get Pipeline to deploy to Firebase
Asked by jamesferreira:

Hi, I would like to use Bitbucket to deploy React App to my Firebase project. With git the actions are set up for you but I have been round and round with Bitbucket and can't find the correct combination.

The error I see is:  
INFO: Starting deployment of the project to Firebase.  
Error: Not in a Firebase app directory (could not locate firebase.json)

I've put firebase.json in every directory and no luck. What can I do?


Answers:
author: jamesferreira
body: For the next person who runs into this.   

Here is the Pipeline that worked:

\`\`\`  
image: node:16

# Workflow Configuration

pipelines:

branches:  
master:  
- step:  
name: Build and Test  
caches:  
- node  
script:  
- npm install \&\& npm run build

artifacts:  
- build/\*\*  
- step:  
name: Security Scan  
script:  
- pipe: atlassian/git-secrets-scan:0.5.1  
- step:  
name: Deploy to Firebase  
deployment: Production  
script:  
# sync your files to Firebase  
- pipe: atlassian/firebase-deploy:2.0.0  
variables:  
KEY_FILE: '\<base64 your gcp_creds.json\>'  
FIREBASE_TOKEN: 'your token from running command firebase login:ci'  
PROJECT_ID: '\<your project name\>'

\`\`\`

comments: author: Igor Stoyanov
body: [@jamesferreira](/t5/user/viewprofilepage/user-id/3567240) hi. Good to know you solved your issue.  

Additionally to your response i will add link to [example of firebase-deploy](https://bitbucket.org/bitbucketpipelines/example-firebase-deploy/src/master/bitbucket-pipelines.yml)  

Regards, Igor


Tags: bitbucket-cloud

cloud

firebase
How to configure SSH run with password?
Asked by mklemarczyk:

Hello my hosting provider does not support ssh key for the ssh connections.

Can you describe how to use the pipeline ssh-run by Atlassian to connect with passowrd?

I need this feature to unzip the archive on the server.

I evaluate the bitbucket as alternative to Azure DevOps.


Answers:
author: Rob van der Lee
body: This question is not really related to Bitbucket/Pipelines in any capacity. Although, to help you get started I've found these two resources that should get you sorted.

Be sure to store your password in a secret. If you are able to it would also be good practice to setup a purposely created account solely for the purpose you are trying to achieve.

* <https://www.redhat.com/sysadmin/ssh-automation-sshpass>
* <https://stackoverflow.com/questions/50096/how-to-pass-password-to-scp>


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

I'm afraid that we don't support password authentication with the [ssh-run pipe](https://bitbucket.org/atlassian/ssh-run/src/master/).

You can look into the links that Rob provided, and instead of using the ssh-run pipe, you can include commands in your bitbucket-pipelines.yml file for connecting to your server and running the command or bash script you want.

If you want to use Pipelines that run in our own infrastructure, the builds run in Docker containers. If the Docker container you are using as a build environment doesn't have ssh and sshpass installed, you can install them during the builds by adding the installation commands in the bitbucket-pipelines.yml file, or you can create a custom Docker image with these tools and use that instead.

Kind regards,  
Theodora


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

ssh
Auto Create JSM ticket upon Bitbucket merge
Asked by Majo Francis:

Hello

Have anyone been successful in integrating Bitbucket with JSM Cloud ?

I am looking for a way to auto create a new JSM ticket when there is a merge request created in BitBucket ?

I am thinking of leveraging BitBucket webhooks, but not sure on how to integrate with JSM ?

Thanks

Majo


Answers:
author: Mark C
body: Hi [@Majo Francis](/t5/user/viewprofilepage/user-id/4473191),

Thank you for reaching out to the community.

If you're using [Bitbucket Pipelines](https://bitbucket.org/product/features/pipelines) and if there's a way to create JSM tickets via API, you can use Pipelines where it triggers on **[pull-request](https://support.atlassian.com/bitbucket-cloud/docs/configure-bitbucket-pipelinesyml/#pull-requests)**.

Alternatively, you can also check and see if the feature called [Deployment gating](https://support.atlassian.com/jira-service-management-cloud/docs/what-is-deployment-gating/) of JSM is applicable to you.
> Deployment gating lets you allow or prevent deployments at specific points in the change management process using a CI/CD tool that you've connected to Jira Service Management.

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

Regards,  
Mark C

comments: author: Majo Francis
body: Thank you [@Mark C](/t5/user/viewprofilepage/user-id/1210823)

your answer seems promising.. let me try to explore more in those lines and get back...

Regards,

Majo


Tags: bitbucket-cloud

cloud
Recover a Deleted member email
Asked by dev:

I inadvertently deleted an inactive member before noting his email. I would like to re-invite. Is there a way to recover a deleted members email. I can see his name in the activity log


Answers:
author: Mark C
body: Hi [@dev](/t5/user/viewprofilepage/user-id/5012365)

Welcome to the community.

Would it be possible for you to confirm from where you've deleted the inactive member?  
Is it from Atlassian access or Bitbucket Cloud workspace?

Regards,  
Mark C

comments: author: dev
body: Hi Mark

It's the Bitbucket Cloud workspace


author: Mark C
body: Hi [@dev](/t5/user/viewprofilepage/user-id/5012365)  

Thanks for that. Unfortunately, it's not possible to get a user's email that was removed from a workspace user groups, however, you can check the workspace **Audit log** page to view the user's name that was removed.  

To go to your workspace **Audit log** page:

* Go to your workspace - <https://bitbucket.org/workpace_id/>
* Click **Settings**
* Click **Audit log** (Under Security)

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

Regards,  
Mark C


Tags: bitbucket-cloud

cloud
Unable to push/pull after Sourcetree upgrade
Asked by Kiran John:

Hi Team,

Some users are using Sourcetree to pull/push from Bitbucket. When they are trying to update SourceTree 2.1.2.5. they are unable to push/pull.

User is getting this error message.   
git -c diff.mnemonicprefix=false -c core.quotepath=false fetch origin   
fatal: Authentication failed for 'https://MORANL@bitbucket.pearson.com/scm/cdev/wrat-5.git/'   
fatal: Authentication failed for 'https://MORANL@bitbucket.pearson.com/scm/cdev/wrat-5.git/'   
fatal: Authentication failed for 'https://MORANL@bitbucket.pearson.com/scm/cdev/wrat-5.git/'   
fatal: Authentication failed for 'https://MORANL@bitbucket.pearson.com/scm/cdev/wrat-5.git/'

If user is trying to push without updating SourceTree, able to push or pull. If not, users are unable to push/pull.


Answers:
author: Mikael Sandberg
body: Checkout this thread, <https://community.atlassian.com/t5/Bitbucket-questions/SourceTree-2-1-10-0-Authentication-Issues/qaq-p/623202>, about authentication issues in the new version of SourceTree. Hopefully that will help.


Tags: windows
Git Flow -> create production branch first
Asked by Stefan Mueller:

Why does Git Flow says that *Create production branch first* altough the origin branch is called master (it works in GitGraken).  
FYI, I cloned only a branch of the origin tree.


Answers:
author: Ana Retamal
body: Hi Stefan, the production branch is usually called 'master' as you can see in the article [Smart branching with SourceTree and git flow](https://blog.sourcetreeapp.com/2012/08/01/smart-branching-with-sourcetree-and-git-flow/).
> **Production branch** (usually called 'master')  
> This branch represents the latest released / deployed codebase. Only updated by merging other branches into it.

Let us know if you have any other questions!

Best regards,

Ana

comments: author: Konstantin Lazarev
body: Hi Anna,

but I'm reading this on my bitbucket server:

Typically, this branches from the development branch and changes are merged back into the development branch.

So master cannot be branched from development


Tags: git-flow
Repository cloanbel but not recongnized as repo
Asked by Stefan Mueller:

I tried to add repository cloned from a GitBlit Server and stored on a network drive to the *Local repository* . It is allowed to add it but when you try to open it it says *Repository Missing*. When I clone it it works flawless.

Can someexplain why this happens?

btw. how can I add bookmarks to *Local repository*?


Answers:
author: Stefan Mueller
body: first I tried **open new tab -\> Add a repository** , what shows up in **Local repository** but when I try to open it is says: *Repository Missing*

But when I do **open new tab -\> Clone**of exactly the same repo it works flawless.


author: Ana Retamal
body: Hi Stefan! When you said you cloned the repo to the Local repository, do you mean you used the option **New \> Add existing local repository** from SourceTree?

Working with network mounted volumes for managing your repositories can be problematic, you can check Kieran's answer in this [Community thread](https://community.atlassian.com/t5/Questions/Adding-a-git-working-copy-located-on-sshfs-volume/qaq-p/322562) for more details. Our advice would be not to do this and keep your repositories on your local drive, then push the changes to the remote.

You can also read [Git on the Server - The protocols](https://git-scm.com/book/en/v2/Git-on-the-Server-The-Protocols) for more information.

In relation to the bookmarks, have a look at the article [Bookmarks overview](https://confluence.atlassian.com/sourcetreekb/bookmarks-column-repository-browser-overview-781398414.html).

Hope this helps!

Ana


Tags: repository
Why can't I log into SourceTree on install?
Asked by Adam Bolton:

I have recently downloaded SourceTree and am signing in using an existing but new account. I can log in online, however when I ry to log in on sourceTree install it displays an error message:

-"Atlassian account We've encountered a problem. Please try again in a few minutes."

How do I log in using my existing account?


Answers:
author: Warren
body: Hi Adam

This is a known issue which has been around for a while already. Look at <https://community.atlassian.com/t5/SourceTree-questions/Re-Installation-of-SourceTree-cannot-be-completed-becaus/qaq-p/624687/comment-id/16172#M16172> and add your comments there

comments: author: Adam Bolton
body: Thank you
Sourcetree installation not working
Asked by Martina:

Until last week my Sourcetree worked fine and then on Thursday I couldn't start it anymore. The process was shown only shortly in the task manager, but nothing else happend.

I deleted Sourcetree and wanted to install it new, but now the installation fails. It shows me the SquirrelSetup.log which says the following:

2017-08-16 09:32:12\> Unhandled exception: System.IO.FileNotFoundException: Die Datei oder Assembly "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" oder eine Abh?ngigkeit davon wurde nicht gefunden. Das System kann die angegebene Datei nicht finden.  
Dateiname: "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"  
bei Squirrel.Update.Program.executeCommandLine(String\[\] args)  
bei Squirrel.Update.Program.main(String\[\] args)

I'm working on Windows 7.

Thanks!


Answers:
author: Martina
body: There was another Windows security update and now everythings working again.

comments: author: Ana Retamal
body: Glad you got it to work, Martina!


Tags: windows
Getting error when trying to check in via source tree
Asked by Sylvia Moestl Vasilik:

I got this error when trying to committ changes with SourceTree:

git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags --set-upstream origin master:master  
Pushing to https://XXXXX@bitbucket.org/XXXXX/XXXXX.git  
To <https://bitbucket.org/XXXXX/XXXXX.git>  
! \[rejected\] master -\> master (non-fast-forward)  
error: failed to push some refs to 'https://XXXXX@bitbucket.org/XXXXX/XXXXX.git'  
hint: Updates were rejected because a pushed branch tip is behind its remote  
hint: counterpart. Check out this branch and integrate the remote changes  
hint: (e.g. 'git pull ...') before pushing again.  
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

I'm sure it has something to do with me switching laptops and trying to set up SourceTree on the new laptop.

At this point everything I need is saved off to the remote repository, and I would be happy to just start completely from scratch, with a fresh setup from the remote respository. Just basically erase everything local, and get it all from the remote source.

Any hints on how to do that?

Thanks.


Answers:
author: Ana Retamal
body: Hi Sylvia! As you said everything is saved to the remote and you'd be happy to start on local from scratch, you could do a clean install of SourceTree. The steps are as follows:

1. [Wipe SourceTree preferences](https://confluence.atlassian.com/sourcetreekb/how-to-wipe-sourcetree-preferences-412484640.html).
2. Uninstall SourceTree (if it shows on the App\&Features list)
3. Backup then delete the directory below before proceeding with next step
   * Navigate to C:\\Users\\\<UserName\>\\AppData\\Local and delete *SourceTree* \& *SourceTree-Settings* folder
   * Navigate to C:\\Users\\\<UserName\>\\AppData\\Local\\Atlassian and delete all SourceTree Files/Folder.
4. [Download SourceTree](https://www.sourcetreeapp.com/) and install it.

Let us know if you have any questions!

Cheers,

Ana


author: Sylvia Moestl Vasilik
body: Worked great - thanks!

comments: author: Ana Retamal
body: Glad to hear that Sylvia :)
Is it possible to recoved commited files that were not pushed?
Asked by Matthew Winters:

My computer had its OS reinstalled, but all my files were backed up. I had commited files, then switched branches before the OS was reinstalled. Is it possible to get those commited files?


Answers:
author: Ana Retamal
body: Hi Matthew, if you didn't push the changes to the remote repository and you didn't save your modified changes, then those changes are lost. However you mentioned all your files were backed up so you should be able to continue from the same stage where you left it.

Let us know if there's anything else we can help you with!

Cheers,

Ana
I want to request and pull new content but i get an Error 403.
Asked by Steffen Nitschke:

I get:

git -c diff.mnemonicprefix=false -c core.quotepath=false fetch origin  
remote: Too many invalid password attempts. Try logging in through the website with your password.  
fatal: unable to access 'https://SteffenNitschke@bitbucket.org/rene_wegener/smartransfer_api.git/': The requested URL returned error: 403

But i don't try to login or something else and now i can't get new Updates of our Software. What can i do now. Just someone try to hacking me and because of that i can working??


Answers:
author: Ana Retamal
body: Hi Steffen! A 403 response means that the web server is denying access to the requested resource, in this case it could be due to the following reasons:

1. The credentials you're using are wrong
2. You don't have permissions to access that repository

Have you tried pulling the content using the terminal? If the terminal is also not working, then the issue is not with SourceTree itself and we'd need to look for the root cause somewhere else.

Can you confirm if you can access that repo through the Bitbucket website? If you don't remember your password, you can reset it using [this link](https://bitbucket.org/account/password/reset/).

Let us know how it goes!

Best regards,

Ana
Pending files in source tree - Shows all the classes
Asked by TalentSrc:

Pending files/Modified files in source tree show all the classes - classes that have been modified and those that have been unmodified.

When i click on unmodified file, then it says 'No changes in this file has been detected' but I wouldnt know that it is unmodified until I click it.

Please help.


Answers:
author: Ana Retamal
body: Hi Shalini, another user reported a similar issue in [this Community thread](https://community.atlassian.com/t5/SourceTree-questions/Sourcetree-sees-new-file-when-code-doesn-t-change-but-timestamp/qaq-p/158499) and other members offered him different solutions, did you have a look at them already?

If they don't work for you, please make sure to tell us which SourceTree version and OS are you using so we can help you troubleshoot this issue.

Best regards,

Ana

comments: author: TalentSrc
body: I looked at the response for the similar question but that answer does not suit me.

I am using windows 10 - bitbucket, sourcetree combinations.

Why is it showing all the files as different? When I click on the files that are not actually different, then it says that 'No changes detected or binary file'.

Any help, greatly appreciated.
How to configure "Log Selected" in SourceTree preferences?
Asked by Pulkit Singhal:

Is it possible to override how the "Log Selected" feature in SourceTree operates by configuring it somewhere in the preferences?

My motivation is that I would like my sourcetree's "Log Selected" feature to use the \`--follow\` flag and even list the history before any file renames occured.


Answers:
author: Mikael Sandberg
body: I don't think you can change the behavior of the Log Selected option, but you should be able to create a custom action that uses the --follow option.

comments: author: Pulkit Singhal
body: ![Screen Shot 2017-08-18 at 12.21.22 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/4919iC10537E9B15167EC/image-size/large?v=v2&px=999 "Screen Shot 2017-08-18 at 12.21.22 PM.png")![Screen Shot 2017-08-18 at 12.21.29 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/4918i0AB39B9A574EA56E/image-size/large?v=v2&px=999 "Screen Shot 2017-08-18 at 12.21.29 PM.png")


author: Pulkit Singhal
body: sorry that i had to use a snapshot to get my point across, apparently i used "inappropriate language or spam"


author: Mikael Sandberg
body: You need to include $REPO as well, $FILE only includes the path within the repository.

This worked for me when I tested it right now![Custom Action.png](https://community.atlassian.com/t5/image/serverpage/image-id/4920i5CC45DAE7EBF27C9/image-size/large?v=v2&px=999 "Custom Action.png")

Btw, the "inappropriate language or spam" is a known issue and it is being worked on, see <https://community.atlassian.com/t5/Feedback-Forum-articles/Known-issue-HTML-markup-errors/ba-p/625791>


author: Pulkit Singhal
body: Once again, thank you Mikael :)


author: Pulkit Singhal
body: A working snapshot for other using mac.![Screen Shot 2017-08-18 at 2.10.26 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/4921i7F900A8E0EB402E9/image-size/large?v=v2&px=999 "Screen Shot 2017-08-18 at 2.10.26 PM.png")


author: bgannin
body: [@Mikael Sandberg](/t5/user/viewprofilepage/user-id/853579) is correct and makes a good suggestion for a solution. Please make sure to upvote or file a ticket at <https://jira.atlassian.com/browse/SRCTREE> or <https://jira.atlassian.com/browse/SRCTREEWIN> and explain your request.

Brian Ganninger  
Senior Mac Developer, SourceTree

comments: author: Pulkit Singhal
body: Thanks I created <https://jira.atlassian.com/browse/SRCTREE-4959>
The latest 2.1.10.0 Source Tree cannot be installed for "all users" on Windows 7
Asked by LKahsay:

The latest 2.1.10.0 Source Tree cannot be installed for "all users" on Windows 7.

It always intalls only in the folder C:\\Users\\%USERNAME%\\AppData\\Local\\SourceTree\\SourceTree.exe

It is annoying.

Thanks.

Laine


Answers:
author: Mikael Sandberg
body: The change was implemented to make the install faster and so you do not need admin rights. Here is the blog post were they announced the change: <https://blog.sourcetreeapp.com/2016/11/16/adding-staged-updates-to-sourcetree/>


Tags: windows
can't log in to sourcetree
Asked by Yaniv Hoobian Schmal:

The user can login to Bitbucket website, but cann't login to sourcetree

we are getting an error message that the username or password is wrong.


Answers:
author: Yaniv Hoobian Schmal
body: well, I've fixed it by adding the atlassian domain to the trusted sites in internet explorer.

then lowering the security settings for trusted sites to low.

only then it worked.

why relying on Internet explorer ?!?!


author: Mikael Sandberg
body: What version of SourceTree are you using? What does the error message say? If you are using 2.1.10.0 you may want to checkout this thread about [authentication issues](https://community.atlassian.com/t5/Bitbucket-questions/SourceTree-2-1-10-0-Authentication-Issues/qaq-p/623202). Hopefully that will help.
How to Link BitBucket and Source Tree account ?
Asked by Alark:

Hello,

I am continuously facing problem while trying to integrate Bitbucket with Sourcetree. I am entering Bitbucket account details still sourcetree is not accepting the credentials and saying "login failed".

Request you to please help me.


Answers:
author: Ana Retamal
body: Hi Alark! If you're on Mac OS, you can remove all the related entried from the Keychain and then make sure you're entering the right one. If you're on Windows you can do the same in the Credentials manager. If after following those steps you're still getting the same error, please provide some more information so we can help you troubleshoot this issue:

1. Are you using Bitbucket Cloud or Server?
2. Which SourceTree version do you have? Which OS?

Cheers!

Ana

comments: author: Alark
body: Hey Ana,

Thank you so much..!! Your suggestion worked. :)

Cordially,

Alark


author: Ana Retamal
body: I'm happy to hear that, Alark!

Hope you have a great day :)

Ana
I am getting an error when trying to push
Asked by AskAnEnemyStudios:

remote: Invalid username or password. If you log in via a third party service you must ensure you have an account password set in your account profile.

Updated to the latest version. Was able to push 2 days ago just fine. Also I can OAuth just fine, but I can't push


Answers:
author: Ana Retamal
body: Hi Jaycee, I found this thread created by another member of the Community where some users share the solutions that worked for them regarding this issue. There are 3 available solutions right now, I've listed them here for you, you can find the post at [Authentication issues](https://community.atlassian.com/t5/Bitbucket-questions/SourceTree-2-1-10-0-Authentication-Issues/qaq-p/623202):

* Delete the Windows Credentials stored in Windows (that's where SourceTree stored them), delete the passwd file, then restart SourceTree. To see and remove them, do the following:  
  1. Open the **Control Panel** and click on **User Accounts** .  
  2. In the left hand list of links, click **Manage Your Credentials** . When it opens, it shows your Web Credentials.   
  3. Click the Windows Credentials "button". This shows your stored Windows credentials. Look for entries that start with "git:http" and include your server name and/or user name and remove them.
* Go to **Repository \> Repository Settings**, selecting my repository, and changing the username from my old Bitbucket username to my Atlassian account's email address. Then, following your original advice to remove the passwd file, I was able to successfully pull.
* Download SourceTree version 2.1.2.5 from [our website](https://www.sourcetreeapp.com/) and install it. Reject the upgrade to 2.1.10 that comes up.

I hope this helps you! If none of the above works for you, please let us know if you're using Windows or Mac, if you get the same error when you perform different operations, and if you get errors if you use the terminal instead.

Best regards,

Ana