The steps to integrate with Gerrit with eclipse

来源:互联网 发布:wifi有网络看不了视频 编辑:程序博客网 时间:2024/06/05 19:45

Hereis the steps to integrate with Gerrit in our workflow(with Eclipse, orion isstill under working):

 

Step 1: Import project asan existing project.

Openeclipse, Import -> Git -> Projects from Git -> Clone URL, input

URI:"http://9.123.149.131:9090/MyWebAppTonyL"

username: admin

password: VFkNtA9Awrc6pxcosjX/iun3SXvAiCDin+dLao9SOA

 

 

Step 2: Config git plugin.

In eclipse, open "Git" prespective, in "Git Repositories" view,right click on "origin" and select "GerritConfiguration..."

 

Inthe popup dialog, fill the "Destination branch" as"master", and click "Finish".

 

 

Step 3: Make some changes,commit and push.

Makesure, the commit message contains "Change-Id". For the first time, itrequires username/password

username: admin

password: VFkNtA9Awrc6pxcosjX/iun3SXvAiCDin+dLao9SOA

 

 

 

Oncepushed to gerrit, it will automaticlly trigger a UT in jenkins, you can see thestatus of the UT, if it failed, you can see it in log.

http://9.123.149.131:8080/job/GerritProject/

 

If it pass the UT, in Gerrit, it willadd a green right in the "V" column, otherwise, it will show a redcross.

 

 

Step 4: Review codechanges.

Visitwebsite: http://9.123.149.131:9090/

Firsttime, you need to login, click "Become" on the upper right to login.

 

 

Input"admin" as username, and click "Become Account". Leaveother information(such as email, account id...) as blank.

 

Afterthat, in My -> Changes, you could see the changes you just pushed. Click theitem to open the reivew UI.

 

 

 

 

Inthe review UI, click "Reply..."


Inputsome comments and click the radio button "Code-Review" +2 and"Verified" +1(Actually, if it passed the UT from Jenkins, the"Verified" would become "+1" automatically).


 

Click"Submit"

 

 

Thestatus becomes "Merged", it means successfully!

 

 

Step 5: Verfiy

Visityour jazzhub: https://hub.jazz.net/project/leungtk/MyWebAppTonyL/overview

youcould see the changes has been replicate from Gerrit to JazzHub.

 

0 0
原创粉丝点击