youngmon/atlassian-qna huggingface dataset:
Node installation not working in pipeline
Asked by Lalit:

This is the YML file

```
---
image: node:14.15-alpine3.13
clone:
  lfs: true

pipelines:
  custom:
    publish-staging:
      - step:
       name: Publish staging channel
       deployment: staging
       script:
         - apk add --no-cache bash git openssh
         - unset NPM_CONFIG_USER
         - npm i -g expo-cli@4.8.1
         - npm ci
```

This is the specific package that's returning the error  

```
"react-native-push-notification-popup": "github:toxox/react-native-push-notification-popup"
```

Here is the error log from the pipeline

    npm ERR! Error while executing:

    npm ERR! /usr/bin/git ls-remote -h -t ssh://git@github.com/toxox/react-native-push-notification-popup.git

    npm ERR! 

    npm ERR! Warning: Permanently added the RSA host key for IP address '140.82.114.3' to the list of known hosts.

    npm ERR! mailto:git@github.com: Permission denied (publickey).

    npm ERR! fatal: Could not read from remote repository.

    npm ERR! 

    npm ERR! Please make sure you have the correct access rights

    npm ERR! and the repository exists.

    npm ERR! 

    npm ERR! exited with error code: 128

    npm ERR! A complete log of this run can be found in:

    npm ERR!     /root/.npm/_logs/2022-05-12T06_07_02_222Z-debug.log

This used to run before I changes some scripts. But those scripts have nothing to do with npm/git configurations. To be precise I removed the script below.  

```
expo login --username $EXPO_USERNAME --password $EXPO_PASSWORD
```


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

The following line shows that there is an attempt to run the **git ls-remote** command in a repo via SSH

```
npm ERR! /usr/bin/git ls-remote -h -t ssh://git@github.com/toxox/react-native-push-notification-popup.git
```

