youngmon/atlassian-qna huggingface dataset:
Script Runner behavior for MIRROR Repositories
Asked by Sivarama Krishna:

Hi

I am planning to Mirror Bitbucket repositories using Script Runner.

Fields requested by Script runner for "Mirror Bitbucket Server repositories"  
1. Project : "Dashboard"  
2. Target project : Selection from Existing List  
3. Bitbucket User name on "Admin" User  
4. BitBucket Password as "Admin user password"  
5. base URL : Source Server URL

After providing above details, I just pressed PREVIEW to see the status.

Most of the times, it throws error stating "rest".

Not able to find any error message on LOG file.

Please help to resolve the issue.


Answers:
author: Yannis Argyropoulos __ScriptRunner - The Adaptavist Group__
body: Hi [@Sivarama Krishna](/t5/user/viewprofilepage/user-id/609657)

in the 'Project' field, you need to fill in the project key (not name) of the project in the source server.

We have recently improved the errors you see when previewing a git mirror script, if you try ScriptRunner 7.12.0 or higher you will see much better messages like 'Project not found', 'wrong url' etc

Kind regards,

Yannis Argyrropoulos

Scriptrunner for Bitbucket


Tags: bitbucket-server

scriptrunner

server
Need to increase webhook limit
Asked by fathima shimah:

Can I increase the webhook limit per repo? I 'm working with POS system for continuous deployment. We need to connect to one repo from 200+ Apps that require 200+ webhooks, however, the webhooks limitation is 50 per repo.  

Please response soon as possible.  

[@Syahrul](/t5/user/viewprofilepage/user-id/744536)   
[@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086)   

Thanks...:)


Answers:
author: Syahrul
body: Hey [@fathima shimah](/t5/user/viewprofilepage/user-id/5052682)

Welcome to the community.

I assume this is your personal Workspace? If yes, I have removed the Webhook restriction as requested.

Hopefully, that's the right one :), do let me know if you still have any limitations on creating a new Webhook.

Cheers,  
Syahrul


Tags: bitbucket-cloud

cloud

limit

webhook
Select runs-on for a step dynamically
Asked by Jeff Miles:

I'd like to be able to select the "runs-on" values for a step dynamically, so that I do not have to hard-code the repeated use of a step against different runners.

Is this currently possible within the Bitbucket Pipelines yaml? I thought about using YAML anchors however there isn't any conditional logic possible there unless it is within a '-script' section.

Edit: I have come across this Jira Issue that is related; hopefully it gets some votes!

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


Answers:
author: Theodora Boudale
body: Hi Jeff,

This feature is not available as you figured out. I assume you already added your vote to the feature request, you can also add yourself as a watcher (by selecting **Start watching this issue**) if you'd like to get notified via email on updates. When there is an update, it's going to be posted there!

Kind regards,  
Theodora


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
Permissions for which users/group have read access to a particular branch???
Asked by SteveKranz1958:

I know that I can use the **Settings** \> **Branch permissions** to control modifications to a branch (write operations), but I don't see that I can control read operations. There is a branch I want to setup that allows a subset to view, while general access to the rest of the repo is the larger audience. Is this possible?


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

I'm afraid that this is not possible, it is not supported natively by Git and we also don't have a feature to do so.

When a user is granted at least read access to a repo, they can view all branches and source code in the repo.

