Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "WTP Gerrit Access"
(→Clone a repository for development) |
(→Clone a repository for development: remove merged repos under common repo) |
||
Line 26: | Line 26: | ||
#'''ssh://userid@git.eclipse.org/gitroot/webtools-common/webtools.common.git''' | #'''ssh://userid@git.eclipse.org/gitroot/webtools-common/webtools.common.git''' | ||
− | |||
− | |||
− | |||
#'''ssh://userid@git.eclipse.org:29418/jeetools/webtools.javaee.git''' | #'''ssh://userid@git.eclipse.org:29418/jeetools/webtools.javaee.git''' | ||
#'''ssh://userid@git.eclipse.org:29418/jeetools/webtools.javaee.tests.git''' | #'''ssh://userid@git.eclipse.org:29418/jeetools/webtools.javaee.tests.git''' |
Revision as of 15:54, 8 June 2017
WTP source code is managed by the Eclipse Git repositories. After Gerrit process is enabled for the repository, there are a few changes to the existing way of accessing the repositories. This page contains information on how to access the Gerrit enabled WTP repositories via EGit using SSH. It also may help to set up the access to the WTP repositories even if other UI is used.
Please refer to the WTP_Git_Workflows for more detailed instructions on WTP development procedure.
Contents
Generate the SSH2 authentication key
- Open the General > Network Connections > SSH2 preference page
- Check the SSH2 home directory on the General tab to see if there is already an existing key.
- Put in a passphrase in the field Passphrase and save it properly for future reference.
- Click Save Private Key... button to save the private key to the SSH2 home directory.
- Copy the public key displayed in the dialog to upload it to the host as instructed below.
You can also generate SSH key pair on command line
Upload the SSH2 public key
- Log on to Eclipse Git repository with your Eclipse id
- Click the Add Key... button to open the dialog
- Paste the public key copied from the Eclipse preferences page to the public key area
- Click the Add button to close the dialog
Clone a repository for development
After enabling Gerrit for WTP Git repositories, the existing access URLs, for instance ssh://userid@git.eclipse.org/gitroot/jeetools/webtools.javaee.git, become ready only. A new URL, ssh://userid@git.eclipse.org:29418/jeetools/webtools.javaee.git is created for pushing the change set.
Please use the following URLs to access the repositories to push the change set.
- ssh://userid@git.eclipse.org/gitroot/webtools-common/webtools.common.git
- ssh://userid@git.eclipse.org:29418/jeetools/webtools.javaee.git
- ssh://userid@git.eclipse.org:29418/jeetools/webtools.javaee.tests.git
- ssh://userid@git.eclipse.org/gitroot/ejb/webtools.ejb.git
- ssh://userid@git.eclipse.org:29418/jsf/webtools.jsf
- ssh://userid@git.eclipse.org:29418/jsf/webtools.jsf.docs
- ssh://userid@git.eclipse.org:29418/jsf/webtools.jsf.tests
- ssh://userid@git.eclipse.org/gitroot/dali/webtools.dali.git
- ssh://userid@git.eclipse.org:29418/servertools/webtools.servertools.git
- ssh://userid@git.eclipse.org:29418/servertools/webtools.servertools.devsupport.git
- ssh://userid@git.eclipse.org:29418/servertools/webtools.servertools.docs.git
- ssh://userid@git.eclipse.org:29418/servertools/webtools.servertools.tests.git
- ssh://userid@git.eclipse.org:29418/webservices/webtools.webservices.git
- ssh://userid@git.eclipse.org:29418/webservices/webtools.webservices.axis2.git
- ssh://userid@git.eclipse.org:29418/webservices/webtools.webservices.jaxws.git
- ssh://userid@git.eclipse.org:29418/jsdt/webtools.jsdt.git
- ssh://userid@git.eclipse.org:29418/sourceediting/webtools.sourceediting.git
- ssh://userid@git.eclipse.org:29418/sourceediting/webtools.sourceediting.tests.git
- ssh://userid@git.eclipse.org:29418/sourceediting/webtools.sourceediting.xpath.git
- ssh://userid@git.eclipse.org:29418/sourceeditin/webtools.sourceediting.xpath.tests.git
- ssh://userid@git.eclipse.org:29418/sourceediting/webtools.sourceediting.xsl.git
- ssh://userid@git.eclipse.org:29418/sourceediting/webtools.sourceediting.xsl.tests.git
- ssh://userid@git.eclipse.org/gitroot/webtools/webtools.releng.git
- ssh://userid@git.eclipse.org/gitroot/webtools/webtools.maps.git
Please refer to the WTP_Git_Workflows#Clone_a_repo for more detailed instructions on how to clone a repository.
Configure Notification
To be informed of the incoming review requests, you need to configure the Gerrit notification by watching the projects.
- Log on to Eclipse Git repository with your Eclipse id
- Put the interested project name, jeetools for instance, in the Project Name field and select the project from the suggested project list
- Click the Watch button to add the project to the watch list
- Select all check boxes to get all types of notifications
References
For background reading on Git and Gerrit, see Git#Resources and Gerrit. For detailed instructions on WTP development procedure see WTP_Git_Workflows.