Gerrit client -remote configuration - gerrit

I have installed Git and Gerrit and prepared remote site.
I am facing communication issue between Client and Remote.
My Config file looks as below,
enter image description here
Error while doing clone,
Fatal: Could not read from remote repository
Please make sure you have the correct access rights.

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

Push Xcode Project to TFS Git repository

Trying to push Xcode project to TFS (Git repository), i created local repository for my project in Xcode, then install Git Credential Manager from GitHub, then trying to connect repository from Xcode by adding remote or connect to git repository, but the error message is "Authentication failed because the authentication credentials were rejected."
Would you please provide me with the correct steps.
Knowing that TFS 2015 & Xcode 8.2
The easiest solution for me was to just add your local repository with command line.
git remote add origin ADRESSOFREPO
Afterwards you can use the version control in Xcode to push and pull
TFS 2017 offers you SSH access. The earlier versions, like 2015, requires to setup SSL and Basic Authentication on the server. I guess that this is not properly configured for you.
The steps to setup SSL are described in details in the docs.
Here you can find what is required to configure Basic Authentication.
A couple of caveats:
username should be entered in domain\user format
do not enable Basic Authentication on the default non-SSL site

Unable to configure a non java project on Jenkins

I have a non-Java project for which I want to automate the build through jenkins.
I have create a job with free Style type. Then I have checked out the SVN repository to my local machine. For testing purposes, I want to first build the project locally.
I have Repository URL : file:///C:/MyProject/.
I get an error: Unable to access file:///C:/MyProject : svn: E180001: Unable to open an ra_local session to URL.
Also I tried with credentials, but am still getting same error.
Note: credentials I have given are the ones which I use to login to my local machine.
Please assists.

packagist error when adding bitbucket repository

I get the following error when trying to add a repository.
Uncaught Exception: [RuntimeException] Failed to execute git clone --mirror 'git#bitbucket.org:doppy/doppy.git' '/home/composer/.composer/cache/vcs/git-bitbucket.org-doppy-doppy.git/' Cloning into bare repository '/home/composer/.composer/cache/vcs/git-bitbucket.org-doppy-doppy.git'... Host key verification failed. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
The repository is public and when I copy and run the command locally I don't get any error.
I guess this an issue on the packagist server itself with the bitbucket servers?
side note: yeah, I understand it is a silly repo. I fully intend to remove it when done testing and cleanup my own mess.
Feedback from composer user mailing list:
https://groups.google.com/forum/#!topic/composer-users/ciGcpehsvy4
I think the problem is we don't support git# connections to bitbucket as
we don't have an ssh key set up for them. Make sure you use the HTTPS
clone URL and that should work:
https://bitbucket.org/doppy/doppy.git
Cheers

setup AOSP source on local gerrit

I would like to setup a local copy of android source into local gerrit.
I installed gerrit and used git clone --mirror to clone android under
/home/gerrit2/review_site/git/ with repo sync , restarted gerrit and i can see all repositories as projects in Gerrit, but I cannot access them when I click on the project I get:
Code Review - Error The page you requested was not found, or you do
not have permission to view this page
Then I found that I'm able to browse two repositories: git-repo and kernel
I looked at my /home/gerrit2/review_site/git/ and I understand that everything that is in nested directories cannot be accessed:
.repo
device
git-repo.git
kernel.git
platform
vendor
So only kernel.git and git-repo.git can be accessed normally in gerrit.
well i found the solution.
What i did not mention is that i am using http proxy with gerrit and i found the fix in the Apache httpd configuration, had to add "nocanon" option into following line:
ProxyPass /gerrit/ http://MY_GERRIT_IP:8081/gerrit/ nocanon

Resources