You can look into using submodules: instead of keeping this branch in the existing repo (let's call it repo A), create a second repo, repo B, with this branch, and make repo B a submodule of repo A. This way you can grant access to different users in repo A and in repo B.

With submodules, when you clone repo A you can also get repo B' source code if you initialize and update the submodule (someone needs to have access to repo B to do that).  
Please keep in mind though that it won't be possible to merge changes from repo B's branch to a branch of repo A, since they are essentially different repos.

You can read more about submodules here:

* <https://www.atlassian.com/git/tutorials/git-submodule>
* <https://git-scm.com/book/en/v2/Git-Tools-Submodules>

Kind regards,  
Theodora

comments: author: SteveKranz1958
body: Thank you Theodora. I appreciate your response.


author: Theodora Boudale
body: You are welcome Steve, please feel free to reach out if you ever need anything else.


Tags: bitbucket-cloud

cloud

permission
How to connect Bitbucket cloud with onsite Jenkins?
Asked by inemerovsky:

I try to research this subject but so far I do not see anything that I can present to my Manager.


Answers:
author: Robert Wen_ReleaseTEAM_
body: Hello [@inemerovsky](/t5/user/viewprofilepage/user-id/4987155) ! Welcome to the Atlassian Community!

You may want to refer to the following Atlassian question: <https://community.atlassian.com/t5/Bitbucket-questions/Bitbucket-Cloud-integration-with-Jenkins/qaq-p/2089224>

comments: author: inemerovsky
body: [@Robert Wen_ReleaseTEAM_](/t5/user/viewprofilepage/user-id/3970316) Thank you! As always, I found that post after publish my question.


Tags: bitbucket-cloud

cloud

jenkins
Using PowerShell in self hosted macOS runners ?
Asked by Romain T_:

Hello  

How can I use PowerShell on my self hosted runners on macOS ? I already have all my CI written in PowerShell because there was no way to use bash on Windows.

Apparently I can pass a runtime to the runner.jar, but when I pass windows-powershell on mac, it doesn't find git in the path. Although I added it to my powershell profile.

```
[2022-10-12 15:43:24,146] Runner version: 1.369
[2022-10-12 15:43:24,161] Runner runtime: windows-powershell
Exception in thread "main" com.atlassian.pipelines.runner.core.exception.PrerequisiteFailedRunnerException: git executable not found in PATH.
[2022-10-12 15:43:25,035] Updating runner state to "OFFLINE".
[2022-10-12 15:43:26,185] Shutdown completed
```

<br />

I can't find any documentation on this, but I hope Atlassian is not expecting their user to write and maintain their CI scripts in both PS and SH scripts surely ?


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

MacOS runners can use only bash at the moment. PowerShell has not been tested nor is it supported.

However, you can run a PowerShell script in bash using

```
pwsh myscript.ps1
```

where **myscript.ps1** is the name of your PowerShell script.

Kind regards,  
Theodora

comments: author: Romain T_
body: Thank you, it's working!


author: Theodora Boudale
body: That's good to hear and you are very welcome!

Feel free to reach out if you ever need anything else!


Tags: bitbucket-cloud

bitbucket-pipelines

bitbucket-runners

cloud
Does Microsoft Silverlight require to be install on Bitbucket server for Bitbucket to work?
Asked by MD:

I am new with Bitbucket support role. I noticed there is an old version of Microsoft Silverlight is installed on our Bitbucket production server. I need to uninstall it because of security vulnerability but not sure its required for Bitbucket or not. Please advise.

Thank you


Answers:
author: Christian Glockner
body: Hi,

Bitbucket Server does not require Silverlight.

Cheers,

Christian

Premier Support Engineer

Atlassian


Tags: bitbucket-server

server
How to use App Password to log in?
Asked by jimerman:

After creating my App Password, I followed the directions [here](https://support.atlassian.com/bitbucket-cloud/docs/using-app-passwords/), but in my GIT command line I get the following error:

```
E:\Data\dotNetDev>git clone https://xxxxx@bitbucket.org/xxxxx/xxxxx.git
Cloning into 'xxxxx'...
fatal: Invalid credentials
Password for 'https://xxxxx@bitbucket.org':
remote: Bitbucket Cloud recently stopped supporting account passwords for Git authentication.
remote: See our community post for more details: https://atlassian.community/t5/x/x/ba-p/1948231
remote: App passwords are recommended for most use cases and can be created in your Personal settings:
remote: https://bitbucket.org/account/settings/app-passwords/
fatal: Authentication failed for 'https://bitbucket.org/xxxxx/xxxxx.git/'
```


Answers:
author: Ben
body: Hey Jim,

I have censored your post as this is a public forum and you had included your personal workspaceID/repo URL.

To make use of the AppPassword - your clone command should have the AppPassword listed beside the username, as well as your remote URL's in the following format:

**Remote URL**

```
git remote set-url origin https://USERNAME:APP_PASSWORD@bitbucket.org/workspaceID/reposlug.git?
```

**Clone Command**

```
git clone https://USERNAME:APP_PASSWORD@bitbucket.org/workspaceID/reposlug.git
```

Please try this and let me know how it goes.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: app

bitbucket-cloud

cloud
Souretree unable to load scripts
Asked by Karam:

I am installing source on a fresh install of window 7, but somehow it does not letting me to do so. It is showing me unable to load javascript. I have checked that my Download Script section in Internet Option is enabled and firewall is disabled. On researching on stackoverflow, i found this link <https://stackoverflow.com/questions/47491152/javascript-load-error-while-installing-sourcetree-in-windows-7>. Thinking that there is some issue on your side that is preventing window 7 users to install the setup. Please fix it.


Answers:
author: bgannin
body: <https://community.atlassian.com/t5/Sourcetree-questions/Javascript-load-error-during-Sourcetree-Install/qaq-p/678516/jump-to/first-unread-message> is the only JS issue we're aware of currently.

comments: author: Karam
body: The issue was that, the browser(IE v8) was old when i updated that the problem was solved. Anyways thanks for your help.


Tags: javascript

windows
How Long will it take for downloading source tree license.
Asked by Shravan Kumar:

Hi   

Would like to know how much time will it take to download source tree license key  
I have registered as per the instructions given.

Only thing it shows is downloading license

Can you please check and let me know.

Thank you  
Shravan Kumar


Answers:
author: Shravan Kumar
body: Thank you Nic  

Is there any other way to get my license key ??

comments: author: Nic Brough -Adaptavist-
body: No, you need to get it from the Atlassian site.


author: Nic Brough -Adaptavist-
body: A new license should take milliseconds, it's a few hundred characters. If downloading a licence lasts more than a few seconds for you, then there's a problem with your browser, connection or the Atlassian licence system. I was able to re-get my licence a few seconds ago, so I don't think it's an Atlassian server problem.


Tags: licence
Why can I not even install Sourcetree? Everytime I try it wont go past the Atlassian log in prompt
Asked by Bill Cobb:

Whenever I attempt to install the Sourcetree GUI I run into this error. The 1st attempt I created my account and got my license file, but the installer did not move forward. I attempted to log into my new account but the log in window was slow, unresponsive, and then froze. After about a minute I just get a white box. The installer will not advance, and I cannot install the product. I have tried deleting the files, running as admin, and downloading a fresh installer. Nothing has worked thus far.![Capture2.JPG](/t5/image/serverpage/image-id/10032iE2FB201251B1D2DD/image-size/large?v=v2&px=999 "Capture2.JPG")


Answers:
author: Ana Retamal
body: Hi Bill! Are you using Windows? If so, can you try a clean install and do some changes in IE?

Steps for a clean install:

1. [Wipe Sourcetree preference](https://confluence.atlassian.com/sourcetreekb/how-to-wipe-sourcetree-preferences-412484640.html)s.
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.

And these are the steps to follow in Internet Explorer:

* Turn off compatibility mode in IE. To do that, open Internet Explorer, go to the *Advanced options* tab and click on *Reset your Internet Explorer Settings*
* Check *Delete personal settings*
* Change your Internet Explorer Security Zone Settings:

1. Open IE, click on the gear
2. Select "Internet Options"
3. Select the "Security" tab
4. Select "Custom Level" for Internet
5. Find "Access data sources across domains" and select "Enable" (make note of what the setting currently is)
6. Try logging into Sourcetree again

After logging in, follow steps 1-5, but ***reset the setting back to the previous option***.

Let us know if this worked for you!

Best regards,

Ana

comments: author: Bill Cobb
body: These steps did not help. Keep getting this error![Capture3.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/10147i6EA508D81D80D143/image-size/large?v=v2&px=999 "Capture3.JPG")
Git LFS not working on Windows 10 (when it used to)
Asked by Scott Ashton:

Hi,

Git LFS is something that has worked in the past for me but no longer does. Normally I work on a Mac so I'm not able to determine when exactly it stopped.

I've tried uninstalling everything git related and going through all the installaltion instructions but to no avail. When push an LFS file it just times out and shows the error (see below).

I am using LFS extensively on most of my repos, ans successfully from my Mac.

The test repo works fine when I uninstall LFS

Pulling LFS files from existing files just doesn't fail, but doesn't pull the file correctly.

In the past I have used other git clients.

I am at a loss.

As of 27/11/17 I'm running the latest version of everything I can think of updating!

LOG:

git -c diff.mnemonicprefix=false -c core.quotepath=false -c lfs.customtransfer.bitbucket-media-api.path=git-lfs-bitbucket-media-api push -v --tags Test master:master  
Pushing tohttps://myname@bitbucket.org/myname/test.git

Git LFS: (0 of 1 files) 0 B / 48.00 KB  
LFS: Put <https://media-api.atlassian.io/upload/a9203aaf-7ec0-4efd-aa53-20680f994df9/binary?hashAlgorithm=sha256>: dial tcp 65.151.186.127:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.  
error: failed to push some refs to 'https://myname@bitbucket.org/myname/test.git'  
Completed with errors, see above.


Answers:
author: Scott Ashton
body: Addendum to my issue:

I've just tested the repo (with LFS) now with GitHub and it's working so it's something specific to BiBucket.

comments: author: Manisha.Natambe
body: Hi , am also getting same issue any idea how to resolve it


author: Manisha.Natambe
body: I am using Bitbucket for Git LFS


author: Scott Ashton
body: Hi Manisha - as I mentioned above - it just started working again(after not working), so I believe in my case the issue was with Bitbucket.

I'm not currently working on a Windows machine so I'm not in a position to speak further on this.

Sorry.

Scott
Sourcetree installation not working
Asked by Luke Samkharadze:

when i am trying to install sourcetree.. and aafter i click use existed account.. i get this weird error..![Capture.PNG](/t5/image/serverpage/image-id/10004i3098F24B2515BCD4/image-size/large?v=v2&px=999 "Capture.PNG")


Answers:
author: amalAlkronz
body: Hi there, I face the same problem\< how can I solve it?


author: bgannin
body: Hi Luke,

This is usually caused when id.atlassian.com is able to load but the scripts that make up the remainder of the page/app aren't, typically due to restrictive network settings. The can resolved by whitelisting per this article: <https://confluence.atlassian.com/cloud/atlassian-cloud-ip-ranges-and-domains-744721662.html>

Brian Ganninger  
Senior Mac Developer, Sourcetree


Tags: error

install

javascript
Unable to Install Sourcetree in Windows 7
Asked by smartdocmanager:

I am getting the following error while selecting 'use an Atlassian account' during installation of Sourcetree in Windows 7 (32 bit) environment:

> Log in with Atlassian account
>
> We tried to load scripts but something went wrong.
>
> Please make sure that your network settings allow you to download scripts from the following domain:
>
> **<https://common-admin-cdn.atlassian.com/atlassian-id/front-end/2.1.3>**

Please find the screenshot below.

**![Error_Image.JPG](/t5/image/serverpage/image-id/10001iF68A963709A1E9CF/image-size/large?v=v2&px=999 "Error_Image.JPG")**


Answers:
author: bgannin
body: This is usually caused when id.atlassian.com is able to load but the scripts that make up the remainder of the page/app aren't, typically due to restrictive network settings. The can resolved by whitelisting per this article: <https://confluence.atlassian.com/cloud/atlassian-cloud-ip-ranges-and-domains-744721662.html>

Brian Ganninger  
Senior Mac Developer, Sourcetree


Tags: install

windows
Sourcetree javascript load error during atlassian login
Asked by debasish_rowlo:

I am trying to install the latest version of sourcetree on windows 7 ultimate and unable to login into atlassian on the 'Atlassian account' step. Can anyone help?


Answers:
author: debasish_rowlo
body: Solved it by upgrading my IE to version 11.


author: BrunoSaraiva
body: All the replies to this issue seem to suggest that Internet Explorer is a requirement for SourceTree. Is that REALLY true?  

Any suggestion on how to use SourceTree in a PC that runs Win7 but does not have IE?

comments: author: debasish_rowlo
body: There's another solution in some other thread that says

* Right click on the error window.
* Copy the current url
* Paste it in your current browser

Seems legit but didn't work for me. I had to upgrade from IE8 to IE11 to get through the "Atlassian Account" step.


author: BrunoSaraiva
body: Thanks for the suggestion, Debasish, but the "paste url" also does not work here. All it does is open a page as below:

![sterror2.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/13479i1E2EFDE85B86D4EA/image-size/large?v=v2&px=999 "sterror2.jpg")


author: anderson-softecsul
body: Boa tarde a todos!

Estava com o mesmo problema sendo que para resolver atualizei o Internet Explorer para vers?o 11 e foi resolvido.
How do I resolve a "smudge error"?
Asked by ModernStoryteller:

I'm running the latest version of SourceTree with git LFS in Windows 10. I'm trying to check out a new branch created by a colleague. Every time I try, I get the following message:  

Error downloading object: Binaries/Win64/UE4Editor-ModernStoryteller01.dll (f109566): Smudge error: Error downloading Binaries/Win64/UE4Editor-ModernStoryteller01.dll (f109566e566f3e968348dd53eb8f92ad25fcbd285cf0504b6585ce2a755401a5): LFS: Get [https://media-api.atlassian.io/file/9d01de26-2749-4291-aa3b-b20788d92377/binary](https://l.facebook.com/l.php?u=https%3A%2F%2Fmedia-api.atlassian.io%2Ffile%2F9d01de26-2749-4291-aa3b-b20788d92377%2Fbinary&h=ATPGXWC01WXkd7F3uEsxo27_EQHcsNvdT-cKSOyMz6L9LOebxf6lJOwXxYFcQLgbeZ3QxupQMzASACyq7wP36drAfhBleiG24ThLU7HQ3qBe5pmUMJmrV2-ZUlYB_t4j8R-ri5p_5cbSRA): dial tcp [65.151.186.127:443](https://l.facebook.com/l.php?u=http%3A%2F%2F65.151.186.127%3A443%2F&h=ATPGXWC01WXkd7F3uEsxo27_EQHcsNvdT-cKSOyMz6L9LOebxf6lJOwXxYFcQLgbeZ3QxupQMzASACyq7wP36drAfhBleiG24ThLU7HQ3qBe5pmUMJmrV2-ZUlYB_t4j8R-ri5p_5cbSRA): connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.  

I have no idea what this means or how to fix it. I don't have any issues checking out any other branches, and my internet connection is stable.


Answers:
author: Ana Retamal
body: Hi Nick! I've done some research and looks like this error means that the server is not listening at the specified ip/port that you are trying to connect to. It can be caused by using the wrong IP address or the wrong protocol. From your error message, looks like Sourcetree fails to connect to 65.151.186.127 on port 443. Can you also make sure the URL you're using is the right one? It redirects me to Facebook from some reason, and times out.

If you keep having issues, can you try performing the same operation directly from the command line instead of using Sourcetree? You can use the following to get a verbose output:  

```
set GIT_TRACE_PACKET=1 set GIT_TRACE=1 set GIT_CURL_VERBOSE=1
```

Let us know if this helped you!

Ana

comments: author: ModernStoryteller
body: Thanks Ana. See my update below.


author: ModernStoryteller
body: On further research and ping traces I discovered there were Atlassian servers I couldn't reach via my ISP (a colleague using the same ISP had the same problem). I reported it to my ISP and the next day it worked fine.

comments: author: Ana Retamal
body: I'm glad to hear that and thanks for sharing this with us!

Have a good day :)

Ana


Tags: windows
SourceTree License Will Not Download
Asked by Peter Eichman:

I've been using SourceTree for over 30 days, so the evaluation trial has ended and the restriction modal has appeared. I use SourceTree as part of my work as an Application Developer, and it is vital to my work there.  

The SourceTree restriction modal prompted me to "Register for Free" which I did by making this account and verifying it via an e-mail link. However, now when I use that login info to download my license via SourceTree; it says it is downloading but it never finishes (20+ minutes of waiting).  

Is there any way I could get a direct download of the license instead of using the download through the SourceTree Modal?  

Thank you


Answers:
author: bgannin
body: You can directly download a registered license for older versions of Sourcetree from <https://my.atlassian.com> after you've logged into that appropriate account.
Cannot clone even though I see all repositories under Remote tab
Asked by Denise Sarazin:

I've successfully connected my GitHub account to Sourcetree, and under Remote I see all the remote repositories. However, when I click the Clone tab and enter the correct URL (the same one all my colleagues used to successfully clone), the Clone button remains dimmed (grayed out) so I cannot complete the clone.


Answers:
author: bgannin
body: What version of Sourcetree are you using? What OS are you on?


Tags: clone

github