Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Table of Contents

Follow the steps below to set up your development environment.

...

  1. Add a remote pointer to the Gerrit server that hosts your repository. (behind the company VPN Windows users will use the alternate command)

    Using SSH:

    git remote add origin ssh://USERNAME@gerrit.openecomp.org:29418/<REPONAME>

    Using HTTPS:

    With HTTPS, first you will need the Gerrit HTTP-generated password for each HTTPS operation with Git/Gerrit.

    git remote add origin https://USERNAME@gerrit.openecomp.org/r/a/<REPONAME>
     
  2. Now clone the remote repository (because the repo already contains a commit from the Linux Foundation team that created it). Since we clone in the current folder, it will create a sub folder with the remote copy.

    Using SSH:

    git clone ssh://USERNAME@gerrit.openecomp.org:29418/<REPONAME>

    Using HTTPS:

    With HTTPS, first you will need the Gerrit HTTP-generated password for each HTTPS operation with Git/Gerrit.

    git clone https://USERNAME@gerrit.openecomp.org/r/a/<REPONAME>
    Using an IDE : Install

    Installing the Gerrit plugin in IntelliJ

    , cloning and pushing

    Open File -> Settings -> Plugins of IntelliJ, and click on the Browse repositories... button.


    In the new window, search for Gerrit, click Install to install the plugin, and finally restart IntelliJ.


    To verify whether the Gerrit plugin is installed successfully, you can click File -> New -> Project from Version Control and verify whether Gerrit is present.



    Working with a Proxy

    For people working with a proxy, you might have proxy issues connecting to Linux Foundation website. To avoid the connection issue, you shall define the proxy setting for both IntelliJ and Git.

    To configure the proxy settings in IntelliJ, click File -> Settings -> Appearance & Behavior -> System Settings -> HTTP Proxy, enter the correct proxy settings and click Apply. In case of Manual proxy configuration, while entering the Host name, there is no need to write http:// in front of the URL. For example, if the proxy value is http://one.proxy.com, you shall putone.proxy.com as the Host name.



    To configure the proxy settings for Git, play the following command:

    git config --global https.proxy https://<proxy username>:<proxy password>@<proxy url> 
    git config --global http.proxy http://<proxy username>:<proxy password>@<proxy url>

    Note: while entering proxy username, sometimes it may require to add the domain name in front.