youngmon/atlassian-qna huggingface dataset:
Should variables be defined in the pipe.yml of a custom Bitbucket Pipe?
Asked by oobug:

I've noticed that some of the standard Bitbucket Pipes define some or all of the variables for the pipe within their pipe.yml file. Searching the project shows that (as of today) [14 of the 53](https://bitbucket.org/search?q=project%3ABPP%20ext%3Ayml%20%22variables%3A%22%20%22pipe.yml%22&account=%7B02b941e3-cfaa-40f9-9a58-cec53e20bdc3%7D) repositories in the [Bitbucket Pipelines Pipes project](https://bitbucket.org/atlassian/workspace/projects/BPP) have defined variables in the pipe.yml file.

However, the [pipe.yml specification](https://support.atlassian.com/bitbucket-cloud/docs/write-a-pipe-for-bitbucket-pipelines/#Step-5---Make-pipe.yml---the-metadata-file) in the [Write a pipe for Bitbucket Pipelines](https://support.atlassian.com/bitbucket-cloud/docs/write-a-pipe-for-bitbucket-pipelines/) article does not provide any documentation for the "variables:" keyword, its specification, or its function.

Is there a reason to declare variables in the pipe.yml of a Bitbucket Pipe? What does this accomplish? Is there functionality made available by declaring variables in the pipe.yml that is not available through merely consuming provided variables in the main script of the pipe? Is this a deprecated feature?

EDIT: A coworker pointed out a [blog post from December 2019](https://bitbucket.org/blog/updates-to-bitbucket-pipes) that discusses this feature as a way of implementing default variables. However, this feature does not appear to be documented in any of the official documentation. Is this intentional?


Answers:
author: Igor Stoyanov
body: [@oobug](/t5/user/viewprofilepage/user-id/2548815) hi. Thanks for question.

We will update [this page](https://support.atlassian.com/bitbucket-cloud/docs/write-a-pipe-for-bitbucket-pipelines/#Step-5---Make-pipe.yml---the-metadata-file).  

Answering to your question, you can provide or not default variables in pipe.yml, it's up to you.

Example with variables:  

```
name: My demo pipe
...
variables:
  - name: ENV_NAME
    default: 'Production'
  - name: SECRET_KEY
    default: '${SECRET_KEY}' 
...
```

Regards, Igor.

comments: author: oobug
body: To confirm, does that [Updates to Bitbucket Pipes blog post](https://bitbucket.org/blog/updates-to-bitbucket-pipes) accurately describe the functionality of declaring variables in the pipe.yml? That is, it's for the purpose of declaring default values for variables in the pipe?


author: Igor Stoyanov
body: yes


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
Not receiving a password reset email
Asked by Chris_Boyle:

Hello,

Please can you send a password reset email for \<email removed for privacy reasons\>?

The password reset email is not being sent and I am unable to log in.

Thanks


Answers:
author: Caroline R
body: Hi, [@Chris_Boyle](/t5/user/viewprofilepage/user-id/5041950), welcome to the community!

Thank you for reporting this to us. There was an incident in which some of our outbound IP addresses were added to a spam blocklist. I found this response message from your mail server when we tried to send the password reset to that address:

    550 spamcop.mimecast.org Blocked - see https://www.spamcop.net/bl.shtml?192.174.81.104. - https://community.mimecast.com/docs/DOC-1369#550 [xtsIt3DlO3W94KEwrGAqtg.uk197]

The third-party service provider has implemented a fix, so I sent you a password reset again, could you please confirm if you received the email now?

Looking forward to hearing from you.

Kind regards,  
Caroline

comments: author: Chris Boyle
body: Thanks Caroline. That makes sense. I'll talk to IT now. Thank you


Tags: bitbucket-cloud

cloud
Can a ticket to be automatically moved back "In progress", if the PR receives change request?
Asked by Mery Sargsyan:

Hey everyone !  

Our Dev team lead was wondering if it is possible to automate the process when**the PR receives a "Changes Requested" status** , then the ticket to be automatically moved back to "In progress" from "Code review" column?  

<br />


Answers:
author: Tharaka_Hettiarachchi
body: Hi [@Mery Sargsyan](/t5/user/viewprofilepage/user-id/4533364) ,

Yes we can transition the ticket to in-progress state when the PR declined. Check the attachment

![Screenshot 2022-09-28 at 15.56.22.png](https://community.atlassian.com/t5/image/serverpage/image-id/218173i5D4F2C8D36CA123D/image-size/large?v=v2&px=999 "Screenshot 2022-09-28 at 15.56.22.png")

comments: author: Mery Sargsyan
body: Thank you I'll try now :)


Tags: automation

bitbucket-cloud

cloud

github

pull-request
Atlassianbitbucketelasticsearch cannot be started.
Asked by jalitha:

![Screenshot 2022-09-28 at 19.33.08.png](/t5/image/serverpage/image-id/218223i726817B7E867BCF0/image-size/large?v=v2&px=999 "Screenshot 2022-09-28 at 19.33.08.png")


Answers:
author: Nic Brough -Adaptavist-
body: The error message tells you what the problem is - it's already running.

You'll need to look at doing a full shutdown of Bitbucket server, checking that all related services stop correctly, then start it again.

comments: author: jalitha
body: Reboot doesn't work.


author: Nic Brough -Adaptavist-
body: I didn't say reboot (I assume that means you rebooted the server?), I said stop Bitbucket and make sure all of it is completely stopped, before restarting.

Rebooting the server will do that, but it might also be restarting Bitbucket (and Elasticsearch) as it boots, which would explain why you're getting this error when you try to start a duplicate service .


author: jalitha
body: Thank you for your explanation. How do I make sure all of it is completely stopped?


author: Nic Brough -Adaptavist-
body: Use the process manager on the server to see what is running.


Tags: bitbucket-server

server
No response from remote Github repo clone button
Asked by Joe Hanley:

I just installed the latest version of Sourcetree on Windows (2.3.1) and added my GitHub account to the remote repos. However, when I click the "Clone" button on any of the repos, I get no response. No popup, nothing.


Answers:
author: Simon Lieschke
body: You might have hit this bug: <https://jira.atlassian.com/browse/SRCTREEWIN-7971>

comments: author: Joe Hanley
body: Yep. That's it.


author: Joe Hanley
body: Aaaaaaand now it's working. Nevermind.
Can not store bitbucket password in my keychain
Asked by zxf8665905:

OS:

Darwin xx-MacBook-Pro.local 16.7.0 Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16\~2/RELEASE_X86_64 x86_64

sourcetree: 2.6.1 (126)


Answers:
author: Ana Retamal
body: Hi! Can you clarify your description?

You said in your question that you can not store your Bitbucket password in the keychain:

1. Do you get any error when you try to do so?
2. Are you able to store any other passwords? Can yo utry adding a password for a different service?
3. Do you have already any Bitbucket password saved on it?

Please provide as much information as possible so we can help you.

Regards,

Ana


Tags: mac
Source tree won't start
Asked by garethkear:

I appreciate there are numerous threads on this issue but I've yet to find one that resolves my issue.

Recently source tree randomly stopped starting. I uninstalled it then reinstalled. The re installation was suspiciously short and did not resolve the problem.

I have tried uninstalling through both control panel and CCleaner, fixed the registry through CCleaner and removed all files pertaining to sourcetree and atlassian in my AppData. None of which has made a difference.

Any suggestions on where to go from here would be greatly appreciated.

Cheers,

G


Answers:
author: garethkear
body: Mark Redmans solution here resolved the issue for me. Not really fantastic having to do this.

<https://community.atlassian.com/t5/Sourcetree-questions/Windows-10-Source-tree-won-t-update-or-install-the-older-version/qaq-p/262840/jump-to/first-unread-message>
Issue with Custom Action calling Explorer in Windows
Asked by Nick Henry:

I made a batch file that calls c:\\windows\\explorer.exe with parameters

The script works fine, but even if the batch file only contains:

\`explorer\`

Source tree indicates: 'Completed with errors, see above.'

To recreate:

Create custom action

Set 'Script to run' to the batch file to be ran

In the batch file have one line command \`explorer\`

Set Parameters to \`$REPO $FILE\`

Here's my actual script I'm trying to run: (ExploreRepoFilePath.bat)

ECHO OFF  
SET FullPath=%1\\%2  
SET DirectoryPath=%\~dp2  
if exist %FullPath% (  
c:\\windows\\explorer.exe /select,%FullPath:/=\\%  
exit  
)  
if exist %DirectoryPath% (  
c:\\windows\\explorer.exe %DirectoryPath%  
exit  
)

c:\\windows\\explorer.exe %1

EXIT /B 0


Answers:
author: Mike Corsaro
body: Hello! This is actually a problem in your script. You have the "EXIT /B 0" at the end of the file, but you don't return exit code 0 for the other 2 exits. Sourcetree uses the exit code to determine if it's successful or not. The fixed script should look like this:

```
ECHO?OFF
SET FullPath=%1\%2
SET DirectoryPath=%~dp2
if exist %FullPath% (
c:\windows\explorer.exe /select,%FullPath:/=\%
EXIT 0
)
if exist %DirectoryPath% (
c:\windows\explorer.exe %DirectoryPath%
EXIT 0
)

c:\windows\explorer.exe %1

EXIT /B 0
```

comments: author: Nick Henry
body: Thanks Mike, I didn't think about that, figured it was something with calling Explorer specifically.

It's totally working now with no errors! thanks again.


Tags: windows
error 128: clean filter 'filter_name' failed
Asked by Paulo Macedo:

In order to use git with my Jupyter notebooks, I used jq (<https://stedolan.github.io/jq/download/>) to create a filter, call it 'clean_ipynb', following the instructions on <http://timstaley.co.uk/posts/making-git-and-jupyter-notebooks-play-nice/>. While this does make Git and Jupyter notebooks work fine together, I've been having many issues with Sourcetree. In particular, every time I open a repo containing a Jupyter notebook I get an error:

```
'git status' failed with code 128:'jq --indent 1 ? ? ? ? '(.cells[] | select(has("outputs")) | .outputs) = []? ? ? ? ? | (.cells[] | select(has("execution_count")) | .execution_count) = null? ? ? ? ? | .metadata = {"language_info": {"name": "python", "pygments_lexer": "ipython2"}} ? ? ? ? | .cells[].metadata = {} ? ? ? ? ': jq: command not found

error: external filter jq --indent 1 ? ? ? ? '(.cells[] | select(has("outputs")) | .outputs) = []? ? ? ? ? | (.cells[] | select(has("execution_count")) | .execution_count) = null? ? ? ? ? | .metadata = {"language_info": {"name": "python", "pygments_lexer": "ipython2"}} ? ? ? ? | .cells[].metadata = {} ? ? ? ? ' failed -1

error: external filter jq --indent 1 ? ? ? ? '(.cells[] | select(has("outputs")) | .outputs) = []? ? ? ? ? | (.cells[] | select(has("execution_count")) | .execution_count) = null? ? ? ? ? | .metadata = {"language_info": {"name": "python", "pygments_lexer": "ipython2"}} ? ? ? ? | .cells[].metadata = {} ? ? ? ? ' failed

fatal: src/file.ipynb: clean filter 'clean_ipynb' failed
```

Can you please help me fix this? All git commands are working fine, and I'm using System Git with Sourcetree, so I'm not sure where this could be coming from. Thanks!


Answers:
author: Paulo Macedo
body: I fixed the issue by fixing the permission settings with jq. It wasn't a Sourcetree error! Thanks.

comments: author: Axel Perschmann
body: What exactly did you do to fix the permission settings with jq? I'm facing the exact same problem with Sourcetree right now.


author: Kim Scott
body: For anyone else in the same boat: It seems Sourcetree doesn't use the same PATH as the regular shell. (Similar to the issue w/ using jq in launchd described here: <https://stackoverflow.com/questions/23598328/using-jq-to-parse-json-in-launchd>)  

I fixed the same issue just by providing the full path to jq in the .gitconfig file defining the clean filter (i.e., using /usr/local/bin/jq instead of just jq).


Tags: error
I can't setup new source tree
Asked by sieuquet:

Hi ,i can't setup new source tree,i keep old history data from my computer.It say expired in 15/10/2017.Why?I think source tree is really free.


Answers:
author: Mikael Sandberg
body: SourceTree is still free. Are you referring to the support expires date under my.atlassian.com? SourceTree changed how it is licensed as of 1.8.x release and you now have to use your Atlassian account to log on when you install it instead of a license file.
git lfs pull doesn't prompt password "Git credentials not found"
Asked by SUGBOERIE:

I have a team member using Windows 7 and SourceTree to clone a repo that has git lfs. The repo was cloned fine but when downloading/pulling the lfs files SourceTree returns

`Git credentials for http://xx not found`

when running `git lfs pull` within git bash the same thing occurs as well as

`exec: "C:/Users/Dan/AppData/Local/Atalssian/SourceTree/git_local/mingw32/libexec/git-core/git-gui--askpasss": file does not exist`

They've added their credentials to SourceTree but still no luck. I helped another team mate, they were able to pull the lfs files using the same procedure.

How can I pull lfs data and have git bash or SourceTree prompt for a password and username?

I've asked at git lfs [here](https://github.com/git-lfs/git-lfs/issues/2669#issuecomment-336931366) but they suggested I reach out to the SourceTree community/team.


Answers:
author: minnsey
body: Can you check you are using Git v2.14 or higher.  

The latest Git versions include the latest Git Credential Manager that has better sharing of credentials with Sourcetree.


Tags: windows
Git LFS track does not work with space and/or bracket
Asked by Florian Brulhart:

Hi!

This question is linked to this issue I opened on Git LFS: <https://github.com/git-lfs/git-lfs/issues/2668>

To sum it up:

I tried to push large files in LFS based on specific folders.

My gitAttributes file contains the following lines:

```
Fake[[:space:]]Folder/SomeOtherFake/**/*.jpg filter=lfs diff=lfs merge=lfs -text
Fake[[:space:]]Folder/\[braketFolder\]/**/*.jpg filter=lfs diff=lfs merge=lfs -text
```

My folder hierarchy is:

    Fake Folder/bigPicture.jpgFake Folder/SomeOtherFake/bigPicture.jpgFake Folder/SomeOtherFake/LastFake/bigPicture.jpgFake Folder/[braketFolder]/bigPicture.jpgFake Folder/[braketFolder]/SomeUnderBraket/bigPicture.jpg

When I use git with the command line, everything work fine.

With SourceTree I have two problems:

1) With the space, nothing works. Regardless of the "BigPicture" file I choose, I always get the warning asking me to track it on LFS first.

2) When removing the space in the first folder, I am able to stage the "BigPicture" following files:

    Fake Folder/SomeOtherFake/LastFake/bigPicture.jpgFake Folder/[braketFolder]/SomeUnderBraket/bigPicture.jpg

But not the follwing ones:

    Fake Folder/SomeOtherFake/bigPicture.jpgFake Folder/[braketFolder]/bigPicture.jpg

Which is weird because the "SomeOtherFake/\*\*/\*.jpg" path should target any file directly in SomeOtherFake or in any folder under SomeOtherFake.

Did I miss something?

Thanks in advance!

Cheers!

Florian.

Cheers!

Florian.


Answers:
author: Florian Brulhart
body: We are on Windows (some on 7 and some on 10)

Yep, we could do that for the .png and .jpg and some other "Picture" or "DataOnly" format.

But we are using unity asset to store gameplay data that are quite light and some 3d data that are quite heavy. We would like to push 3d data unity asset to lfs while keeping the gameplay oriented data on "normal" git.

Which, if I am not mistaking would allow us more option for working on the same asset on different post/branches...

To be fair, we are using lfs for the first time so we are not "expert" in why or how to do things...

Another surprise appear yesterday. And once again it does not happen in git bash...

When you remove in unity some ".jpg" file which are already tracked by lfs, when you open sourcetree, they will be downloaded again... You have to open sourcetree first, then remove your files in unity, then commit the removed files on sourcetree to avoid them to be downloaded again.

I do not know if it's also a bug or if it is intended...


author: Mike Corsaro
body: Hello! First, which OS are you using?

Second: this sounds like a bug in the way Sourcetree parses the filters. In the meantime as a work-around, you can use:

```
*.jpg filter=lfs diff=lfs merge=lfs -text
```

to track all files with that extension


Tags: git-lfs
Can not clone repo BitBucket
Asked by kononovichroman:

```
Command: perl.exe C:\Users\rkononovich\AppData\Local\SourceTree\app-2.3.1\tools\svn.pl info https://*****@bitbucket.org/*****/*****
Output: 
Error: System.ComponentModel.Win32Exception: ?? ??????? ????? ????????? ????

Command: git -c diff.mnemonicprefix=false -c core.quotepath=false ls-remote https://*****@bitbucket.org/*****/*****
Output: 
Error: remote: Not Found
fatal: repository 'https://*****@bitbucket.org/*****/*****/' not found

Command: hg identify extensions.hgext.hgsubversion=! https://*****@bitbucket.org/*****/*****
Output: 
Error: *** failed to import extension sourcetree_auth from C:\Users\rkononovich\AppData\Local\SourceTree\app-2.3.1\extras\hgext\sourcetree_hg_auth.py: [Errno 2] No such file or directory: 'C:/Users/rkononovich/AppData/Local/SourceTree/app-2.3.1/extras/hgext/sourcetree_hg_auth.py'
abort: http authorization required for https://bitbucket.org/*****/*****

```


Answers:
author: Ana Retamal
body: Hi RomanK, have you tried cloning this repo using the command line? are you getting any error? This will help us identify if this is a problem within Sourcetree or with the repo.

I also see that at the beginning of the text Git is referenced but then the error is mentioning Mercurial as well. Which kind of repository are you trying to clone?

Lastly, can you answer these questions?:

- Version of Git/Hg you have installed.

- Version of Python.

Best regards,

Ana

comments: author: kononovichroman
body: There are no problems with repo. On MacOs, everything works with this repo. On Windows does not work.

- Python 2.7.13

- git version 2.12.0.windows.1


Tags: windows
can't connect with SourceTree
Asked by stinkykong:

I can log in fine to BitBucket but cannot get SourceTree to accept my email address to get started. Email is stevehorn@websentia.com which looks like an email to me.


Answers:
author: stinkykong
body: It's been days now. Is there any progress on this?

comments: author: Ana Retamal
body: I'm afraid we don't have an ETA yet but you can follow our updates at [SRCTREE-5034](https://jira.atlassian.com/browse/SRCTREE-5034). In the meantime, as a workaround, you can use the version 2.1 that can be downloaded from the [archive](https://www.sourcetreeapp.com/download-archives).

Let us know if you have any other questions!

Best regards,

Ana


author: stinkykong
body: Ok, thanks


author: bgannin
body: Our Identity team is testing out a fix to this known issue currently.
Sourcetree windows erroring on open
Asked by MShrieken:

Whenever I attempt to open sourcetree on windows, I get errors that cause the application to not open. I have attempted reinstalling, restarting windows, clearing the Atlassian folder in AppData, to no avail.

\`\`\`

ERROR \[2017-10-16 10:33:45,442\] \[1\] \[SourceTree.App\] \[.ctor\] - finish EnsureSquirrelExecutionStubIsCopied  
ERROR \[2017-10-16 10:33:46,083\] \[1\] \[SourceTree.App\] \[OnStartup\] - Failed to start  
System.NullReferenceException: Object reference not set to an instance of an object.  
at SourceTree.Notifications.NotificationsManager.SetOwner(NotificationDialogWindow notificationWindow)  
at SourceTree.Notifications.NotificationsManager.ShowNotificationDialog\[T\](NotificationDialogWindow notificationWindow, Tuple\`2 customAction, VistaTaskDialogIcon icon)  
at SourceTree.Notifications.NotificationsManager.ShowNotificationDialog\[T\](String title, String message, Tuple\`2 customAction, String cancelLabel, String suppressionSetting, Action\`1 suppressionChangedAction, Object contentControl, String contentCommandLabel, Action contentAction)  
at SourceTree.Notifications.NotificationsManager.ShowNotificationDialogWithYesConfirmation(String title, String message, String details)  
at SourceTree.Configuration.WpfSpellCheckerPreFlightCheck.Run()  
at SourceTree.AppRoot.RunPreFlightChecks()  
at SourceTree.AppRoot.OnStartup(StartupEventArgs e)  
at SourceTree.App.OnStartup(StartupEventArgs e)

\`\`\`


Answers:
author: Ana Retamal
body: Hi Zach, have you tried the solution proposed in this other [Community thread?](https://community.atlassian.com/t5/Sourcetree-questions/SourceTree-failed-to-start/qaq-p/642445):
> Please navigate to the config file location (C:\\Users\\{USERNAME}\\AppData\\Local\\Atlassian\\SourceTree.exe_{RANDOM_GUID}\\2.3.1.0\\user.config) and find the following line:
>
> ```
> <setting name="AutomaticallyCleanUpDictionaryFiles" serializeAs="String">
>
> ???<value>True</value>
>
> </setting>
> ```
>
> Make sure that value is set to ***True***

Let us know if it worked for you!

Cheers,

Ana


Tags: windows
difference in commit options?
Asked by Paul Moors:

The Repository main menu item has the options 'Commit All' and 'Commit Staged Changes'.

What is the difference between those options ?

(to me they seem to be identical)


Answers:
author: Mikael Sandberg
body: Commit all will take all your changes and add them to the commit, equivalent to git commit --all. Commit staged changes will only commit changed files that you have already added to the staging area.
Why 2 Discard options with different appearance
Asked by Paul Moors:

What is the reason for having 2 discard options implementations , each with different screens.  

First option: in (right click) context menu when you've selected one or multiple files

Second option: via topmenu Repository - Discard

Not a big thing, but at least strange since these options both have the same shortcut


Answers:
author: bgannin
body: The "top level" Discard option shares the keyboard shortcut so that if you have nothing selected you can still do so and just select files there or choose to reset them all including merge state.

Brian Ganninger  
Senior Mac Developer, Sourcetree
Uhhhh! Annoying. Install Sourcetree 2.3.1, use existing account show a blank page
Asked by kyvh:

As I said, I was annoying, I waste many hours to fix it. I install sourcetree 2.3.1 on Windows 10. When I come License Agreement, I choose "Use existing account", but it just show a blank page. I tried many way to fix it along articles I found on Google, but no works. Ahhhhh! Why Setting up source tree is so hard, and why Atlassian still using Internet Explorer to connect to your account. Uhhhh, It too hard to understand. My god!


Answers:
author: Ana Retamal
body: Hi! This issue has already been reported in our bug tracker at [SRCTREEWIN-7244](https://jira.atlassian.com/browse/SRCTREEWIN-7244). There are a few workarounds listed in the comments, there's one specially that seems to be working for most of the users so I'll copy it here for you:
> From a working install collect the accounts.json and passwd files.
>
> Delete the Atlassian folder from the AppData/Local directory for your user. Run the installer for 2.3.1, close it when you get the blank login window. Place the account.json and passwd files into the Atlassian/SourceTree folder. Rerun the installer. It should detect the account and password from those files and bypass the request for a login.

Note that in order to be in compliance with the Atlassian EULA you must ensure the email address used in the file is valid, yours and associated with a valid Atlassian account.

In the meantime, our developers continue to work with the id.atlassian.com team to implement a proper fix.

Let us know if it worked for you!

Cheers,

Ana


Tags: account

internet-explorer