Why can I no longer log into BitBucket from Visual Studio 2019? - bitbucket

I am using Visual Studio 2019 with BitBucket Extensions installed.
For some reason I can no longer log into BitBucket from Visual Studio.
It's giving me an "Invalid Credentials" error.
I am using the same username (email address) and password that I use to log into the BitBucket website.
I tried uninstalling/reinstalling the BitBucket extension.
I tried changing my password.
For some reason I can no longer log into BitBucket to push/pull from my remote branch.
This has been working fine for 6 months. I am not sure what has changed.

Given that your login has been working fine for 6 months, I would say that creating a new App password on BitBucket will fix the Invalid Credentials, it probably expired.
Other approach would be to put your username without the domain, for example
arson#enterprises.org would be just arson.

Related

Importing BitBucket git repository to Team Foundation Server 2018

When I create a new Git repository in a TFS project area, there are several options to add some code.
I’ve tried the import a repository a couple of times now.
The first run gave me this error after an extended period of time. This would indicate a connection timeout based on my experience with other tools and process.
We checked the logs in the EventViewer on the application server side but couldnt find anything. We suspect an SSL/cert issue between BitBucket and TFS 2018. This is also hosted in-house.
Please double check whether the URL is correct. And please notice import service relies on basic authentication to communicate with the source repository. If the username / password you are using are not basic auth then authentication will fail and import will fail. One way to check if the username / password you are using are basic auth or not is to try using Git to clone your repository using the below format:
git clone https://<<username>>:<<password>>#<<remaining clone Url>>
Please refer to the following link for more details:
https://learn.microsoft.com/en-us/vsts/git/import-git-repository?view=vsts#frequently-asked-questions

Setup Jenkins on VSO with TFS

Has anyone successfully set up VSO & Jenkins & TFS?
Server URL: https://<myproject>.visualstudio.com/DefaultCollection
Login name and user password (using alternative credentials)
What domain name did you use? <domain>\username
If I run the tf command in Command Prompt, it succeeds, but Jenkins shows the same command as failing. I'm lost as to how to debug this. I also tried setting cached credentials for TFS, and not caching them. It seems as though Jenkins does not have cached credentials, but my command prompt does? Why would my system have stored credentials for me, but not Jenkins?
Error from Jenkins: TF30063: You are not authorized to access https://windwardstudios.visualstudio.com/DefaultCollection
With the release of version 4.0.0 of the Jenkins Team Foundation Server plugin, Team Foundation Version Control (TFVC) from Visual Studio Online (VSO) is now officially supported and both Personal Access Tokens (PAT) & alternate credentials can be used.
See the section User name and password in the wiki page.
This is an answer, but may not be what you want to hear. This used to work for us about a year ago. It required someone to stay logged into VisualStudio.com with his MSDN credentials on the build server. Then we simply didn't use credentials in the Jenkins TFS plug-in. Then one day, that simply stopped working. We tried alternative credentials, as #MrHinsh suggested, but never got it to work. Eventually we gave up and switched all of our TFS repositories to git (but still hosted on VisualStudio.com). That does work with the alternate credentials, and we have been very pleased since.
You need to configure Jenkins yo use the alternate credentials. It will not work with any other configuration and the credentials are never stored. Every command that you pass must include the same creds.

How to retrieve latest build from Visual Studio Team Services?

Our shop uses Visual Studio Team Services, previously Visual Studio Online, for SVN and Builds.
We are trying to find a way to download the drop package (build zip) via the command line. For this purpose, we stumbled upon TFS Drop Downloader which appears to be made for this very reason. Unfortunately, the last revision was made in 2013 and does not appear to work with Visual Studio Team Services anymore. When we supply the parameters (collection, username, password, etc.) it asks again for credentials via a Windows dialog and all attempts seem to fail.
Is there another way to download the builds from Visual Studio Team Services via the command line?
Sample command line:
C:\> tfsdropdownloader /c:https://project.visualstudio.com/DefaultCollection /t:"Project Name" /b:"Build Definition" /u:username /p:password
Even though we supply username and password, the tool asks for credentials again via a Windows dialog and fails even when supplied.

Add an xcode project in a repository tfs

I'm trying to connect to a repository tfs a written project with xcode 5.
I'm using git-tf and it seems that the configuration in xcode 5 is correct.
The problem that feedback occurs when authentication with the TFS repository.
In xcode 5 open preferences and go in the accounts. I enter the login information with the url and in response I Access denied credentials are incorrect.
What am I doing wrong?
I was encountering the same issues when trying to authenticate in Xcode 5.
Make sure that you enabled Basic Authentication for your user profile for the TFS user account and that you selected "New Team project + GIT" instead of "New Team Project".
You can also try to clone the repository by using Terminal. Type the following command into Terminal and replace XXXXX with your values.
git clone https://XXXXX.visualstudio.com/DefaultCollection/_git/XXXXX
Then provide your credentials. Terminal will now clone the repository when authentication succeeds and your credentials will be saved to your keychain. Now when you try to authenticate in Xcode it will use the saved keychain credentials and it will (probably) successfully add your TFS repository to Xcode.
I hope this will help you!
See:
http://tfs.visualstudio.com/en-us/learn/use-git-and-xcode-with-tfs.aspx
for more information
https://www.visualstudio.com/en-us/get-started/share-your-xcode-projects-vs
Share your Xcode projects in Visual Studio Online using a Git repository. Or, if your team project uses TFVC instead of Git, you can use the git-tf command line tool to check your files into Visual Studio Online.
Enable alternate credentials
You can’t sign in to Xcode with an account that contains an # character, so you’ll have to enable alternate credentials.

connect to TFS with TortoiseGit or msysgit?

I made a new blank TFS git project and tried to clone it in a new folder on my desktop using TortoiseGit and msysgit. It always fails saying 'Authentication failed'.
I typed:
"git clone https://saratoga.visualstudio.com/DefaultCollection/_git/Git%20Test."
When prompted for my username I entered my Windows account email address (e.g. bob#example.org).
It then asked for my password for
"https://test#saratoga.visualstudio.com"
i entered the password. However, I am unable to connect to the tfs service, message appear that authentication failed in tortoise git.
Alternative Authentication Credentials in TFS provides a solution, use the following instructions:
Click on your name in the upper right of screen.
Click on My Profile.
Click on the Credentials tab.
Setup an alternate username that doesn't include the # character.
Now when you connect to the remote repo via TortoiseGit, you can use the alternate credentials and those new credentials should work.

Resources