<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Gerrit Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/category/gerrit/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/category/gerrit/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Mon, 19 Jun 2023 13:29:40 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>Top 50 Gerrit Interview Questions with Answers</title>
		<link>https://www.scmgalaxy.com/tutorials/top-50-gerrit-interview-questions-with-answers/</link>
					<comments>https://www.scmgalaxy.com/tutorials/top-50-gerrit-interview-questions-with-answers/#respond</comments>
		
		<dc:creator><![CDATA[Ashwani Kumar]]></dc:creator>
		<pubDate>Wed, 03 May 2023 05:01:21 +0000</pubDate>
				<category><![CDATA[Gerrit]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=10337</guid>

					<description><![CDATA[<p>1. What is Gerrit? A. A collaboration tool for code reviewB. A testing frameworkC. A version control system Answer: A [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/top-50-gerrit-interview-questions-with-answers/">Top 50 Gerrit Interview Questions with Answers</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><img fetchpriority="high" decoding="async" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2023/05/image-69-1024x260.png" alt="" class="wp-image-10338" width="793" height="201" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2023/05/image-69-1024x260.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2023/05/image-69-300x76.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2023/05/image-69-768x195.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2023/05/image-69-1536x390.png 1536w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2023/05/image-69.png 1925w" sizes="(max-width: 793px) 100vw, 793px" /><figcaption class="wp-element-caption"><strong><em>Gerrit Interview Questions with Answers</em></strong></figcaption></figure>
</div>


<h3 class="wp-block-heading">1. What is Gerrit?</h3>



<p class="wp-block-paragraph">A. A collaboration tool for code review<br>B. A testing framework<br>C. A version control system</p>



<h4 class="wp-block-heading">Answer: A</h4>



<h3 class="wp-block-heading">2. Which version control system does Gerrit use?</h3>



<p class="wp-block-paragraph">A. Git<br>B. SVN<br>C. Mercurial</p>



<h4 class="wp-block-heading">Answer: A</h4>



<h3 class="wp-block-heading">3. What is the purpose of Gerrit?</h3>



<p class="wp-block-paragraph">A. To manage code reviews and project collaboration<br>B. To track bugs and issues in software development<br>C. To automate deployment process</p>



<h4 class="wp-block-heading">Answer: A</h4>



<h3 class="wp-block-heading">4. Can Gerrit be used with multiple version control systems?</h3>



<p class="wp-block-paragraph">A. Yes<br>B. No</p>



<h4 class="wp-block-heading">Answer: B</h4>



<h3 class="wp-block-heading">5. What is a patch set in Gerrit?</h3>



<p class="wp-block-paragraph">A. A set of changes made to code<br>B. A predefined set of code changes<br>C. A bug in the code</p>



<h4 class="wp-block-heading">Answer: A</h4>



<h3 class="wp-block-heading">6. What is a change request in Gerrit?</h3>



<p class="wp-block-paragraph">A. A request to make a change to the code<br>B. A change made to the code<br>C. A request for approval of a patch set</p>



<h4 class="wp-block-heading">Answer: C</h4>



<h3 class="wp-block-heading">7. What is the Gerrit workflow?</h3>



<p class="wp-block-paragraph">A. Code submission, code review, approval, and merging<br>B. Code submission, code testing, approval, and merging<br>C. Code submission, code deployment, approval, and merging</p>



<h4 class="wp-block-heading">Answer: A</h4>



<h3 class="wp-block-heading">8. What is the role of a Gerrit reviewer?</h3>



<p class="wp-block-paragraph">A. To review and approve changes to the code<br>B. To submit code changes for review<br>C. To test the code changes before approval</p>



<h4 class="wp-block-heading">Answer: A</h4>



<h3 class="wp-block-heading">9. What is a Gerrit bot?</h3>



<p class="wp-block-paragraph">A. A machine learning tool for code review<br>B. An automated tool for code review<br>C. A tool for bug tracking</p>



<h4 class="wp-block-heading">Answer: B</h4>



<h3 class="wp-block-heading">10. Which programming languages does Gerrit support?</h3>



<p class="wp-block-paragraph">A. Java, C++, Python<br>B. Ruby, C#, Bash<br>C. Java, Bash, Perl</p>



<h4 class="wp-block-heading">Answer: A</h4>



<h3 class="wp-block-heading">11. What is the difference between a reviewer and an approver in Gerrit?</h3>



<p class="wp-block-paragraph">A. Reviewers can provide feedback and comments, while approvers have the power to merge changes<br>B. Reviewers can test the code changes, while approvers only provide approval<br>C. There is no difference between a reviewer and an approver in Gerrit</p>



<h4 class="wp-block-heading">Answer: A</h4>



<h3 class="wp-block-heading">12. What is a topic branch in Gerrit?</h3>



<p class="wp-block-paragraph">A. A lightweight branch used for code collaboration<br>B. A branch used for release management<br>C. A branch used for bug tracking</p>



<h4 class="wp-block-heading">Answer: A</h4>



<h3 class="wp-block-heading">13. Can Gerrit be used for non-software development projects?</h3>



<p class="wp-block-paragraph">A. Yes<br>B. No</p>



<h4 class="wp-block-heading">Answer: A</h4>



<h3 class="wp-block-heading">14. What is the Gerrit Code Review plugin for Eclipse used for?</h3>



<p class="wp-block-paragraph">A. To submit and review code changes right from the Eclipse IDE<br>B. To track issues and bugs in Eclipse projects<br>C. To automate deployment process in Eclipse projects</p>



<h4 class="wp-block-heading">Answer: A</h4>



<h3 class="wp-block-heading">15. What is the Gerrit REST API used for?</h3>



<p class="wp-block-paragraph">A. To interact with Gerrit programmatically<br>B. To track issues and bugs in Gerrit<br>C. To automate deployment process in Gerrit</p>



<h4 class="wp-block-heading">Answer: A</h4>



<h3 class="wp-block-heading">16. What is the Gerrit configuration file?</h3>



<p class="wp-block-paragraph">A. A file used for configuring the Gerrit server and its behavior<br>B. A file used for storing code changes<br>C. A file used for managing users and access controls</p>



<h4 class="wp-block-heading">Answer: A</h4>



<h3 class="wp-block-heading">17. What is the Gerrit Dashboard?</h3>



<p class="wp-block-paragraph">A. A customizable tool for displaying and organizing reviews and changes<br>B. A tool for tracking issues and bugs in Gerrit<br>C. A tool for automated code testing in Gerrit</p>



<h4 class="wp-block-heading">Answer: A</h4>



<h3 class="wp-block-heading">18. What is the difference between a Gerrit project and a Git repository?</h3>



<p class="wp-block-paragraph">A. A Gerrit project is a collection of Git repositories, while a Git repository is a collection of files and directories<br>B. A Gerrit project is a Git repository with additional features for code review and collaboration<br>C. There is no difference between a Gerrit project and a Git repository</p>



<h4 class="wp-block-heading">Answer: A</h4>



<h3 class="wp-block-heading">19. What are the benefits of using Gerrit for code review?</h3>



<p class="wp-block-paragraph">A. Improved code quality, increased collaboration, and quicker code review process<br>B. Increased code complexity, lengthy code review process, and decreased collaboration<br>C. Decreased code quality, decreased collaboration, and no impact on code review process</p>



<h4 class="wp-block-heading">Answer: A</h4>



<h3 class="wp-block-heading">20. How does Gerrit handle conflicts when merging code changes?</h3>



<p class="wp-block-paragraph">A. By alerting reviewers and allowing them to resolve the conflicts<br>B. By automatically resolving the conflicts<br>C. By rejecting the merge request</p>



<h4 class="wp-block-heading">Answer: A</h4>



<h3 class="wp-block-heading">21. What is the Gerrit plugin architecture?</h3>



<p class="wp-block-paragraph">A. A way to extend Gerrit&#8217;s functionality with custom plugins<br>B. A way to modify Gerrit&#8217;s source code<br>C. A way to integrate Gerrit with third-party tools</p>



<h4 class="wp-block-heading">Answer: A</h4>



<h3 class="wp-block-heading">22. What is the Gerrit hooks mechanism used for?</h3>



<p class="wp-block-paragraph">A. To trigger custom actions and automate tasks during the code review process<br>B. To prevent code changes from being submitted<br>C. To track issues and bugs in Gerrit</p>



<h4 class="wp-block-heading">Answer: A</h4>



<h3 class="wp-block-heading">23. What is a Gerrit label?</h3>



<p class="wp-block-paragraph">A. A mechanism for defining and enforcing project-specific code review guidelines<br>B. A mechanism for tracking code changes<br>C. A mechanism for managing users and access controls</p>



<h4 class="wp-block-heading">Answer: A</h4>



<h3 class="wp-block-heading">24. What is a Gerrit change ID?</h3>



<p class="wp-block-paragraph">A. A unique identifier for each change request<br>B. A unique identifier for each reviewer<br>C. A unique identifier for each merge request</p>



<h4 class="wp-block-heading">Answer: A</h4>



<h3 class="wp-block-heading">25. What is the Gerrit Code Review plugin for Jenkins used for?</h3>



<p class="wp-block-paragraph">A. To trigger builds and automate testing in Jenkins based on changes submitted to Gerrit<br>B. To track issues and bugs in Jenkins projects<br>C. To manage users and access controls in Jenkins</p>



<h4 class="wp-block-heading">Answer: A</h4>



<h3 class="wp-block-heading">26. What is the Gerrit User Interface written in?</h3>



<p class="wp-block-paragraph">A. GWT (Google Web Toolkit)<br>B. JavaFX<br>C. AngularJS</p>



<h4 class="wp-block-heading">Answer: A</h4>



<h3 class="wp-block-heading">27. What is the Gerrit replication mechanism used for?</h3>



<p class="wp-block-paragraph">A. To keep multiple Gerrit servers in sync<br>B. To prevent code changes from being submitted<br>C. To track issues and bugs in Gerrit</p>



<h4 class="wp-block-heading">Answer: A</h4>



<h3 class="wp-block-heading">28. What is the Gerrit Project Owner role?</h3>



<p class="wp-block-paragraph">A. A role with administrative privileges for managing the project and access controls<br>B. A role with limited privileges for reviewing code changes<br>C. A role with automated testing privileges</p>



<h4 class="wp-block-heading">Answer: A</h4>



<h3 class="wp-block-heading">29. What is a Gerrit group?</h3>



<p class="wp-block-paragraph">A. A way to group users together and assign access controls and privileges<br>B. A way to group code changes together for review<br>C. A way to group reviews together for approval</p>



<h4 class="wp-block-heading">Answer: A</h4>



<h3 class="wp-block-heading">30. What is the Gerrit Commit Message Hook used for?</h3>



<p class="wp-block-paragraph">A. To enforce project-specific guidelines for commit messages<br>B. To prevent code changes from being submitted<br>C. To track issues and bugs in Gerrit</p>



<h4 class="wp-block-heading">Answer: A</h4>



<h3 class="wp-block-heading">31. What is the Gerrit Verification mechanism used for?</h3>



<p class="wp-block-paragraph">A. To automate code testing and review<br>B. To manage users and access controls<br>C. To track issues and bugs in Gerrit</p>



<h4 class="wp-block-heading">Answer: A</h4>



<h3 class="wp-block-heading">32. What is the Gerrit Code Review plugin for Visual Studio used for?</h3>



<p class="wp-block-paragraph">A. To submit and review code changes right from the Visual Studio IDE<br>B. To track issues and bugs in Visual Studio projects<br>C. To automate deployment process in Visual Studio projects</p>



<h4 class="wp-block-heading">Answer: A</h4>



<h3 class="wp-block-heading">33. What is the Gerrit Code Review plugin for IntelliJ IDEA used for?</h3>



<p class="wp-block-paragraph">A. To submit and review code changes right from the IntelliJ IDEA IDE<br>B. To track issues and bugs in IntelliJ IDEA projects<br>C. To automate deployment process in IntelliJ IDEA projects</p>



<h4 class="wp-block-heading">Answer: A</h4>



<h3 class="wp-block-heading">34. What is a Gerrit topic?</h3>



<p class="wp-block-paragraph">A. A way to group code changes together for review<br>B. A way to track issues and bugs in Gerrit<br>C. A way to manage users and access controls in Gerrit</p>



<h4 class="wp-block-heading">Answer: A</h4>



<h3 class="wp-block-heading">35. What is a Gerrit Change-Id label?</h3>



<p class="wp-block-paragraph">A. A way to identify unique changes in Gerrit<br>B. A mechanism for managing users and access controls<br>C. A mechanism for tracking issues and bugs in Gerrit</p>



<h4 class="wp-block-heading">Answer: A</h4>



<h3 class="wp-block-heading">36. What is the Gerrit REST API authentication mechanism?</h3>



<p class="wp-block-paragraph">A. SSH public key authentication<br>B. HTTP basic authentication<br>C. OAuth 2.0 authentication</p>



<h4 class="wp-block-heading">Answer: C</h4>



<h3 class="wp-block-heading">37. What is the Gitweb browser included with Gerrit used for?</h3>



<p class="wp-block-paragraph">A. To browse Git repositories and code changes<br>B. To browse issues and bugs in Gerrit<br>C. To manage users and access controls in Gerrit</p>



<h4 class="wp-block-heading">Answer: A</h4>



<h3 class="wp-block-heading">38. What is Gerrit&#8217;s server-side hook mechanism used for?</h3>



<p class="wp-block-paragraph">A. To perform custom actions during the code review process<br>B. To manage users and access controls in Gerrit<br>C. To track issues and bugs in Gerrit</p>



<h4 class="wp-block-heading">Answer: A</h4>



<h3 class="wp-block-heading">39. What is a Gerrit change message?</h3>



<p class="wp-block-paragraph">A. A message associated with a change request providing additional information or justification<br>B. A message associated with a reviewer providing feedback or comments<br>C. A message associated with an approver indicating approval or rejection of a change request</p>



<h4 class="wp-block-heading">Answer: A</h4>



<h3 class="wp-block-heading">40. What is the Gerrit Code Review plugin for GitHub used for?</h3>



<p class="wp-block-paragraph">A. To integrate Gerrit&#8217;s code review functionality with GitHub<br>B. To integrate GitHub&#8217;s issue tracking with Gerrit<br>C. To automate deployment process between Gerrit and GitHub</p>



<h4 class="wp-block-heading">Answer: A</h4>



<h3 class="wp-block-heading">41. What is the Gerrit Code Review plugin for Bitbucket used for?</h3>



<p class="wp-block-paragraph">A. To integrate Gerrit&#8217;s code review functionality with Bitbucket<br>B. To integrate Bitbucket&#8217;s issue tracking with Gerrit<br>C. To automate deployment process between Gerrit and Bitbucket</p>



<h4 class="wp-block-heading">Answer: A</h4>



<h3 class="wp-block-heading">42. What is the Gerrit Code Review plugin for GitLab used for?</h3>



<p class="wp-block-paragraph">A. To integrate Gerrit&#8217;s code review functionality with GitLab<br>B. To integrate GitLab&#8217;s issue tracking with Gerrit<br>C. To automate deployment process between Gerrit and GitLab</p>



<h4 class="wp-block-heading">Answer: A</h4>



<h3 class="wp-block-heading">43. What is the difference between a Gerrit reviewer and a Gerrit approver?</h3>



<p class="wp-block-paragraph">A. Reviewers provide feedback and comments, while approvers have the power to merge changes<br>B. Reviewers test the code changes, while approvers only provide approval<br>C. There is no difference between a Gerrit reviewer and a Gerrit approver</p>



<h4 class="wp-block-heading">Answer: A</h4>



<h3 class="wp-block-heading">44. How does Gerrit handle merge conflicts with multiple reviewers?</h3>



<p class="wp-block-paragraph">A. By allowing reviewers to resolve conflicts and re-submit the changes<br>B. By automatically resolving conflicts and merging the changes<br>C. By rejecting the changes and requiring further review</p>



<h4 class="wp-block-heading">Answer: A</h4>



<h3 class="wp-block-heading">45. What is Gerrit&#8217;s out-of-the-box access control mechanism?</h3>



<p class="wp-block-paragraph">A. A permission-based access control system<br>B. A role-based access control system<br>C. A time-based access control system</p>



<h4 class="wp-block-heading">Answer: A</h4>



<h3 class="wp-block-heading">46. What is the Gerrit Code Review plugin for Jira used for?</h3>



<p class="wp-block-paragraph">A. To integrate Gerrit&#8217;s code review functionality with Jira issue tracking<br>B. To integrate Jira&#8217;s issue tracking with Gerrit<br>C. To automate deployment process between Gerrit and Jira</p>



<h4 class="wp-block-heading">Answer: A</h4>



<h3 class="wp-block-heading">47. What is the Gerrit Code Review plugin for Redmine used for?</h3>



<p class="wp-block-paragraph">A. To integrate Gerrit&#8217;s code review functionality with Redmine issue tracking<br>B. To integrate Redmine&#8217;s issue tracking with Gerrit<br>C. To automate deployment process between Gerrit and Redmine</p>



<h4 class="wp-block-heading">Answer: A</h4>



<h3 class="wp-block-heading">48. What is the Gerrit Code Review plugin for Trello used for?</h3>



<p class="wp-block-paragraph">A. To integrate Gerrit&#8217;s code review functionality with Trello project management<br>B. To integrate Trello&#8217;s project management with Gerrit<br>C. To automate deployment process between Gerrit and Trello</p>



<h4 class="wp-block-heading">Answer: A</h4>



<h3 class="wp-block-heading">49. What is a Gerrit change status?</h3>



<p class="wp-block-paragraph">A. A status indicating the current state of a change request, such as &#8220;Open&#8221; or &#8220;Merged&#8221;<br>B. A status indicating the current state of a reviewer, such as &#8220;Approved&#8221; or &#8220;Rejected&#8221;<br>C. A status indicating the current state of an approver, such as &#8220;Merged&#8221; or &#8220;Abandoned&#8221;</p>



<h4 class="wp-block-heading">Answer: A</h4>



<h3 class="wp-block-heading">50. What is the Gerrit Code Review plugin for Slack used for?</h3>



<p class="wp-block-paragraph">A. To send notifications and updates about code changes and reviews to Slack channels<br>B. To integrate Slack messaging with Gerrit&#8217;s code review functionality<br>C. To automate deployment process between Gerrit and Slack</p>



<h4 class="wp-block-heading">Answer: A</h4>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/top-50-gerrit-interview-questions-with-answers/">Top 50 Gerrit Interview Questions with Answers</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/top-50-gerrit-interview-questions-with-answers/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Best Branching and Merging strategies in Gerrit</title>
		<link>https://www.scmgalaxy.com/tutorials/best-branching-and-merging-strategies-in-gerrit/</link>
					<comments>https://www.scmgalaxy.com/tutorials/best-branching-and-merging-strategies-in-gerrit/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 22 Aug 2018 14:09:36 +0000</pubDate>
				<category><![CDATA[Gerrit]]></category>
		<category><![CDATA[Best]]></category>
		<category><![CDATA[Branching]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[Merging]]></category>
		<category><![CDATA[strategies]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=5242</guid>

					<description><![CDATA[<p>Best Branching and Merging strategies in Gerrit Step 1 &#8211; First Lets read this article about Best Branching and Merging [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/best-branching-and-merging-strategies-in-gerrit/">Best Branching and Merging strategies in Gerrit</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img decoding="async" class="alignnone size-full wp-image-5269" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit-1.png" alt="" width="600" height="350" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit-1.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit-1-300x175.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></p>
<p><strong>Best Branching and Merging strategies in Gerrit</strong></p>
<p><strong>Step 1 &#8211; First Lets read this article about Best Branching and Merging strategies in git</strong></p>
<blockquote class="wp-embedded-content" data-secret="R7GR5d9ayw"><p><a href="https://www.scmgalaxy.com/tutorials/best-branching-and-merging-strategies-in-git/">Best Branching and Merging strategies in git</a></p></blockquote>
<p><iframe class="wp-embedded-content" sandbox="allow-scripts" security="restricted"  title="&#8220;Best Branching and Merging strategies in git&#8221; &#8212; scmGalaxy" src="https://www.scmgalaxy.com/tutorials/best-branching-and-merging-strategies-in-git/embed/#?secret=cMx479AkuJ#?secret=R7GR5d9ayw" data-secret="R7GR5d9ayw" width="600" height="338" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe></p>
<p><strong>Step 2 &#8211; Now Lets learn the Gerrit Merge Types</strong><br />
https://nofluffjuststuff.com/magazine/2016/04/understanding_and_applying_gerrit_part_3_gerrit_submit_types_and_git_review</p>
<p><strong>Step 3 &#8211; Time to Learn the Types of Submit in Gerrit</strong><br />
https://gerrit-review.googlesource.com/Documentation/project-configuration.html</p>
<p><strong>Step 4 &#8211; Finally, You must read the recommendations below</strong><br />
https://hyperledger-fabric.readthedocs.io/en/release-1.2/Gerrit/best-practices.html</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/best-branching-and-merging-strategies-in-gerrit/">Best Branching and Merging strategies in Gerrit</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/best-branching-and-merging-strategies-in-gerrit/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to revert the changes once its submitted in Gerrit</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-revert-the-changes-once-its-submitted-in-gerrit/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-revert-the-changes-once-its-submitted-in-gerrit/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 22 Aug 2018 13:10:23 +0000</pubDate>
				<category><![CDATA[Gerrit]]></category>
		<category><![CDATA[Change]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[patch set]]></category>
		<category><![CDATA[patchsets]]></category>
		<category><![CDATA[revert]]></category>
		<category><![CDATA[Submit]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=5229</guid>

					<description><![CDATA[<p>How to revert the changes once its submitted in Gerrit The Revert button is available if the change has been [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-revert-the-changes-once-its-submitted-in-gerrit/">How to revert the changes once its submitted in Gerrit</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-5273" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit-2.png" alt="" width="600" height="350" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit-2.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit-2-300x175.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p><strong>How to revert the changes once its submitted in Gerrit</strong></p>
<p><strong>The Revert button is available if the change has been submitted</strong>. This Reverts the change via creating a new one. When the Revert button is pressed, a panel will appear to allow the user to enter a commit message for the reverting change.</p>
<p>Once a revert change is created, the original author and any reviewers of the original change are added as reviewers and a message is posted to the original change linking to the revert.</p>
<p>However, <strong>patchsets can not be reverted</strong>. so first you have to checkout one of the previous patchset. you can get the command from Gerrit review board at each patchset download panel. After checking it out amend it to generate new commit hash then pushed again as a new patchset.</p>
<p>If I have multiple patch set versions for one change in Gerrit, You can only submit the latest patch set version. The design assumes that the most recent patch set is the one developers will review and test, and as such older patch sets can not be submitted.</p>
<p><strong>Good Read</strong><br />
http://www.saros-project.org/node/155</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-revert-the-changes-once-its-submitted-in-gerrit/">How to revert the changes once its submitted in Gerrit</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-revert-the-changes-once-its-submitted-in-gerrit/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is a Change and Patch set in Gerrit?</title>
		<link>https://www.scmgalaxy.com/tutorials/what-is-a-change-and-patch-set-in-gerrit/</link>
					<comments>https://www.scmgalaxy.com/tutorials/what-is-a-change-and-patch-set-in-gerrit/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 22 Aug 2018 12:57:45 +0000</pubDate>
				<category><![CDATA[Gerrit]]></category>
		<category><![CDATA[Change]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[patch set]]></category>
		<category><![CDATA[Submit]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=5226</guid>

					<description><![CDATA[<p>Here is the short and quick description of Gerrit key teminology. Change Every time you push a commit with a [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/what-is-a-change-and-patch-set-in-gerrit/">What is a Change and Patch set in Gerrit?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-5280" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit-3.png" alt="" width="600" height="350" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit-3.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit-3-300x175.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p>Here is the short and quick description of Gerrit key teminology.</p>
<h3><strong>Change</strong></h3>
<p>Every time you push a commit with a new Change-Id Gerrit allocates a new change. Every change has a unique Change-Id and a Change Number. The change contains a number of patch sets, comments on the patch sets and a code review rating (+2, +1, 0, -1, -2). Each change has a dedicated page that shows information about it called individual change page. This includes dependencies between different changes, patch sets and the review comments.</p>
<h3>Submit</h3>
<p>Once a change has received a +2 in the Code Review and no negative voting in the other categories the last patchset can be submitted. This means Gerrit will now try to cherry-pick your patch set and mark the change as merged.</p>
<h3>Patch set</h3>
<p>If you want to modify your change, you don&#8217;t have to push a new change to Gerrit but only a new patch set . Imagine a patch sets as different versions or revisions of a change. Each patch set can receive inline comments. Gerrit uses the Change-Id of a commit message to identify patch sets of a change. This is why all patch sets of a change have the same Change-Id.</p>
<p>To create a new Patch when new changes are submitted<br />
<strong>Step 1: Install commit-msg hooks for gerrit</strong></p>
<pre class="brush: plain; title: ; notranslate">$ scp -p -P 29418 localhost:hooks/commit-msg .git/hooks/</pre>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><strong>Step 2: Create normal commit and push (for Patchset1)</strong></p>
<pre class="brush: plain; title: ; notranslate">for example:

git add Server.java
git commit -m &quot;server added&quot;
git push origin HEAD:refs/for/master</pre>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><strong>Step 3: After doing some changes to Server.java</strong></p>
<p>Finally to create new Patchset (Patchset 2)</p>
<pre class="brush: plain; title: ; notranslate">git add Server.java
git commit --amend
git push origin HEAD:refs/for/master
Repeat step 3 for further Patches</pre>
<p><strong>Understanding the Patch set in Git perspective</strong></p>
<p>Git is a very advanced distributed source code control system. Maintaining patch sets (often called a topic branch) in Git. Git includes a rebase capability that is very useful for a number of different operations related to maintaining a branch of code including moving a branch forward, moving a branch around on an upstream branch to look for breakage, and merging changesets to create patch files.</p>
<p>Git: How to create and apply patches</p>
<p><strong>Creating a patch</strong></p>
<pre class="brush: plain; title: ; notranslate">Make your changes and commit them.
Run $ git format-patch COMMIT_REFERENCE #to convert all commits since the referenced commit (not including it) into patch files.
$ git format-patch HEAD~~

This will create 2 files, one for each commit since HEAD~~, like these:
0001-make-stuff-more-awesome.patch
0002-allow-users-to-be-locked.patch</pre>
<p><strong>Applying patches</strong><br />
You can use git apply some.patch to have the changes from the .patch file applied to your current working directory. They will be unstaged and need to be committed by you.</p>
<pre class="brush: plain; title: ; notranslate">To apply a patch as a commit (with its commit message), use git am some.patch. \
For all patches to be applied, simply run:
$ git am *.patch

Note that in some previous version you could pass the latest patch filename of a list of patches to apply all previous patches as wel
$ git am 0002-allow-users-to-be-locked.patch # May no longer work for you</pre>
<p>You then have the 2 unpushed commits from the patch file created earlier.</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/what-is-a-change-and-patch-set-in-gerrit/">What is a Change and Patch set in Gerrit?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/what-is-a-change-and-patch-set-in-gerrit/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to replace Changes after the Gerrit review without changing the commit id?</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-replace-changes-after-the-gerrit-review-without-changing-the-commit-id/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-replace-changes-after-the-gerrit-review-without-changing-the-commit-id/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 22 Aug 2018 12:17:20 +0000</pubDate>
				<category><![CDATA[Gerrit]]></category>
		<category><![CDATA[amend]]></category>
		<category><![CDATA[Changes]]></category>
		<category><![CDATA[commit]]></category>
		<category><![CDATA[git add]]></category>
		<category><![CDATA[git commit]]></category>
		<category><![CDATA[git push]]></category>
		<category><![CDATA[patchset]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=5224</guid>

					<description><![CDATA[<p>How to replace Changes after the Gerrit review without changing the commit id? One of the main benefits of code [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-replace-changes-after-the-gerrit-review-without-changing-the-commit-id/">How to replace Changes after the Gerrit review without changing the commit id?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-5291" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit-5.png" alt="" width="600" height="350" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit-5.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit-5-300x175.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p><strong>How to replace Changes after the Gerrit review without changing the commit id?</strong></p>
<p>One of the main benefits of code review is the ability to receive and incorporate feedback from other developers without changing the commit-id and review id. With Gerrit, you incorporate these changes by amending the commit. Gerrit uses the CHange-Id to ensure that each iteration of the commit are stored together as patchsets.</p>
<p>The process of modify same commit and commit message on gerrit after patchset creation is pretty straight forward.</p>
<p><strong>Step 1 &#8211; Do the required modification in the code based on the review.</strong></p>
<p><strong>Step 2 &#8211; Add files using git add commands.</strong></p>
<pre class="brush: plain; title: ; notranslate">$ git add filename</pre>
<p><strong>Step 3 &#8211; Command to update/amend the most recent commit.</strong></p>
<pre class="brush: plain; title: ; notranslate">$ git commit --amend</pre>
<p>When amending a commit with git commit &#8211;amend, leave the Change-Id line unmodified in the commit message. This will allow Gerrit to automatically update the change with the amended commit.</p>
<p><strong>Step 4 &#8211; Gerrit updates the commit under review with your latest changes.</strong></p>
<pre class="brush: plain; title: ; notranslate">$ git push origin HEAD:refs/for/master
$ git push origin HEAD:refs/for/&#x5B;BRANCH_NAME]</pre>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-replace-changes-after-the-gerrit-review-without-changing-the-commit-id/">How to replace Changes after the Gerrit review without changing the commit id?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-replace-changes-after-the-gerrit-review-without-changing-the-commit-id/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to compile and build Gerrit Plugins?</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-compile-and-build-gerrit-plugins/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-compile-and-build-gerrit-plugins/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Sun, 19 Aug 2018 20:09:20 +0000</pubDate>
				<category><![CDATA[Gerrit]]></category>
		<category><![CDATA[Bazel]]></category>
		<category><![CDATA[Build]]></category>
		<category><![CDATA[Compile]]></category>
		<category><![CDATA[Plugins]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=5171</guid>

					<description><![CDATA[<p>To build Gerrit Plugins from source, you need: A Linux or macOS system (Windows is not supported at this time) [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-compile-and-build-gerrit-plugins/">How to compile and build Gerrit Plugins?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>To build Gerrit Plugins from source, you need:</strong></p>
<p>A Linux or macOS system (Windows is not supported at this time)</p>
<p><strong>zip, unzip, wget</strong></p>
<pre>$yum install zip -y
$ yum install unzip -y
$ yum install wget -y
$ yum install git -y</pre>
<p><strong>Python 2 or 3</strong><br />
This is installed in each RHEL 7 and Ubunutu server by defaul.</p>
<p><strong>Node.js</strong></p>
<pre>curl --silent --location https://rpm.nodesource.com/setup_8.x | sudo bash -
OR
curl --silent --location https://rpm.nodesource.com/setup_10.x | sudo bash -
sudo yum -y install nodejs</pre>
<p><strong>Bazel</strong></p>
<pre>## RHEL/CentOS 7 64-Bit ##
$ wget https://copr.fedorainfracloud.org/coprs/vbatts/bazel/repo/epel-7/vbatts-bazel-epel-7.repo
$ cp vbatts-bazel-epel-7.repo /etc/yum.repos.d/
$ yum install -y bazel</pre>
<p><strong>How to Installing Bazel on Ubuntu?</strong><br />
https://docs.bazel.build/versions/master/install-ubuntu.html</p>
<p><strong>Maven</strong></p>
<pre>
$ cd /opt
$ wget http://www-us.apache.org/dist/maven/maven-3/3.5.4/binaries/apache-maven-3.5.4-bin.zip
$ unzip apache-maven-3.5.4-bin.zip
$ mv apache-maven-3.5.4 maven
$ export PATH=$PATH:/op/maven/bin</pre>
<p><strong>gcc</strong></p>
<pre class="brush: plain; title: ; notranslate">$ sudo yum install gcc-c++ make</pre>
<p><strong>Now, Bazel in tree driven means it can only be built from within Gerrit tree. Clone or link the plugin into gerrit/plugins directory:</strong></p>
<p><strong># First become a non-root user</strong></p>
<p><strong>A JDK for Java 8</strong></p>
<pre>
$ cd
$ wget -c --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u181-b13/96a7b8442fe848ef90c96a2fad6ed6d1/jdk-8u181-linux-x64.tar.gz
$ tar -xvf jdk-8u181-linux-x64.tar.gz
$ export JAVA_HOME=/home/ec2-user/jdk1.8.0_181
$ java -version
</pre>
<p><strong>Follow for Gerrit.war</strong></p>
<pre>
$ git clone --recursive https://gerrit.googlesource.com/gerrit
$ cd gerrit 
$ bazel build release
</pre>
<p><strong>Follow for plugins such as its-jira</strong></p>
<pre>
$ cd plugins
$ git clone https://gerrit.googlesource.com/plugins/its-jira
$ git clone https://gerrit.googlesource.com/plugins/its-base
$ bazel build plugins/its-jira
</pre>
<p><strong>The output can be normally found in the following directory:</strong></p>
<pre>bazel-genfiles/plugins/its-jira/its-jira.jar</pre>
<p># Some plugins describe their build process in src/main/resources/Documentation/build.md file. It may worth checking.</p>
<p># Some plugins cane be build using maven as well</p>
<p><strong>Reference</strong></p>
<ul>
<li>https://gerrit-review.googlesource.com/Documentation/dev-bazel.html</li>
<li>https://gerrit.googlesource.com/gerrit/</li>
<li>https://gerrit-review.googlesource.com/Documentation/cmd-plugin-install.html</li>
<li>https://gerrit-review.googlesource.com/Documentation/dev-build-plugins.html</li>
</ul>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-compile-and-build-gerrit-plugins/">How to compile and build Gerrit Plugins?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-compile-and-build-gerrit-plugins/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is &#8220;Install Verified label&#8221; in Gerrit?</title>
		<link>https://www.scmgalaxy.com/tutorials/what-is-install-verified-label-in-gerrit/</link>
					<comments>https://www.scmgalaxy.com/tutorials/what-is-install-verified-label-in-gerrit/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Sun, 19 Aug 2018 19:45:24 +0000</pubDate>
				<category><![CDATA[Gerrit]]></category>
		<category><![CDATA[Install Verified label]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=5166</guid>

					<description><![CDATA[<p>What is &#8220;Install Verified label&#8221; in Gerrit? The Verified label was originally invented by the Android Open Source Project to [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/what-is-install-verified-label-in-gerrit/">What is &#8220;Install Verified label&#8221; in Gerrit?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>What is &#8220;Install Verified label&#8221; in Gerrit?</p>
<p>The Verified label was originally invented by the Android Open Source Project to mean &#8216;compiles, passes basic unit tests&#8217;. Some CI tools expect to use the Verified label to vote on a change after running.</p>
<p>During site initialization the administrator may have chosen to configure the default Verified label for all projects. In case it is desired to configure it at a later time, administrators can do this by adding the following to project.config in All-Projects:</p>
<p><strong>[label &#8220;Verified&#8221;]</strong><br />
function = MaxWithBlock<br />
value = -1 Fails<br />
value = 0 No score<br />
value = +1 Verified<br />
copyAllScoresIfNoCodeChange = true<br />
The range of values is:</p>
<p>-1 Fails<br />
Tried to compile, but got a compile error, or tried to run tests, but one or more tests did not pass.<br />
Any -1 blocks submit.</p>
<p>0 No score<br />
Didn’t try to perform the verification tasks.</p>
<p>+1 Verified<br />
Compiled (and ran tests) successfully.<br />
Any +1 enables submit.</p>
<p>For a change to be submittable, the change must have a +1 Verified in this label, and no -1 Fails. Thus, -1 Fails can block a submit, while +1 Verified enables a submit.</p>
<p>Additional values could also be added to this label, to allow it to behave more like Code-Review (below). Add -2 and +2 entries to the label.Verified.value fields in project.config to get the same behavior.</p>
<p><strong>As an example, the popular gerrit-trigger plugin for Jenkins/Hudson can set labels at:</strong></p>
<ul>
<li>The start of a build</li>
<li>A successful build</li>
<li>An unstable build (tests fails)</li>
<li>A failed build</li>
</ul>
<p>Usually the range chosen for this verdict is the Verified label. Depending on the size of your project and discipline of involved developers you might want to limit access right to the +1 Verified label to the CI system only. That way it’s guaranteed that submitted commits always get built and pass tests successfully.</p>
<p>If the build doesn’t complete successfully the CI system can set the Verified label to -1. However that means that a failed build will block submit of the change even if someone else sets Verified +1. Depending on the project and how much the CI system can be trusted for accurate results, a blocking label might not be feasible. A recommended alternative is to set the label Code-review to -1 instead, as it isn’t a blocking label but still shows a red label in the Gerrit UI. Optionally, to enable the possibility to deliver different results (build error vs unstable for instance), it’s also possible to set Code-review +1 as well.</p>
<p>If pushing new changes is granted, it’s possible to automate cherry-pick of submitted changes for upload to other branches under certain conditions. This is probably not the first step of what a project wants to automate however, and so the push right can be found under the optional section.</p>
<p><strong>Suggested access rights to grant, that won’t block changes:</strong><br />
Read on &#8216;refs/heads/*&#8217; and &#8216;refs/tags/*&#8217;<br />
Label: Code-Review with range &#8216;-1&#8217; to &#8216;0&#8217; for &#8216;refs/heads/*&#8217;<br />
Label: Verified with range &#8216;0&#8217; to &#8216;+1&#8217; for &#8216;refs/heads/*&#8217;</p>
<p><strong>Optional access rights to grant:</strong><br />
Label: Code-Review with range &#8216;-1&#8217; to &#8216;+1&#8217; for &#8216;refs/heads/*&#8217;<br />
Push to &#8216;refs/for/refs/heads/*&#8217;</p>
<p><strong>Reference</strong><br />
https://gerrit-review.googlesource.com/Documentation/config-labels.html#label_Verified<br />
https://gerrit-review.googlesource.com/Documentation/access-control.html#examples_cisystem<br />
https://groups.google.com/forum/#!topic/repo-discuss/FdN29piSmEQ</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/what-is-install-verified-label-in-gerrit/">What is &#8220;Install Verified label&#8221; in Gerrit?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/what-is-install-verified-label-in-gerrit/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is Enable signed push support in Gerrit?</title>
		<link>https://www.scmgalaxy.com/tutorials/what-is-enable-signed-push-support-in-gerrit/</link>
					<comments>https://www.scmgalaxy.com/tutorials/what-is-enable-signed-push-support-in-gerrit/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Sun, 19 Aug 2018 19:43:14 +0000</pubDate>
				<category><![CDATA[Gerrit]]></category>
		<category><![CDATA[enable]]></category>
		<category><![CDATA[enable signed push]]></category>
		<category><![CDATA[Push]]></category>
		<category><![CDATA[signed]]></category>
		<category><![CDATA[Support]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=5164</guid>

					<description><![CDATA[<p>This options Defaults to false. This ensure When a client pushes with git push &#8211;signed, this ensures that the push [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/what-is-enable-signed-push-support-in-gerrit/">What is Enable signed push support in Gerrit?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>This options Defaults to false.</p>
<p>This ensure When a client pushes with git push &#8211;signed, this ensures that the push certificate is valid and signed with a valid public key stored in the refs/meta/gpg-keys branch of All-Users.</p>
<p>If true, server-side signed push validation is enabled.</p>
<p>Config in gerrit.config &#8211; receive.enableSignedPush</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/what-is-enable-signed-push-support-in-gerrit/">What is Enable signed push support in Gerrit?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/what-is-enable-signed-push-support-in-gerrit/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Importannce of Canonical web url in Gerrit</title>
		<link>https://www.scmgalaxy.com/tutorials/importannce-of-canonical-web-url-in-gerrit/</link>
					<comments>https://www.scmgalaxy.com/tutorials/importannce-of-canonical-web-url-in-gerrit/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Sun, 19 Aug 2018 19:40:44 +0000</pubDate>
				<category><![CDATA[Gerrit]]></category>
		<category><![CDATA[Canonical]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=5162</guid>

					<description><![CDATA[<p>The canonical web url must be set. Optional base URL for repositories available over the anonymous git protocol. For example, [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/importannce-of-canonical-web-url-in-gerrit/">Importannce of Canonical web url in Gerrit</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-5256" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/canonical-web-url-in-gerrit-copy.png" alt="" width="600" height="315" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/canonical-web-url-in-gerrit-copy.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/canonical-web-url-in-gerrit-copy-300x158.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p>The canonical web url must be set. Optional base URL for repositories available over the anonymous git protocol. For example, set this to git://mirror.example.com/base/ to have Gerrit display patch set download URLs in the UI. Gerrit automatically appends the project name onto the end of the URL.</p>
<p>By default unset, as the git daemon must be configured externally by the system administrator, and might not even be running on the same host as Gerrit.</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/importannce-of-canonical-web-url-in-gerrit/">Importannce of Canonical web url in Gerrit</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/importannce-of-canonical-web-url-in-gerrit/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Authentication Types in Gerrit explained!</title>
		<link>https://www.scmgalaxy.com/tutorials/authentication-types-in-gerrit-explained/</link>
					<comments>https://www.scmgalaxy.com/tutorials/authentication-types-in-gerrit-explained/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Sun, 19 Aug 2018 19:38:36 +0000</pubDate>
				<category><![CDATA[Gerrit]]></category>
		<category><![CDATA[Authentication]]></category>
		<category><![CDATA[CLIENT_SSL_CERT_LDAP]]></category>
		<category><![CDATA[DEVELOPMENT_BECOME_ANY_ACCOUNT]]></category>
		<category><![CDATA[HTTP_LDAP]]></category>
		<category><![CDATA[LDAP]]></category>
		<category><![CDATA[LDAP_BIND]]></category>
		<category><![CDATA[OAUTH]]></category>
		<category><![CDATA[OpenID]]></category>
		<category><![CDATA[OpenID_SSO]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=5159</guid>

					<description><![CDATA[<p>Authentication Types in Gerrit explained! Type of user authentication employed by Gerrit. The supported values are: By default, OpenID OpenID [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/authentication-types-in-gerrit-explained/">Authentication Types in Gerrit explained!</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-5251" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit1.png" alt="" width="600" height="350" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit1.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit1-300x175.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p>Authentication Types in Gerrit explained!</p>
<p>Type of user authentication employed by Gerrit. The supported values are:</p>
<p><strong>By default, OpenID</strong></p>
<p><strong>OpenID</strong><br />
The default setting. Gerrit uses any valid OpenID provider chosen by the end-user. For more information see openid.net.<br />
<strong>OpenID_SSO</strong><br />
Supports OpenID from a single provider. There is no registration link, and the &#8220;Sign In&#8221; link sends the user directly to the provider’s SSO entry point.<br />
<strong>HTTP</strong><br />
Gerrit relies upon data presented in the HTTP request. This includes HTTP basic authentication, or some types of commercial single-sign-on solutions. With this setting enabled the authentication must take place in the web server or servlet container, and not from within Gerrit.<br />
<strong>HTTP_LDAP</strong><br />
Exactly like HTTP (above), but additionally Gerrit pre-populates a user’s full name and email address based on information obtained from the user’s account object in LDAP. The user’s group membership is also pulled from LDAP, making any LDAP groups that a user is a member of available as groups in Gerrit.<br />
<strong>CLIENT_SSL_CERT_LDAP</strong><br />
This authentication type is actually kind of SSO. Gerrit will configure Jetty’s SSL channel to request the client’s SSL certificate. For this authentication to work a Gerrit administrator has to import the root certificate of the trust chain used to issue the client’s certificate into the &lt;review-site&gt;/etc/keystore. After the authentication is done Gerrit will obtain basic user registration (name and email) from LDAP, and some group memberships. Therefore, the &#8220;_LDAP&#8221; suffix in the name of this authentication type. This authentication type can only be used under hosted daemon mode, and the httpd.listenUrl must use https:// as the protocol. Optionally, certificate revocation list file can be used at &lt;review-site&gt;/etc/crl.pem. For details, see httpd.sslCrl.<br />
<strong>LDAP</strong><br />
Gerrit prompts the user to enter a username and a password, which it then verifies by performing a simple bind against the configured ldap.server. In this configuration the web server is not involved in the user authentication process.<br />
The actual username used in the LDAP simple bind request is the account’s full DN, which is discovered by first querying the directory using either an anonymous request, or the configured ldap.username identity. Gerrit can also use kerberos if ldap.authentication is set to GSSAPI.<br />
<strong>LDAP_BIND</strong><br />
Gerrit prompts the user to enter a username and a password, which it then verifies by performing a simple bind against the configured ldap.server. In this configuration the web server is not involved in the user authentication process.<br />
Unlike LDAP above, the username used to perform the LDAP simple bind request is the exact string supplied in the dialog by the user. The configured ldap.username identity is not used to obtain account information.<br />
<strong>OAUTH</strong><br />
OAuth is a protocol that lets external apps request authorization to private details in a user’s account without getting their password. This is preferred over Basic Authentication because tokens can be limited to specific types of data, and can be revoked by users at any time.<br />
Site owners have to register their application before getting started. Note that provider specific plugins must be used with this authentication scheme.<br />
<strong>DEVELOPMENT_BECOME_ANY_ACCOUNT</strong><br />
DO NOT USE. Only for use in a development environment.<br />
When this is the configured authentication method a hyperlink titled Become appears in the top right corner of the page, taking the user to a form where they can enter the username of any existing user account, and immediately login as that account, without any authentication taking place. This form of authentication is only useful for the GWT hosted mode shell, where OpenID authentication redirects might be risky to the developer’s host computer, and HTTP authentication is not possible.</p>
<p><strong>Reference</strong><br />
https://dev.vaadin.com/review/Documentation/config-gerrit.html#auth</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/authentication-types-in-gerrit-explained/">Authentication Types in Gerrit explained!</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/authentication-types-in-gerrit-explained/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to backup and restore Gerrit server?</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-backup-and-restore-gerrit-server/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-backup-and-restore-gerrit-server/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Sun, 19 Aug 2018 19:34:09 +0000</pubDate>
				<category><![CDATA[Gerrit]]></category>
		<category><![CDATA[Backup]]></category>
		<category><![CDATA[Restore]]></category>
		<category><![CDATA[server]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=5156</guid>

					<description><![CDATA[<p>How to backup and restore gerrit server? There are 3 coponent which should be backed up in gerrit Repository &#8211; [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-backup-and-restore-gerrit-server/">How to backup and restore Gerrit server?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-5188" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit-server.png" alt="" width="600" height="350" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit-server.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit-server-300x175.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p><strong>How to backup and restore gerrit server?</strong></p>
<p>There are 3 coponent which should be backed up in gerrit</p>
<ol>
<li>Repository &#8211; According to me best way to backup the repository is to setup a replication with other gerrit hosting tools using gerrit replication plugins. The steps can be find as below;</li>
<li>Gerrit Database<br />
Depends on the database, you should take the database backup. It can be H2 or mysql&#8230;.</li>
<li>Gerrit Config<br />
Rysnc is the best tools to take the entire gerrit site backup.</li>
</ol>
<p><strong>How to replicate Gerrit repository using replication plugins?</strong></p>
<p><strong>Step 1- Setup Gerrit Server</strong><br />
http://www.devopsschool.com/tutorial/gerrit/gerrit-install-and-configuration.html</p>
<p><strong>Step 2 &#8211; Create a Project in Gerrit</strong></p>
<p><strong>Step 3 &#8211; Setup a Developement Machine</strong><br />
git clone http://admin@35.154.81.167:8080/a/prj1 &amp;&amp; (cd prj1 &amp;&amp; curl -kLo `git rev-parse &#8211;git-dir`/hooks/commit-msg http://admin@35.154.81.167:8080/tools/hooks/commit-msg; chmod +x `git rev-parse &#8211;git-dir`/hooks/commit-msg)</p>
<p><strong>Step 4: Sample Commits to be done</strong><br />
&gt; touch file1.txt;git add .;git commit -m&#8221;adding first version&#8221;</p>
<p><strong>Step 5: Sample push and submit it</strong><br />
&gt; git push origin HEAD:refs/for/master</p>
<p><strong>Step 6: create it $site_path/etc/replication.config</strong></p>
<p>Content of the files is &#8211;<br />
[remote &#8220;github&#8221;]<br />
url = git@github.com:scmgalaxy/${name}.git</p>
<p>Within each URL value the magic placeholder `${name}` is replaced with the Gerrit project name.</p>
<p><strong>Step 7: Generate a public/private key</strong></p>
<p>&gt; ssh-keygen -t rsa</p>
<p><strong>Step 8: create a &#8220;config&#8221; under /root/.ssh</strong></p>
<p>Host github.com<br />
User git<br />
IdentityFile /root/.ssh/id_rsa<br />
StrictHostKeyChecking no<br />
UserKnownHostsFile /dev/null</p>
<p><strong>Step 9: Update the public key to github</strong></p>
<p><strong>Step 10: Create a repo in Github.com with same name.</strong></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-backup-and-restore-gerrit-server/">How to backup and restore Gerrit server?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-backup-and-restore-gerrit-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How Gerrit Works?</title>
		<link>https://www.scmgalaxy.com/tutorials/how-gerrit-works/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-gerrit-works/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Sun, 19 Aug 2018 19:14:00 +0000</pubDate>
				<category><![CDATA[Gerrit]]></category>
		<category><![CDATA[Architecture]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=5151</guid>

					<description><![CDATA[<p>When Gerrit is configured as the central source repository, all code changes are sent to Pending Changes for others to [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-gerrit-works/">How Gerrit Works?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-5178" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit.png" alt="" width="600" height="315" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit-300x158.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p>When Gerrit is configured as the central source repository, all code changes are sent to Pending Changes for others to review and discuss. When enough reviewers have approved a code change, you can submit the change to the code base.</p>
<p>In addition to the store of Pending Changes, Gerrit captures notes and comments made about each change. This enables you to review changes at your convenience or when a conversation about a change can’t happen in person. In addition, notes and comments provide a history of each change (what was changed and why and who reviewed the change).</p>
<p>Gerrit project is a workspace consisting of the following elements:</p>
<ul>
<li>Git repository: It is used to store the merged code base and the changes under review that have not being merged yet. Gerrit has the limitation of a single repository per project. There can also be projects without any code repository associated at all (that is, Security-only projects)</li>
<li>Changes references under review: Git commit-id (expressed as SHA-1 Hexadecimal alphanumeric string) stored in the Gerrit DB and pointing to the corresponding changes stored in the Git repository. A Gerrit change is a Git commit object uploaded for review and associated to its comments and scores. It is stored in the project&#8217;s Git repository but it is not visible/accessible from the normal Git graph of commits, even it does start from a point on the commits graph.</li>
<li>Access Control Lists (ACLs): It contains the list of roles defined for the Gerrit project and the associated access permissions to the Git repository branches.</li>
<li>Prolog rules: It is the set of rules that govern the Code Review process for the project. 0 Additional metadata: All the extra settings such as description, merge strategy, contributor agreements, and accessory metadata needed in order to manage the project.</li>
</ul>
<p><strong>We have to make and review a change through these stages in Gerrit:</strong></p>
<ol>
<li>Making the change.</li>
<li>Creating the review.</li>
<li>Reviewing the change.</li>
<li>Reworking the change.</li>
<li>Verifying the change.</li>
<li>Submitting the change.</li>
</ol>
<p><a href="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit-architecture.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5152" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit-architecture.png" alt="" width="1145" height="553" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit-architecture.png 1145w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit-architecture-300x145.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit-architecture-768x371.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit-architecture-1024x495.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit-architecture-660x319.png 660w" sizes="auto, (max-width: 1145px) 100vw, 1145px" /></a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-gerrit-works/">How Gerrit Works?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-gerrit-works/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
