...
Configure git for http only clients - as in developers behind a firewall proxy that blocks SSH (in this case use git push origin HEAD:refs/for/master instead of git review - Configuring Gerrit
Quickstarts
Committing Code
Code Block | ||
---|---|---|
| ||
# stage your changes
git commit -am "your commit message"
# commit your staged changes with sign-off
git commit -s --amend
# hit "i" for insert mode
# Create your commit message according to the ONAP commit message format, including the Issue-ID field https://wiki.onap.org/display/DW/Commit+Messages
# hit "Esc" followed by ":wq" + enter to save and quit.
# Submit your commit to ONAP Gerrit for review
git review
# goto https://gerrit.onap.org/r/#/dashboard/self
# select your review in the "Outgoing reviews" section, and add relevant committers and reviewers by clicking the "Add..." button. |
Amending existing gerrit changes in review
Code Block | ||
---|---|---|
| ||
# add new files/changes
git add .
# dont use -m - keep the same Issue-ID: line from original commmit
git commit --amend
git review -R
# see the change set number increase - https://gerrit.onap.org/r/#/c/17203/2 |
Filter gerrit reviews - Thanks Mandeep Khinda
https://gerrit.onap.org/r/#/q/is:reviewer+AND+status:open+AND+label:Code-Review%253D0
Prerequisite: Set Up
The actions described in this section depend on having the requisite set of tools and settings on your development machine. See Setting Up Your Development Environment.
...
Action Desired | Magic Words | Result |
---|---|---|
retriggered the verify job | recheck | re-runs the Jenkins Job Builder (JJB) on an unmerged set of code |
trigger the merge build Jenkin job | remerge | re-runs the JJB deploy on a merged set of code |
trigger daily release job | please release | re-runs the JJB daily release build |
trigger CLM jobs | run-clm | The CLM jobs are still scheduled to run every Saturday, this feature can be useful for debugging on demand. Commenting "run-clm" in a gerrit that is not merged, will not trigger the CLM job based on that revision but will trigger the job based on the tip of the branch. This job is designed to always run on the latest tip of the branch to avoid inconsistencies on the reports. Source: Configuring Gerrit |
trigger Sonar job | run-sonar | this is used to follow up closely on code coverage progress. |