Please note that the URL of the repo is an SSH one, and it looks like GitHub does not allow anonymous access via SSH (Bitbucket doesn't allow that either).

Are you specifying this dependency in the package.json file or another configuration file in your repo?  
If so, the easiest way to solve this issue would be to check where this SSH URL is specified, and change it to an HTTPS one:

```
https://github.com/toxox/react-native-push-notification-popup.git
```

Kind regards,  
Theodora

comments: author: Lalit
body: Yup, I changed ssh to https and it's working now.

Thanks for pointing that out [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086)


Tags: bitbucket-cloud

cloud
Is there option to use submodule in pipeline with white ip list
Asked by Daniel:

hello, this is yongsu kim from midasit south korea.

i want to use submodule in pipeline with my two private repository which is allowed only some white ip (company office ip).  
these repositories are not allowed other ip because of company's policy.

i tried ssh key with setting-accesskeys/ssh keys, but didn't work.  
and pipeline saied "Warning: Permanently added the RSA host key for IP address '\*.\*.\*.\*' to the list of known hosts. To access this repository, an admin must whitelist your IP"  
(i understood because the repository is running in docker's ip environment which is not allowed)

so i'm wondering is there any other possible tries or not.  
related article, posts would be helpful as well.

thank you a lot.


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

Thank you for reaching out to the community.

Based on the error message, you'll indeed need to whitelist Bitbucket Pipelines IP ranges.  
For this, you can find Bitbucket Pipelines IP ranges from this link. - [What are the IP addresses to configure a corporate firewall?](https://support.atlassian.com/bitbucket-cloud/docs/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall/) (Under "Valid IP addresses for Bitbucket Pipelines build environments")  

You can add all those IPs to your workspace IP whitelisting.

Hope it helps and do let me know if you have further questions that I can help with.

Regards,  
Mark C

comments: author: Daniel
body: hello Mark C.  
this is exactly what is want to know!  
i'll check this document. and do this  
And let you know what's going on.  
thanks a lot.

Regards,  
yongsu kim.


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

Sure. Let me know how it goes.

<br />

Regards,  
Mark C


Tags: bitbucket-cloud

cloud
Getting 'Repository is over the size limit (4GB)..' message even after use LFS git option
Asked by Lucero Penarrieta Vergara:

I changed the repository to LFS configuration, also the corresponding migration was performed but the size still displayed as more than 4GB in the repository, not able to do the push of my changes, there is a way to clean these files migrated and also push my recent changes?


Answers:
author: Theodora Boudale
body: Hi [@Lucero Penarrieta Vergara](/t5/user/viewprofilepage/user-id/4922308),

I see that you created a ticket with the support team, one of our engineers ran a git gc for your repo and its size has been reduced.

We have a feature request to allow users to run a git gc for their remote repos <https://jira.atlassian.com/browse/BCLOUD-11593>

You can add your vote to the feature request if you'd be interested in that and you can also add yourself as a watcher if you'd like to get notified via email on updates.

Kind regards,  
Theodora


author: Mikael Sandberg
body: Hi [@Lucero Penarrieta Vergara](/t5/user/viewprofilepage/user-id/4922308),

Welcome to Atlassian Community!

I have notified Atlassian support team that is here on the community and they should be able to help soon.

comments: author: Lucero Penarrieta Vergara
body: Thank you so much [@Mikael Sandberg](/t5/user/viewprofilepage/user-id/853579) , really need to fix this as soon as possible!


author: Lucero Penarrieta Vergara
body: Hi [@Mikael Sandberg](/t5/user/viewprofilepage/user-id/853579) there is any update about this? still waiting for the support team.


author: Lucero Penarrieta Vergara
body: [@Mikael Sandberg](/t5/user/viewprofilepage/user-id/853579) please could you help me to solve this? don't have any updates for the moment, and is critical for my project to fix this as soon as possible! could you redirect this ticket to [@Atlassian Support](/t5/user/viewprofilepage/user-id/2888329) ?


author: Mikael Sandberg
body: [@Lucero Penarrieta Vergara](/t5/user/viewprofilepage/user-id/4922308) like most of the community leaders on here I am an Atlassian customer and have not insight into other customers instances. I have notified the support team on here, they usually responds within 24 hours.

I assume you have followed all the steps to reduce the repository outlined [here](https://support.atlassian.com/bitbucket-cloud/docs/reduce-repository-size/).


author: Lucero Penarrieta Vergara
body: [@Mikael Sandberg](/t5/user/viewprofilepage/user-id/853579) yes, I followed those steps, but even with that not able to manage my repository, also really need support here because critical changes to my repo are here, actually, I already moved to LFS git to reduce the size but the repo still pointing to more than 4GB, so we are blocked right now.


Tags: atl-rvw

bitbucket-cloud

cloud

garbage-collection

git-lfs
How to use build artifact from one pipeline into another
Asked by Sameeksha Chepe:

The problem I want to solve is as follows

* We have a frontend repo and a backend repo
* The backend repo has the frontend build copied to a folder
* The backend repo gets deployed to aws
* Pipelines are set up for
  * Building the frontend repo
  * Building and deploying the backend repo

The only missing piece is automating the frontend build copy to the backend repo. The following post solves this problem partially - it shows how to trigger the frontend pipeline from the backend pipeline. But it doesn't tell me how to use the artifacts from the triggered pipeline.

<https://community.atlassian.com/t5/Bitbucket-questions/Access-multiple-Bitbucket-repositories-from-a-single-Pipeline/qaq-p/1783419>

Can someone help me with some pointers to copy the frontend build into backend repo?


Answers:
author: Mark C
body: Hi [@Sameeksha Chepe](/t5/user/viewprofilepage/user-id/4481443)

Thank you for reaching out to the community.

Unfortunately, it is not possible to pass [build artifacts](https://support.atlassian.com/bitbucket-cloud/docs/use-artifacts-in-steps/) from one Pipeline to another as it is only intended to work for steps.

As a workaround, you can use the **Downloads** section of your repository to upload and get build artifacts.  
You can check this documentation for more information: [Deploy build artifacts to Bitbucket Downloads](https://support.atlassian.com/bitbucket-cloud/docs/deploy-build-artifacts-to-bitbucket-downloads/)

The idea is to upload the artifact to the **Downloads** section first and retrieve/download it using cURL command.  
To upload, you can use the Pipes script [atlassian/bitbucket-upload-file](https://bitbucket.org/atlassian/bitbucket-upload-file/src/master/) as below:

```
script:  - pipe: atlassian/bitbucket-upload-file:0.3.2    variables:      BITBUCKET_USERNAME: $BITBUCKET_USERNAME      BITBUCKET_APP_PASSWORD: $BITBUCKET_APP_PASSWORD      FILENAME: 'build.zip'      ACCOUNT: 'myworkspace'      REPOSITORY: 'backend-repo'
```

To download the file:

```
curl -sL -u bb_username:app_password "https://api.bitbucket.org/2.0/repositories/workspace_id/repo_name/downloads/build.zip" --output "build.zip"
```

Hope it helps and let me know if you have further questions that I can help with.

Regards,  
Mark C

comments: author: Sameeksha Chepe
body: Thank you very much [@Mark C](/t5/user/viewprofilepage/user-id/1210823) for this guidance. Indeed this worked well for my use-case!

The only change I did is, I uploaded the build to the frontend-repo downloads section and used the curl command in the backend-repo build. This is because the backend repo is what gets deployed, and it includes the front-end build.


author: Mark C
body: Hi [@Sameeksha Chepe](/t5/user/viewprofilepage/user-id/4481443)

<br />

Great! Glad to know it worked.  
Yes, indeed, you can upload the artifact to either of the repositories.  

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


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
Someone has already added that key as an access key to a repository.
Asked by James Trigg:

Hi I am getting this error "Someone has already added that key as an access key to a repository." when I try to add my ssh keys to my account


Answers:
author: Mark C
body: Hi [@James Trigg](/t5/user/viewprofilepage/user-id/4920981)

Welcome to the community.

The error message you're getting when you add your public SSH key under your account level SSH key settings indicates that it is already added as an [Access key](https://support.atlassian.com/bitbucket-cloud/docs/add-access-keys/) to a repository.

To know exactly the specific repository where it is added, you can use the below Bitbucket Cloud API 2.0 endpoint using the cURL command.

```
curl -u your_bb_username:app_password "https://api.bitbucket.org/2.0/repositories/workspace_id/repo_name/deploy-keys?fields=values.label,values.key"
```

**Reference** : [API 2.0 List deploy keys](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-deployments/#api-repositories-workspace-repo-slug-deploy-keys-get)  
![](https://getsupport.atlassian.com/images/icons/emoticons/information.png) Please kindly note that you'll need your Bitbucket Cloud username and an [App password](https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/) for the API authentication

To get the list of your repositories, you can use this API 2.0 endpoint. - <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-repositories/#api-repositories-workspace-get>

Hope it helps and let me know how it goes.

Regards,  
Mark C


Tags: bitbucket-cloud

cloud

ssh
Activity section in pull request doesn't display all commits
Asked by jovan.petrovic:

If I push each commit separately activity section in the pull request will display user updated the pull request with n commits, but if I push all commits at once just the last commit will be displayed which can be misleading.


Answers:
author: Theodora Boudale
body: Hi [@jovan.petrovic](/t5/user/viewprofilepage/user-id/4921053) and welcome to the community.

This is indeed a bug, we have a ticket in our issue tracker about this:

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

I would suggest selecting the link **This affects my team** in that issue to indicate that you are affected by this bug. You can also select the **Start watching this issue** link if you'd like to get notified via email on updates.

Our development team tracks bugs in that issue tracker and will post an update there when this is fixed. Please note though that we don't provide ETAs and bug fixing is implemented as per our policy [here](https://confluence.atlassian.com/support/atlassian-cloud-bug-fix-policy-206865884.html).

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Source Tree is asking for your name and your email
Asked by Ashish:

Dear Team,

I was using source tree with beanstalkapp. And it goes well. suddenly I have faced a new issue. I have pulled a new repository from beanstalk. I was able to pull that repository but When i tried to commit that I have faced an issue regards to identity like Who you are , Add global your name something like this. However I have already set my global settings in tools \> options \> Genera. The strange thing is , I am able to commit on my first repository.

Please advise!!

Thanks


Answers:
author: Seth
body: Check the config file for your repository. Maybe it has name and email defined as blank (which would override the global config for that repository).
How to git clone local LFS enabled repo within SourceTree ?
Asked by GEORGE L:

I am testing out Git LFS and have a test local Git repo which was setup with Git LFS. Then I tried to use SourceTree to git clone the local Git LFS enabled repo to a new local Git repo but it failed to clone. I suspect it's because the destination local Git repo hasn't got Git LFS installed ?

So how does one locally clone local Git LFS enabled repos ?

Thanks  
[](https://community.atlassian.com/t5/Sourcetree-questions/How-to-git-clone-local-LFS-enabled-repo-within-SourceTree/qaq-p/244640?attachment-id=3797){#link_116903ff9ad93b}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/7173/1/Screen%20Shot%202017-02-03%20at%202.53.57%20PM.png){#display_116903ff9ad93b_0}


Answers:
author: Rodney
body: You have to specifically enable git-lfs for the repo in BitBucket.org.

Go the the repos Settings-\>General-\>Git LFS then click on the "Start using Git LFS".

comments: author: Inderdeep Singh
body: Hi @Rodney

I have the same issue. The steps you have mention are not working because there is only a screen is coming: ( check attached screenshots )

Screen Shot 2017-02-03 at 2.53.57 PM.png


author: Jarrod [Administrator]
body: I am having a very similar issue and have yet to find a solution. I created a test repository, initialized LFS, and added the large file types I want to track (in my case, \*.umap and \*.uasset). All seems will with that repository.

Cloning that repository fails...Select "*Clone/New* ", enter source and destination path info in the "*Clone Repository* " dialog, then select "*Clone* ". SourceTree does some work cloning all non-LFS files (I assume). Then I am presented with a dialog titled "*Run 'git lfs pull' now?*". The text of that dialog is:

"*The repository \<my cloned repo's name\> is using Git LFS but it appears the binary file content hasn't been downloaded yet. Do you want to download the LFS files required by your current checkout?*"

I answer "*Yes* ", then I see the "*Downloading Git LFS file content*" status dialog. Problem is, it never finishes, the progress dialog never goes away.

Help!

Thanks,  
Jarrod


author: alfiolocastro
body: Same here on a MacBookPro, it shows "Downloading Git LFS file content" forever.  
On the other hand, on the same repo it works as expected on a Win10 laptop.  
Has anyone found a workaround?


Tags: bitbucket

git

git-lfs
Show sidebar by default
Asked by Roy Teeuwen:

The sidebar in source tree used to show by default, but now when i open a repository, I have to go to View \> Show sidebar. I recently updated to the macOS Sierra beta, maybe this could be the cause but I am not sure of it, it would be strange that it is related. Anyone have any idea's on how to make it default shown?


Answers:
author: QwazyWabbit
body: SourceTree remembers the view it was showing when it was closed. Select show sidebar, then close the application. It will show the sidebar upon opening again. This would appear to affect all sessions and repository views.

comments: author: Roy Teeuwen
body: Well, for me it doesn't remember :wink: else I wouldn't be asking haha. So maybe it's a bug related to macOS Sierra after all


author: QwazyWabbit
body: There must be only one instance of SourceTree active when you close the application. Make sure there are no minimized sessions open. As for Sierra -- welcome to the bleeding edge.
On Windows 10 my commits always show as 'unknown <myemail@domain.com>'
Asked by m r:

I have researched this twice now, and everyone with this problems seems to have a different variation. I have checked my configuration both through the UI and in the file it is saved in - both have my name. I have no idea why my email address shows up but my name doesn't. It's not just for a few commits either, it is every single commit for months.


Answers:
author: m r
body: I solved it. I don't know which of these things did it:

1. Tools -\> Options -\> General -\> Uncheck 'Allow SourceTree to modify your global...'
2. Close SourceTree
3. Open SourceTree
4. Put the checkbox back, AND make sure your username doesn't have spaces. I'm not sure if this matters, but I did it anyway
5. I also went to every repository setting -\>Advanced and unchecked/rechecked use global user settings


author: m r
body: I was checking it here: C:\\Users\\\<Username\>\\AppData\\Local\\Atlassian\\SourceTree\\git_local\\etc\\gitconfig

That no longer appears. I do see a config under C:\\Users\\\<Username\>\\AppData\\Local\\Atlassian\\SourceTree\\git_local\\mingw32\\etc but my username is no longer in there.

I thought by going to Tools -\> Options and checking 'Allow SourceTree to Modify your global Git and Mercurial config files' that this would work. I have also looked in each repository settings to make sure that username exists. It does.


author: Seth
body: Which config file did you check?
i am not getting data intothe folder after cloning
Asked by syedfarjana18:

*This question is in reference to Atlassian Documentation: [Clone a repository into SourceTree](https://confluence.atlassian.com/pages/viewpage.action?pageId=780870050)*

Ask your question here...


Answers:
author: thinsoldier
body: Does it work if you try to clone from the terminal? Do you see an error message in SourceTree or terminal?


Tags: clone
push to remote repository on local NAS fails
Asked by motyalcrab:

I am uisng sourcetree 1.8.3.0 on Win10. I have created a GIT repository on a local NAS as a file set. Then clone this to local workspace on my C drive. Update the content on local repsository C drive ... commit .... then push back to the repository on ther NAS. I get the following error ...

"git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags --set-upstream origin master:master

Pushing to O:\\GIT\\GV-TDMA\\PSU-IO Board\\EaglePCB

remote: error: refusing to update checked out branch: refs/heads/master

remote: error: By default, updating the current branch in a non-bare repository

remote: error: is denied, because it will make the index and work tree inconsistent

remote: error: with what you pushed, and will require 'git reset --hard' to match

remote: error: the work tree to HEAD."

If I do the same process but using Bitbucket to host the remote repository it all works OK ....

Whats wrong .... ????

Any help appreciated


Answers:
author: thinsoldier
body: Your NAS isn't really setup as a real git server.

To get rid of this error go to the folder on the NAS and run this command in terminal:

git config receive.denyCurrentBranch ignore

Now you can push to the file server without seeing that message.

It is best to have the repo on the NAS as a "bare" repo.  
(<http://www.saintsjd.com/2011/01/what-is-a-bare-git-repository/>)

If you don't you'll have this other annoying problem if you open your NAS repo in SourceTree:

The "old" files on the server will be seen as "different" from the "latest" commit that you pushed to it. So it will think the "old" files are "new changes" that need to be commiteed. But they aren't.

So what you have to then do is double click the latest commit in the history view and select discard changes. (remember the changes aren't actually changes, they are the old files which are different because they are old.)

Doing that will make the contents of the folder match the latest branch with the exception of any files that were deleted in the latest commit. Those files will remain and will show up as untracked. Just delete them manually.
How to enable branch list in source tree?
Asked by M Z:

Somehow I've disabled the branchlist that resides to the left of the commit tree, as you can see here.

Even by reinstalling sourcetree I couldn't bring it back. Does anybody know where to reenable that panel?

branchlist.png  
[](https://community.atlassian.com/t5/Sourcetree-questions/How-to-enable-branch-list-in-source-tree/qaq-p/303597?attachment-id=7592){#link_1172c09a78a2ee}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/9373/1/branchlist.png){#display_1172c09a78a2ee_0}


Answers:
author: Seth
body: It has probably been resized to zero width. I would recommend slowly moving your mouse toward that divider from the right, and stop at the first pixel where the cursor turns into a resize cursor, then click and drag to the right.

This can be hard to do, especially when the grabbable area is immediately beside another grabbable area, but this kind of thing has been present in Sourcetree for Windows for years.

comments: author: M Z
body: Yes that helped! Thanks a lot :smile:


author: Brad Curran
body: Try the following:

* Horizontally scroll the top pane in the History view all the way to the right. It may have moved off screen at the very right of the pane.
* Create a new git repository. Does the graph column display on the new repo? If so there's an issue with the SourceTree configuration on your original app.
* If nothing else has worked, do a full uninstall. <https://answers.atlassian.com/questions/72774> After you've deleted the preferences folder your reinstall should show the graph again.
Can I use one instance of SourceTree to access GitHub and BitBucket repositories?
Asked by Jason Friend:

I want to use SourceTree on my laptop to access my repositories in GitHub under that account, and then be able to switch to my Bitbucket repositories under my Atlassian account. Is there a way to setup SourceTree to do this? Currently I have SourceTree linked to my GitHub repository, but can't figure out if/how to set it up for Bitbucket as well.


Answers:
author: thinsoldier
body: If on OSX

CMD+0 to open Repository Browser Window

Gear icon in upper right of that window.

Settings

Add Account...

Host: Bitbucket

Username \& Password

I don't think the Protocol value makes a difference. I tried setting mine to SSH but Sourcetree still defaults everything it does to use HTTPS urls instead.


Tags: bitbucket

github