youngmon/atlassian-qna huggingface dataset:
Pipe for containerapp deployments
Asked by Esteban Sanchez:

Hi,

We want to deploy a containerapp from pipelines but I'm not able to find a pipe for that.

What should be recommended for Container App deployments?

Container apps are different from Web Apps Containers for using that pipe.

Thanks for the help.


Answers:
author: Oleksandr Kyrdan
body: Hi [@Esteban Sanchez](/t5/user/viewprofilepage/user-id/470572)

Thank you for your question!

For Azure cloud we have a general-purpose [azure-cli-run](https://bitbucket.org/atlassian/azure-cli-run) pipe based on the azure cli:

```
script:
  - pipe: atlassian/azure-cli-run:1.1.0
    variables:
      AZURE_APP_ID: $AZURE_APP_ID
      AZURE_PASSWORD: $AZURE_PASSWORD
      AZURE_TENANT_ID: $AZURE_TENANT_ID
      CLI_COMMAND: 'az account show'
```

Or it could be a good case for your custom pipe. We have clean and simple [guides](https://bitbucket.org/blog/build-flexible-ci-cd-pipelines-with-custom-pipes) and [Bitbucket Pipes toolkit](https://bitbucket.org/bitbucketpipelines/bitbucket-pipes-toolkit/).

Best regards,  
Oleksandr Kyrdan

comments: author: Oleksandr Kyrdan
body: To discover more pipes, visit our [**Bitbucket Pipes Marketplace**](https://bitbucket.org/product/features/pipelines/integrations).


author: Esteban Sanchez
body: Thank you, Oleksandr.


Tags: azure

bitbucket-cloud

bitbucket-pipelines

cloud

container
Azure CLI pipe don't supports containerapp commands
Asked by Esteban Sanchez:

Hi,

We are required to deploy a Container App to Azure. I tried to find a pipe for that but the Web App one doesn't seem to work for that.

So, we are trying to use the CLI (microsoft/azure-cli-run:1.1.0) but the installed version is currently 2.3.1, and seems it's required at least 2.37 per Microsoft.

So, can we update this pipe to 2.37 at least?

Thanks for the help.


Answers:
author: Oleksandr Kyrdan
body: Hi [@Esteban Sanchez](/t5/user/viewprofilepage/user-id/470572)

Officially released pipes are on [**Bitbucket Pipes Marketplace**](https://bitbucket.org/product/features/pipelines/integrations).

So, please, use [atlassian/azure-cli-run pipe](https://bitbucket.org/atlassian/azure-cli-run) instead. It was forked from <https://bitbucket.org/microsoft/azure-cli-run> for future maintenance purposes.

```
script:
  - pipe: atlassian/azure-cli-run:1.1.0
    variables:
      AZURE_APP_ID: $AZURE_APP_ID
      AZURE_PASSWORD: $AZURE_PASSWORD
      AZURE_TENANT_ID: $AZURE_TENANT_ID
      CLI_COMMAND: 'az account show'
```

The pipe based on 2.40 [azure-cli version](https://bitbucket.org/atlassian/azure-cli-run/src/master/Dockerfile).

If any fresh updates required to support the latest feature, please notify us.

Welcome to share your experience with the community.

Best regards,  
Oleksandr Kyrdan


Tags: azure

bitbucket-cloud

cloud

container
Recover my username
Asked by Alfonso Vargas:

Hi! I have an account <https://bitbucket.org/alfonsovgs/> but I don't remember my associated email. IsThere an option to recover my username?   

<br />


Answers:
author: Ben
body: Hey Alfonso,

I would suggest checking your local GIT config and looking for an email address listed here that might relate to your old account so that you can reset the password and receive the reset link to this email address:

```
git config --list
```

Cheers!

- Ben (Bitbucket Cloud Support)
Docker Build Kit Secrets throwing unexpected error
Asked by LHernandez:

Help with this would be appreciated!

I'm using docker build kit to pass build secrets.

I'm replicating the documentation found [here](https://support.atlassian.com/bitbucket-cloud/docs/run-docker-commands-in-bitbucket-pipelines/#Use-Bitbucket-Pipelines-Secure-variables-with-BuildKit)

The 2 secrets are present in repo vars and they are secure.

My pipeline step looks like this:

![Screen Shot 2022-12-15 at 12.04.12 PM.png](/t5/image/serverpage/image-id/230667i7B4BC7821595291B/image-size/large?v=v2&px=999 "Screen Shot 2022-12-15 at 12.04.12 PM.png")

I'm getting the following error message:

```
could not parse secrets: [id=WEBLOGIC_ENCRYPTION_SECRET id=WEBLOGIC_ENCRYPTION_SALT]: failed to stat WEBLOGIC_ENCRYPTION_SECRET: stat WEBLOGIC_ENCRYPTION_SECRET: no such file or directory
```


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

I haven't been able to reproduce this error so far with a Docker runner and a command similar to yours, the only time I can reproduce this is if the variables do not exist.

I see that you are using a runner for this step.

1. Can you please confirm if this is a Linux Docker Runner?
2. What version of the runner are you using? You can find that in the Pipelines build log in the section Runner.
3. What is the version of Docker on the machine where the runner is running?
4. Are you using a custom docker-in-docker image for the docker service in the bitbucket-pipelines.yml file?
5. What output do you get if you add the command **docker --version** in that step in the bitbucket-pipelines.yml file?

Kind regards,  
Theodora


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

docker

secret
New installation - Javascript load error
Asked by Chris Jones:

Hi, please help with the following error.

Log in with Atlassian account JavaScript load error

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.4.27>**


Answers:
author: minnsey
body: Hi  

Sourcetree registration relies on a component that uses Internet Explorer under the hood.  

Please check you can log into <https://id.atlassian.com> using Internet Explorer, if you have problems there our current best advice is as follows:

1. open Internet Explorer
2. open the Developer tools, f12
   1. set the Browser Mode 10
   2. set the Document Mode Standards
3. open Cog/Internet options
   1. ensure the following settings are enabled
   2. Misc/Access data sources across domains
   3. Misc/Allow META_REFRESH
   4. Scripting/Active Scripting

We continue to have this area under review.

comments: author: Chris Jones
body: Hi Michael,

i installed IE11 and it worked out of the box. I couldn't see this as a system requirement in any of the documentation.

Now i just need to try and make our legacy business systems work with IE11... hopefully Enterprise Mode will help. FYI - we generally use two browser solutions, IE8 for legacy apps and latest Firefox for everything else (JIRA, Confluence...). Sorting all this out will delay our migration to JIRA s/w.

Glad to here you've got this under review, suggest you at least make Sourcetree browser neutral if it has to use a browser at all.

thanks,

Chris
I can't install Source Tree. the authentication process during the install does not complete
Asked by AppsAtW2W AppsAtW2W:

I am having trouble trying to install Source tree.

I have tried old copies, new copies.

Every time i get the authentication it just sits there as I try to log on.

Super Super annoying.

Please advise.

Rick Laird


Answers:
author: Ana Retamal
body: Hi! Where exactly does the process get stuck?

If you're using Windows, make sure that Internet Explorer is updated to the latest version as it relies on it for authentication. If after that you're still having the issue, send us a screenshot and elaborate a bit more on the steps you performed until you got there so we can continue helping you.

Best regards!

Ana
I am not able to sign in to my existing account using sourcetree
Asked by Mohit Kulkarni:

It is showing following error -

Log in with Atlassian account

JavaScript load error

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.4.27>**


Answers:
author: Ana Retamal
body: Hi Mohit! This is usually caused by an old version of the browser. Sourcetree relies on Internet Explorer for authentication, can you make sure it's updated to the latest version?

Apart from that, IE needs to be configured at a minimum as follows:

- Cog/Internet options/Security settings need to be enabled

- Misc/Access data sources across domains

- Misc/Allow META-REFRESH

- Scripting/Active Scripting

- The browser mode set to 10

- The document mode set to 10

These can be set using the F12 developer tools.

Those are the settings that matter. It should also be able to set them indirectly by:

- making sure [https://id.atlassian.com](https://id.atlassian.com/) is NOT set to be rendered in Compatibility Mode

- Set Cog/Internet options/Security to Medium-High

Let us know if this helped you!

Best regards,

Ana
How to you keep antivirus from slowing down sourcetree on windows.
Asked by bgf777:

No, this isn't the standard post about how much worse sourcetree is on Windows (it is), or how annoying it is that it must "install" itself every time you open it in windows (which does take forever).

I've used other software that is too slow to use on Windows (cygwin!), but in most cases I can tell my antivrius software (bitdefender) to ignore the install folders. That make things usable.

It doesn't seem to work for SourceTree. I've told my antivirus to avoid me\\AppData\\Local\\Sourctree, but the program is still insanely slow (like 30 seconds to do anything).

Does SourceTree "install" itself to some temporary location that also need to be "white listed" for the antivirus?

Just to say something positive, SourceTree for OS X remains a very good program.


Answers:
author: minnsey
body: Hi  

Incidentally Sourcetree for Windows shouldn't be re-installing itself each time you run. If you run %localappdata%/Sourcetree/Sourcetree.exe that is the app not the installer and it should just run. If not please let us know.  

Sourcetree effectively runs out of 3 locations:

* Its own install folder %localappdata%/Sourcetree
* The location of git/hg exe, either
  * %localappdata%/Atlassian/git_local or hg_local
  * Or the path of the system git/hg install
* The location of the repositories
  * since git/hg re-write files in these folders

comments: author: bgf777
body: well, maybe it doesn't "re-install" itself? It puts up a progress bar, says "downloading", then does dark for 10 seconds, then comes up. Usually as some very small window. and auto update never works. Every now and then I manually download an update, but it never gets any better. And, yeah, my shortcut is to the location you describe.

I'll see if any of the locations you describe an not yet white listed by my antivirus. I think all of them are, although I have no idea where my "system git" is installed.


author: minnsey
body: Ah, I think the window you are seeing is Sourcetree copying some files, probably authentication tools from the installation folder to %localappdata%\\Atlassian\\Sourcetree\\git_extras or hg_extras, there is a small bug that means it does this on each restart, when it doesn't need to. But it is copy from local files not actually downloading and it shouldn't actually effect running Sourcetree. There is a fix in the works.  

Sysgtem Git is, if you use the standard installer likely to be in c:\\program files\\ or c:\\program files (x86)\\
Push Error from a beginner
Asked by Manuel Aeschbacher:

Hello together

I'm new to GIT and Sourcetree and I'm fighting with the beast...

Steps so far:

1. Create on a local network server a new GIT-Repository  
2. Add some code-files in this folder  
3. Stage and Commit the new files

4. Create new tab on sourcetree  
5. Clone the remote repository to a local folder  
6. Do some changes in the code  
7. Stage and commit  
8. Push

At point 8. the fallowing error message pops up:

git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags origin master:master  
Pushing to //bfh.ch/data/TI/fbm/Projects/Team_IDT/Projekte/KTI-Schuettelkolben/D_Entwicklung/Steuerung/GIT_TEST_4_Server  
remote: error: object directory /bfh.ch/data/TI/fbm/Projects/Team_IDT/Projekte/KTI-Schuettelkolben/D_Entwicklung/Steuerung/GIT_TEST_4_Server/.git/objects does not exist; check .git/objects/info/alternates.   
remote: fatal: unresolved deltas left after unpacking

error: unpack failed: unpack-objects abnormal exit  
To //bfh.ch/data/TI/fbm/Projects/Team_IDT/Projekte/KTI-Schuettelkolben/D_Entwicklung/Steuerung/GIT_TEST_4_Server  
! \[remote rejected\] master -\> master (unpacker error)  
error: failed to push some refs to '//bfh.ch/data/TI/fbm/Projects/Team_IDT/Projekte/KTI-Schuettelkolben/D_Entwicklung/Steuerung/GIT_TEST_4_Server'

Is there any solution out there?

Thanks and best regards,  
Manuel


Answers:
author: minnsey
body: Hi  

Your error sounds very like these: <https://stackoverflow.com/questions/41115613/git-bash-fail-to-push-branch-with-error-message-object-directory-does-not-exis>

But that suggests an issue in Git that was fixed in v2.12, what version are you running?

comments: author: Manuel Aeschbacher
body: I changed the path of the network to p:\\....

Now there is a new error message, but I will open a new thread for this.
I can't clone a repository to source tree
Asked by jvaldes2:

I have tried deleting sourcetree and reinstalling using the directions on Atlassian for Mac OS mavericks or higher.

I get this message when cloning:

*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.*

*fatal: Authentication failed for*

The first time I cloned and it asked me for what i thought was my password to atlassian, i clicked always use this information. I'm paraphrasing btw.

So i think it locked in the wrong information causing the message above which is what i suspect is causing the error above. Not positive but that's why I have been trying to clear source tree and its preferences but it's not working.

Any help would be appreciated! Thank you!


Answers:
author: Manju
body: Could you please confirm the authentication type and protocol used for the account setup if already done in Sourcetree?

comments: author: jvaldes2
body: Hi, I am using HTTPS in bitbucket to clone it to sourcetree, I think the credentials for authentication it was asking for was a serial key.

To sign into sourcetree I am using my credentials that I use to log in here.


author: jvaldes2
body: I used CCleaner and now I am getting a different error message :

fatal: could not read Password for 'https://jvaldes2@bitbucket.org': Device not configured


author: jvaldes2
body: I also don't get any prompt asking me for a password when cloning with HTTPS.

It just says path / URL is not valid.![sourcetree-error.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/18913i34C10E1BF0F13913/image-size/large?v=v2&px=999 "sourcetree-error.jpg")


author: Andreea Oltean
body: I have the same problem. Any solution found?


Tags: mac
Sourcetree locking up for 30 seconds on activation
Asked by Michael Anthon:

I'm having terrible performance issues with Sourcetree (Windows 2.4.8.0) at the moment. Every time I switch back to the application from other windows it seems to lock up for 30+ seconds with the title changing to the windows "Not Responding" message for that period.

There doesn't seem to be any excessive CPU/disk/network activity during this time so I'm at a loss to know what's going on. It almost feels like a network timeout issue of some sort but I have nothing to back that up.

This has only been happening for the last few days and \*may\* have started after the latest windows update was installed.

Anyone else experiencing this or have any tips for debugging further?

Thanks


Answers:
author: minnsey
body: Hi   

Sourcetree runs git status, and some other commands, when it comes back into focus to bring the UI up to date with the underlying filesystem. It is very likely that this is causing the slow down.  

You can see more about what is happening by using the Tools/Process Viewer... window, this will list the git processes being run with timings and it might help shed some light.

comments: author: Michael Anthon
body: Ah, don't know why I hadn't noticed that tool, thanks for that.

I think I managed to fix the issue (for now) by deleting the sourcetree folder from AppData, so essentially starting from a clean setup.

Will keep an eye on the performance and if it goes bad again that tool will certainly help track down the issues I hope.

Thanks
Sourcetree Terminal on Windows loads SSH key with every remote-related command
Asked by alondono:

The connection to my remote in Bitbucket uses the SSH protocol. Using Sourcetree to push, pull, and fetch works as expected and without issues.

The problem occurs when I start Git Bash using the Terminal button in Sourcetree. If I try to use any of the remote-related commands like \`git push\`, \`git pull\`, or \`git fetch\` then I get prompted for my key's passphrase. The annoying part is that this happens every time I use any of those commands, regardless of whether I am still in the same Git Bash session, or if the Git Bash window was closed and reopened, or if I used the command only a few seconds ago.

I would understand if the key is loaded --- and I get asked for the passphrase --- the first time I use a remote-related command for that session of Git Bash, but if I don't close the Git Bash window, being asked for the passphrase for every command is bothersome. Is it possible to keep the key loaded for that session of Git Bash?

PS: I've been able to associate Sourcetree's ssh-agent with a Git Bash session, and keeping the key loaded, but only if the Git Bash window wasn't started from the Terminal button in Sourcetree. I do this by manually (or with a script) setting the SSH_AUTH_SOCK and SSH_AGENT_PID variables accordingly. But for some reason, this doesn't work if I try to do it with the Git Bash session started with the Sourcetree Terminal button.


Answers:
author: minnsey
body: Hi  

Thanks for the detail.   

That looks like a bug, I've raised <https://jira.atlassian.com/browse/SRCTREEWIN-8516> to report it.

comments: author: alondono
body: Hi Michael,

Thank you for that. I will follow that issue.


Tags: ssh

terminal

windows
Credential Authentication Issues - Cannot Push or Pull
Asked by jonlarsen:

I cannot push or pull since Sourcetree updated last week.

* Paid 10 user plan
* Mac Sourcetree Current Version
* All Repos are in Bitbucket

<br />

**Error on Pull if I am Logged in to bitbucket.com**

*git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree fetch origin*

*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.*

*fatal: Authentication failed for 'repo.git'*

**Error on pull if I am NOT logged in to bitbucket.com**

git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree fetch origin

remote: Too many invalid password attempts. Try logging in through the website with your password.

fatal: unable to access 'repo.git/': The requested URL returned error: 403

Completed with errors, see above

**If I try to Refresh Remote I get these errors:**

**![Screen Shot 2018-04-03 at 2.32.36 PM.png](/t5/image/serverpage/image-id/18577i7D6E884E704E4FB8/image-dimensions/335x220?v=v2 "Screen Shot 2018-04-03 at 2.32.36 PM.png")**

**![bitbucket error.png](/t5/image/serverpage/image-id/18579iE99EC66A89D4978B/image-dimensions/333x196?v=v2 "bitbucket error.png")**

**However, if I check, my account indicates I am using Oauth:**

**![Screen Shot 2018-04-03 at 2.25.47 PM.png](/t5/image/serverpage/image-id/18578i6D3EB2D425719A3D/image-dimensions/533x102?v=v2 "Screen Shot 2018-04-03 at 2.25.47 PM.png")**

I tried re-saving my username as was suggested elsewhere as well as clearing cache and using both Chrome and Safari.

I am reluctant to change my username as is suggested as it would change the URL of all of my (dozens) of Repos as far as I understand.


Answers:
author: Ana Retamal
body: Hi! Have you tried performing the same operations from the command line? Are you getting the same errors?

If you're also getting errors when you use the command line, it means there's an issue with the authentication. Otherwise, the issue is between Sourcetree and Bitbucket. If so,

can you confirm your credentials have been correctly added in Sourcetree? You can do so following the steps at [Connect your Bitbucket account](https://confluence.atlassian.com/get-started-with-sourcetree/connect-your-bitbucket-or-github-account-847359096.html).

Regarding your last comment, where does it say to change your username? I've seen changing the password as a recommended method sometimes, but I don't think changing the username has been recommended.

Best regards!

Ana

comments: author: jonlarsen
body: I tried a git pull from the command line and received the response

Not a git repository (or any of the parent directories): .git

The .sourcetreeconfig file shows the correct username

The correct baseurl

This happens with any of my repositories...

I really have to find an answer for this issue. Can you assist?


Tags: authentication

mac

pull-request
Errors when pushing or pulling
Asked by Jay Burt:

Hi, I keep getting the below error when pushing or pulling to my Bit Bucket account through SourceTree.

Error:

git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v origin refs/heads/master:refs/heads/master

Pushing to [https://bitbucket.org/\*](https://bitbucket.org/thecreativecorporation/band-theme)\*\*\*\*\*\*\* (I have edited this)

remote: Too many invalid password attempts. Try logging in through the website with your password.

fatal: unable to access '[https://bitbucket.org/thecreativecorporation/\*](https://bitbucket.org/thecreativecorporation/band-theme/)\*\*\*\*': The requested URL returned error: 403

Completed with errors, see above

This happens every time I try to push or pull. I have updated my version of Source Tree but it is still the same.


Answers:
author: minnsey
body: Hi  

It looks like your Bitbucket account is semi-locked. You will need to open your Bitbucket account in a browser. If you have an open session already then logout and then log back in, this should reset the lock.

comments: author: Jay Burt
body: I did this and it didn't work. Then I went into my account settings and saved my username again and it now works.


author: Josevin
body: Which account setting? In browser Atlassian account or sourceTree presences ? can you pleas help ?


author: minnsey
body: Hi  

I believe [@Jay Burt](/t5/user/viewprofilepage/user-id/285725) was refereeing to his Bitbucket account in Sourcetree. In Windows it would be in Tools/Options/Authentication tab
sourcetree sign in on mac
Asked by yen:

I believe this is bug on Mac version of souretree, I check this problem and try to fix it for days, have sign in problem. to set up ssh key. But when I use terminal to ssh clone have no problem. When I click the remote on sourcetree it not show any thing then I click the gear refresh it shown sign in problem.

The operation couldn't be completed. (com.google.HTTPStatus error 401.)


Answers:
author: Aswin Achuthan
body: Check if you are using latest version(2.7.1), reboot the system and give it a try


author: Manju
body: Can you please provide details on the account configuration? If the account is added in Sourcetree, the protocol used https/ssh and authentication type (basic/OAuth)?

If you are using ssh to add your account, remotes cannot be listed. Please switch to using https.

However with ssh, you should not have problems cloning or any other git operations.

comments: author: yen
body: I try both with the sign in problem, keep asking me the password, I am sure the password, then I reset the password at bitbucket.org. then try to sign in again same with the sign in password problem.