...
- You must first generate an SSH key on your Eclipse/Papyrus platform
- Go to "Window→ Preferences→ General→ Network Connection→ SSH2
- Select the tab "Key Management" and choose "Generate RSA Key"
- The system will generate a key for you and place the key in the same window. Select "Save private key" which will save your key as id_rsa.
- You will need to "copy/paste" that key that you will upload into Gerrit before you hit "Apply and Close"
- Uploading the key into Gerrit
- Login to Gerrit (gerrit.onap.org)
- Click your name at the top right
- Click Settings > SSH Public Keys (https://git.eclipse.org/r/#/settings/ssh-keys)
- Click Add Key ..
- Paste the text of your public key into the text box
Click Add
Cloning the Model
The ONAP model currently resides in Gerrit in the modeling/modelspec repository. In order to download the model to your machine, to either visualize it or make updates, you will need to clone it in Eclipse/Git. Steps to do this:
- Bring up your Eclipse/Papyrus that you installed in the previous steps.
- Go to the Git Perspective by selecting "Window->Perspective→Open Perspective→ Other" on the top of your screen and then select "Git"
- Your screen should have the following perspective perspective on top
- On the bottom of the picture above you see "cloud" with a repository and a green arrow. That is your "clone repository" function in Git. Select that.
- You will need to fill-in the screen that appears with a URI. The format of that URI is: ssh://{LF Userid}@gerrit.onap.org:29418/modeling/modelspec.
- Based upon what you have just entered, the rest of the screen gets populated with the correct info. It should look something like this:
- Once the screen is filled in, select "Next"
- It will then prompt you for the branches to select. Choose: 2.0.0-ONAP, R3workingbranch, and Master. Click "Next".
- You will then be prompted to select a local directory on your machine into which the model should be loaded. It can be any location you want, and not necessarily the workspace you are using for Eclipse/Papyrus projects. As an "initial branch", select "R3workingbranch". Select the option "Import all existing Eclipse projects...". Your screen at this point should look like this:
...
- Select "finish". The cloning process should complete, and the repository should be created on your local machine. If you encounter errors, contact the ONAP model administrator to get help.
- The view below shows an example of the newly created repository which has been opened up. You should have the R3workingbranch only showing up as your "Local".
...
- The text in light brown is telling you that your project is in the modelspec repository you just created, in the branch "R2workingbranchR3workingbranch".
- The model actually resides in the "papyrus" folder, so open that up and you should see this:
...