User Tools

Site Tools


HowTo Start Development in Parser

Add Your Credentials:

First of all you need to authorize yourself with opnfv gerrit.

Go to , for first time set up there will prompt a setup page. What you need to do is copy&paste your ssh info to fill into the blank, and then fill out the committer agreement at the bottom, then you are good to go :)

JIRA Setup:

We use JJIRA for ISSUE Tracking, so it is better before you push your patches you register the corresponding issue with JIRA

Create an issue in JIRA :

Basic Git Ops For Set Up:

Next you will need to set up your basic env locally in order to work, I will present my procedure as an example. For seasoned devs, this should be very basic and simple.

OPNFV Dev general setup

Note: Install Both git and git-review.

If you are not familiar with git, mimic the procedure shown below:

Parser Setup Intro

       zhipengh@zhipeng-pc:~/Workspace$ git clone ssh:// && scp -p -P 29418 parser/.git/hooks/
       zhipengh@zhipeng-pc:~/Workspace$ cd parser/
       zhipengh@zhipeng-pc:~/Workspace/parser$ git review -s
       Creating a git remote called "gerrit" that maps to:
       zhipengh@zhipeng-pc:~/Workspace/parser$ mkdir yang2tosca/
       zhipengh@zhipeng-pc:~/Workspace/parser$ vim yang2tosca/
       zhipengh@zhipeng-pc:~/Workspace/parser$ mkdir tosca2heat/
       zhipengh@zhipeng-pc:~/Workspace/parser$ vim tosca2heat/
       zhipengh@zhipeng-pc:~/Workspace/parser$ mkdir docs/
       zhipengh@zhipeng-pc:~/Workspace/parser$ vim docs/
       zhipengh@zhipeng-pc:~/Workspace/parser$ git add . 
       zhipengh@zhipeng-pc:~/Workspace/parser$ git commit --signoff --all -m "JIRA:PARSER-1 -Basic Setup For Parser Gerrit Repo"
       [master 4de48c5] JIRA:PARSER-1 -Basic Setup For Parser Gerrit Repo
       3 files changed, 3 insertions(+)
       create mode 100644 docs/
       create mode 100644 tosca2heat/
       create mode 100644 yang2tosca/
       zhipengh@zhipeng-pc:~/Workspace/parser$ git review
       remote: Processing changes: new: 1, refs: 1, done    
       remote: New Changes:
       To ssh://
       * [new branch]      HEAD -> refs/publish/master

Note: if gives error on email mismatch, then do :

       git config
       git commit --amend --reset-author

The screen shot for the first Parser patch:

Patch merged into master

parser/howto.txt · Last modified: 2015/03/24 14:08 by Zhipeng (Howard) Huang