You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »

Steps to raise review in CMF gerrit(Ex:meta-cmf-raspberrypi)

Step1:  Sign in the CMF gerrit (https://code.rdkcentral.com/r/q/status:open) and Go to below link,

https://code.rdkcentral.com/r/admin/repos  and enter the repo name (For example: meta-cmf-raspberrypi) in filter search box .

 It will shown like below, Once we entered the repo name in filter search box.



Step2:  check the components/generic/rdk-oe/meta-cmf-raspberrypi repo in Repository Name column.

It will shown like below,


Step3: Once we clicked the meta-cmf-raspberrypi  repo , It will re-direct to  https://code.rdkcentral.com/r/admin/repos/components/generic/rdk-oe/meta-cmf-raspberrypi (like below screenshot).

In this below screenshot, we are able to  see 2 options under Download,

  1. Clone with commit-msg hook  - This is used for cloning the project and  committing the code changes in CMF gerrit.
  2. Clone - This is used only for cloning the project.


So Committing the code changes, we need to select & copy the first option in above screenshot.

Step4:  Run the git Clone with commit-msg hook command. By default, it taking as "master" branch. So please mention the branch name before you are executing the git clone with commit-msg command in terminal.

clone with Commit-msg
$ git clone "https://code.rdkcentral.com/r/components/generic/rdk-oe/meta-cmf-raspberrypi" -b rdk-next && (cd "meta-cmf-raspberrypi" && gitdir=$(git rev-parse --git-dir); curl -o ${gitdir}/hooks/commit-msg https://code.rdkcentral.com/r/tools/hooks/commit-msg ; chmod +x ${gitdir}/hooks/commit-msg)
Cloning into 'meta-cmf-raspberrypi'...
remote: Counting objects: 151, done
remote: Total 10764 (delta 0), reused 10764 (delta 0)
Receiving objects: 100% (10764/10764), 2.58 MiB | 6.96 MiB/s, done.
Resolving deltas: 100% (4272/4272), done.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1792  100  1792    0     0   4876      0 --:--:-- --:--:-- --:--:--  4869
$ ls
meta-cmf-raspberrypi


Step5: Using "git branch" command to verify the branch  name

$ git branch
* rdk-next



Step6: Add or modify the required files. Using "git status" command to verify the newly added or modified files(It will shown as RED color in below screenshot).



Step7: Add the Modified /New files to git by using "git add" command.

$ git add <path_of_file> 

For example,
 git add recipes-ccsp/util/utopia/system_defaults


Step8:
 Using "git status" command to verify  the  code changes(whether it added successfully or not). It will shown GREEN color in below screenshot


Need to type in Username(github handle) and Password(Github Access Token). NOTE: User need to create new Github Access token

  Example,
  Username for 'https://github.com': KaviyaKumaresan
  Password for 'https://KaviyaKumaresan@github.com':
  Counting objects: 5, done.
  Delta compression using up to 4 threads.
  Compressing objects: 100% (5/5), done.
  Writing objects: 100% (5/5), 453 bytes | 0 bytes/s, done.
  Total 5 (delta 4), reused 0 (delta 0)
  remote: Resolving deltas: 100% (4/4), completed with 4 local objects.
  remote:
  remote: Create a pull request for 'demo' on GitHub by visiting:
  remote: https://github.com/KaviyaKumaresan/meta-turris/pull/new/demo
  remote:
  To https://github.com/Kaviyakumaresan/meta-turris.git




  • No labels