Showing posts with label Git. Show all posts
Showing posts with label Git. Show all posts

How to configure and use local git repository in Eclipse with Java project for example?


Video




How to configured and use local git reposotory in Eclipse with Java project, step by step example, code and tutorials. Clone, Git, Repository, DVCS, Programming, Computer, Software, Branches, Tag, Remote, Local, .gitignore, Commit, SHA, id,   master, HEAD, origin, Index, push, pull, fetch and about git, How to,





How to configured and use local git repository in Eclipse with java project, step by step example, code and tutorials. Clone, Git, Repository, DVCS, Programming, Computer, Software, Branches, Tag, Remote, Local, .gitignore, Commit, SHA, id,   master, HEAD, origin, Index, push, pull, fetch and about git. 

How to configure and use remote git repository in eclipse?

Video:  ClickMe



How to configured and use the remote git repository in Eclipse with Java project, step by step example, code and tutorials. Clone, Git, Repository, DVCS, Programming, Computer, Software, Branches, Tag, Remote, Local, .gitignore, Commit, SHA, id,   master, HEAD, origin, Index, push, pull, fetch and about git, How to.


Reference:
https://git-scm.com/download/win
https://wiki.eclipse.org/Git_and_EGit_for_Beginners
https://en.wikipedia.org/wiki/Git_(software)
https://en.wikipedia.org/wiki/Eclipse_(software)


How to configure and use remote git repository in Eclipse with Java project for example?



See the video



How to configured and use the Git in Eclipse with Java project with step by step example, code and tutorials. Clone, Git, Repository, DVCS, Programming, Computer, Software, Branches, Tag, Remote, Local, .gitignore, Commit, SHA, id,   master, HEAD, origin, Index, push, pull, fetch and about git, How to.



Please like and share it, don't forgot to subscribed it!


Reference:
https://git-scm.com/download/win
https://wiki.eclipse.org/Git_and_EGit_for_Beginners
https://en.wikipedia.org/wiki/Git_(software)
https://en.wikipedia.org/wiki/Eclipse_(software)



How to install/uninstall GIT in CentOS6.5 by yum command


In this tutorials we learn how to install git in CentOS 6.5 with help of yum command:

Requirement:
CentOS 6.5
Internet connectivity
Root level access
Basic knowledge of Unix command



Let's start





[root@vagrant-centos65 vagrant]# yum install git-all
Loaded plugins: fastestmirror, versionlock
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: centos.mirroring.pulsant.co.uk
 * epel: mir01.syntis.net
 * extras: anorien.csc.warwick.ac.uk
 * updates: centos.serverspace.co.uk
Resolving Dependencies
--> Running transaction check
---> Package git-all.noarch 0:1.7.1-3.el6_4.1 will be installed
--> Processing Dependency: perl-Git = 1.7.1-3.el6_4.1 for package: git-all-1.7.1-3.el6_4.1.noarch
--> Processing Dependency: gitk = 1.7.1-3.el6_4.1 for package: git-all-1.7.1-3.el6_4.1.noarch
--> Processing Dependency: git-svn = 1.7.1-3.el6_4.1 for package: git-all-1.7.1-3.el6_4.1.noarch
--> Processing Dependency: git-gui = 1.7.1-3.el6_4.1 for package: git-all-1.7.1-3.el6_4.1.noarch
--> Processing Dependency: git-email = 1.7.1-3.el6_4.1 for package: git-all-1.7.1-3.el6_4.1.noarch
--> Processing Dependency: git-cvs = 1.7.1-3.el6_4.1 for package: git-all-1.7.1-3.el6_4.1.noarch
--> Processing Dependency: git = 1.7.1-3.el6_4.1 for package: git-all-1.7.1-3.el6_4.1.noarch
--> Processing Dependency: emacs-git = 1.7.1-3.el6_4.1 for package: git-all-1.7.1-3.el6_4.1.noarch
--> Running transaction check
---> Package emacs-git.noarch 0:1.7.1-3.el6_4.1 will be installed
---> Package git.x86_64 0:1.7.1-3.el6_4.1 will be installed
---> Package git-cvs.noarch 0:1.7.1-3.el6_4.1 will be installed
---> Package git-email.noarch 0:1.7.1-3.el6_4.1 will be installed
---> Package git-gui.noarch 0:1.7.1-3.el6_4.1 will be installed
---> Package git-svn.noarch 0:1.7.1-3.el6_4.1 will be installed
---> Package gitk.noarch 0:1.7.1-3.el6_4.1 will be installed
---> Package perl-Git.noarch 0:1.7.1-3.el6_4.1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

======================================================================================================================================================

 Package                             Arch                             Version                                    Repository                      Size
======================================================================================================================================================

Installing:
 git-all                             noarch                           1.7.1-3.el6_4.1                            base                            16 k
Installing for dependencies:
 emacs-git                           noarch                           1.7.1-3.el6_4.1                            base                            40 k
 git                                 x86_64                           1.7.1-3.el6_4.1                            base                           4.6 M
 git-cvs                             noarch                           1.7.1-3.el6_4.1                            base                            84 k
 git-email                           noarch                           1.7.1-3.el6_4.1                            base                            41 k
 git-gui                             noarch                           1.7.1-3.el6_4.1                            base                           216 k
 git-svn                             noarch                           1.7.1-3.el6_4.1                            base                            95 k
 gitk                                noarch                           1.7.1-3.el6_4.1                            base                           132 k
 perl-Git                            noarch                           1.7.1-3.el6_4.1                            base                            28 k

Transaction Summary
======================================================================================================================================================

Install       9 Package(s)

Total download size: 5.2 M
Installed size: 17 M
Is this ok [y/N]: y
Downloading Packages:
(1/9): emacs-git-1.7.1-3.el6_4.1.noarch.rpm                                                                                    |  40 kB     00:00

(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm                     (2%)  2% [=                                               ]  0.0 B/s | 109 kB     --:-- ETA
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm                     (5%)  5% [==-                                             ] 228 kB/s | 255 kB     00:19 ETA
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm                     (9%)  9% [====-                                           ] 258 kB/s | 471 kB     00:16 ETA
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm                     (12%) 13% [======-                                        ] 279 kB/s | 656 kB     00:14 ETA
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm                     (16%) 17% [========                                       ] 296 kB/s | 826 kB     00:13 ETA
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm                     (19%) 20% [=========-                                     ] 310 kB/s | 986 kB     00:12 ETA
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm                     (22%) 24% [===========-                                   ] 327 kB/s | 1.1 MB     00:10 ETA
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm                     (25%) 27% [=============                                  ] 338 kB/s | 1.3 MB     00:10 ETA
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm                     (28%) 31% [==============-                                ] 353 kB/s | 1.5 MB     00:09 ETA
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm                     (32%) 35% [================-                              ] 368 kB/s | 1.6 MB     00:08 ETA
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm                     (35%) 39% [==================                             ] 379 kB/s | 1.8 MB     00:07 ETA
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm                     (38%) 42% [====================                           ] 392 kB/s | 2.0 MB     00:06 ETA
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm                     (41%) 46% [======================                         ] 404 kB/s | 2.2 MB     00:06 ETA
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm                     (45%) 50% [=======================-                       ] 416 kB/s | 2.3 MB     00:05 ETA
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm                     (47%) 52% [========================-                      ] 411 kB/s | 2.4 MB     00:05 ETA
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm                     (50%) 56% [==========================-                    ] 421 kB/s | 2.6 MB     00:04 ETA
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm                     (53%) 60% [============================                   ] 431 kB/s | 2.8 MB     00:04 ETA
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm                     (56%) 63% [==============================                 ] 440 kB/s | 2.9 MB     00:03 ETA
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm                     (60%) 67% [===============================-               ] 450 kB/s | 3.1 MB     00:03 ETA
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm                     (63%) 71% [=================================-             ] 458 kB/s | 3.3 MB     00:02 ETA
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm                     (67%) 75% [===================================            ] 467 kB/s | 3.5 MB     00:02 ETA
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm                     (69%) 78% [====================================-          ] 469 kB/s | 3.6 MB     00:02 ETA
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm                     (73%) 82% [======================================-        ] 476 kB/s | 3.8 MB     00:01 ETA
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm                     (76%) 86% [========================================       ] 481 kB/s | 4.0 MB     00:01 ETA
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm                     (79%) 89% [==========================================     ] 484 kB/s | 4.1 MB     00:01 ETA
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm                     (81%) 91% [==========================================-    ] 472 kB/s | 4.2 MB     00:00 ETA
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm                     (84%) 95% [=============================================  ] 484 kB/s | 4.4 MB     00:00 ETA
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm                     (87%) 99% [==============================================-] 487 kB/s | 4.6 MB     00:00 ETA
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm                                                                                          | 4.6 MB     00:08

(3/9): git-all-1.7.1-3.el6_4.1.noarch.rpm                                                                                      |  16 kB     00:00

(4/9): git-cvs-1.7.1-3.el6_4.1.noarch.rpm                                                                                      |  84 kB     00:00

(5/9): git-email-1.7.1-3.el6_4.1.noarch.rpm                                                                                    |  41 kB     00:00

(6/9): git-gui-1.7.1-3.el6_4.1.noarch.rpm                 (92%) 41% [===================                            ]  0.0 B/s |  89 kB     --:-- ETA
(6/9): git-gui-1.7.1-3.el6_4.1.noarch.rpm                 (95%) 97% [=============================================- ] 118 kB/s | 210 kB     00:00 ETA
(6/9): git-gui-1.7.1-3.el6_4.1.noarch.rpm                 (95%) 99% [==============================================-] 111 kB/s | 214 kB     00:00 ETA
(6/9): git-gui-1.7.1-3.el6_4.1.noarch.rpm                                                                                      | 216 kB     00:01

(7/9): git-svn-1.7.1-3.el6_4.1.noarch.rpm                 (96%) 89% [==========================================     ]  0.0 B/s |  85 kB     --:-- ETA
(7/9): git-svn-1.7.1-3.el6_4.1.noarch.rpm                                                                                      |  95 kB     00:00

(8/9): gitk-1.7.1-3.el6_4.1.noarch.rpm                    (98%) 77% [====================================           ]  0.0 B/s | 102 kB     --:-- ETA
(8/9): gitk-1.7.1-3.el6_4.1.noarch.rpm                                                                                         | 132 kB     00:00

(9/9): perl-Git-1.7.1-3.el6_4.1.noarch.rpm                                                                                     |  28 kB     00:00

------------------------------------------------------------------------------------------------------------------------------------------------------

Total                                                                                                                 295 kB/s | 5.2 MB     00:18

Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : git-1.7.1-3.el6_4.1.x86_64                                                                                                         1/9

  Installing : perl-Git-1.7.1-3.el6_4.1.noarch                                                                                                    2/9

  Installing : gitk-1.7.1-3.el6_4.1.noarch                                                                                                        3/9

  Installing : git-gui-1.7.1-3.el6_4.1.noarch                                                                                                     4/9

  Installing : git-svn-1.7.1-3.el6_4.1.noarch                                                                                                     5/9

  Installing : git-email-1.7.1-3.el6_4.1.noarch                                                                                                   6/9

  Installing : git-cvs-1.7.1-3.el6_4.1.noarch                                                                                                     7/9

  Installing : emacs-git-1.7.1-3.el6_4.1.noarch                                                                                                   8/9

  Installing : git-all-1.7.1-3.el6_4.1.noarch                                                                                                     9/9

  Verifying  : perl-Git-1.7.1-3.el6_4.1.noarch                                                                                                    1/9

  Verifying  : git-svn-1.7.1-3.el6_4.1.noarch                                                                                                     2/9

  Verifying  : git-email-1.7.1-3.el6_4.1.noarch                                                                                                   3/9

  Verifying  : git-gui-1.7.1-3.el6_4.1.noarch                                                                                                     4/9

  Verifying  : emacs-git-1.7.1-3.el6_4.1.noarch                                                                                                   5/9

  Verifying  : git-1.7.1-3.el6_4.1.x86_64                                                                                                         6/9

  Verifying  : gitk-1.7.1-3.el6_4.1.noarch                                                                                                        7/9

  Verifying  : git-cvs-1.7.1-3.el6_4.1.noarch                                                                                                     8/9

  Verifying  : git-all-1.7.1-3.el6_4.1.noarch                                                                                                     9/9


Installed:
  git-all.noarch 0:1.7.1-3.el6_4.1


Dependency Installed:
  emacs-git.noarch 0:1.7.1-3.el6_4.1    git.x86_64 0:1.7.1-3.el6_4.1        git-cvs.noarch 0:1.7.1-3.el6_4.1    git-email.noarch 0:1.7.1-3.el6_4.1
  git-gui.noarch 0:1.7.1-3.el6_4.1      git-svn.noarch 0:1.7.1-3.el6_4.1    gitk.noarch 0:1.7.1-3.el6_4.1       perl-Git.noarch 0:1.7.1-3.el6_4.1

Complete!
[root@vagrant-centos65 vagrant]#

Reference: git

Ansible, Centos65, Oracle VirtualBox, Vagrant and Provision

In Agile age, can't wait for environment’s (Development, Test, SIT and Pre-Prod and Prod) in place for start the development and configuration. What we need, just single windows system, where we can start provisioning with below tools and technologies. This will help more in Continues Development CD, Continues Integration CI and Continues Delivery CD.



Ansible centos virtualbox vagrant and provision
Ansible centos virtualbox vagrant and provision














Let’s discussed how it will possible:

Pre-quest:
Windows 7 OS 64
Install the Oracle VM VirtualBox  or any VM more
Install Vagrant more
Download Centos box more
Install ansible
Install Git Bash more

Open the Git Base
Windows Start > All Programs > Git > Git Base

Welcome to Git (version 1.9.5-preview20150319)

 Run 'git help git' to display the help index.
 Run 'git help <command>' to display help for specific commands.
 tutorialbyexample@WS7 ~

Crete the directory vagrant-ansible-centos under c:\
e.g. c:\vagrant-ansible-centos

Download it from https://github.com/tutorialbyexample/vagrant-ansible-centos.git


















c:\vagrant-ansible-centos
  - provision.sh
  - Vagrantfile 
  - centos65-x86_64-20140116.box
  - etc 
        -  ansible
                    - web.yml
                    - site.yml
                    - roles
                             - git
                                   - tasks
                                            - main.yml
                             - tar
                                   - tasks
                                            - main.yml
                             - zip
                                   - tasks
                                            - main.yml
  - inventory
        - dev 

Pest the all files under c:\vagrant-ansible-centos
1. Vagrantfile (no any extension)
#C:\vagrant-ansible-centos\Vagrantfile
# Vagrantfile Details
VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  config.vm.box = "centos6"
  config.vm.provider "virtualbox" do |vb|
    vb.customize ["modifyvm", :id, "--memory", "5000", "--cpus", "2"]
  end
  config.vm.synced_folder ".", "/vagrant-ansible-centos"
  
end

2. provision.sh
#C:\vagrant-ansible-centos\provision.sh
cp -rf /vagrant-ansible-centos/inventory /tmp
chmod -x /tmp/inventory/*
sudo ansible-playbook -vvvv -i /tmp/inventory/$1 /vagrant-ansible-centos/etc/ansible/site.yml --extra-vars 'proxy_host="proxy_host" proxy_port="80" proxy_username="tutorialbyexample" proxy_password="password" proxy_required=true'
#sudo ansible-playbook -vvvv -i /tmp/inventory/$1 /vagrant-ansible-centos/etc/ansible/site.yml

3. dev (no extensions)
#C:\vagrant-ansible-centos\inventory
local ansible_ssh_port=2200 ansible_ssh_host=127.0.0.1 ansible_connection=local

[web-servers]
local

4. web.yml
#C:\vagrant-ansible-centos\etc\ansible\web.yml
---  
- hosts: web-servers
  remote_user: root
  sudo: yes
  roles:
    - zip
    - tar
    - git

5. site.yml 
#C:\vagrant-ansible-centos\etc\ansible\site.yml
---
- include: web.yml

6. main.yml (this is for git)
#C:\vagrant-ansible-centos\etc\ansible\roles\git\tasks\main.yml
---
- name: Install Git
  yum: name={{ item }} state=present
  with_items:
    - git
    - git-svn

7. main.yml (this is for tar)
#C:\vagrant-ansible-centos\etc\ansible\roles\tar\tasks\main.yml
---
- name: Install tar 
  yum: name=tar state=present  

8. main.yml (this is for zip)
#C:\vagrant-ansible-centos\etc\ansible\roles\zip\tasks\main.yml
---
- name: Install zip/unzip util
  yum: name={{ item }} state=present
  with_items:
    - "zip"
    - "unzip"

Need to switch our base tool to vagrant-ansible-centos directory
$ cd C:\vagrant-ansible-centos

$ pwd
/c/vagrant-ansible-centos

$ ls -tlr
centos65-x86_64-20140116.box
inventory
etc
provision.sh
Vagrantfile

Note: assuming centos65-x86_64-20140116.box has been downloaded under c:\vagrant-ansible-centos

$ vagrant box add centos6 centos65-x86_64-20140116.box
Downloading or copying the box...
Extracting box...ate: 2005k/s, Estimated time remaining: --:--:--)
Successfully added box 'centos6' with provider 'virtualbox'!

Note: You will experiences new folder created under /c/vagrant-ansible-centos with name .vagrant



$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
[default] Importing base box 'centos6'...
[default] Matching MAC address for NAT networking...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
[default] Fixed port collision for 22 => 2222. Now on port 2200.
[default] Creating shared folders metadata...
[default] Clearing any previously set network interfaces...
[default] Preparing network interfaces based on configuration...
[default] Forwarding ports...
[default] -- 22 => 2200 (adapter 1)
[default] Running 'pre-boot' VM customizations...
[default] Booting VM...
[default] Waiting for machine to boot. This may take a few minutes...
[default] Machine booted and ready!
[default] Mounting shared folders...
[default] -- /vagrant
[default] -- /vagrant-ansible-centos
[default] Configuring proxy environment variables...
[default] Configuring proxy for Yum...

Alternatively, ssh into localhost:2200 or 2222 what ever printed on above
using private key c/vagrant-ansible-centos\.vagrant\machines\default\virtualbox\private_key

$ vagrant ssh
[vagrant@vagrant-centos65 ~]$ pwd
/home/vagrant
[vagrant@vagrant-centos65 ~]$ ls -tlr
total 0
[vagrant@vagrant-centos65 ~]$ cd /vagrant-ansible-centos/
[vagrant@vagrant-centos65 vagrant-ansible-centos]$ ls -tlr
centos65-x86_64-20140116.box
inventory
etc
provision.sh
Vagrantfile

All this files will mount in /vagrant-ansible-centos/ as mentioned in Vagrent file.

Install the Ansible

[vagrant@vagrant-centos65 vagrant-ansible-centos]$ sudo yum install ansible
Loaded plugins: fastestmirror, versionlock
Determining fastest mirrors
epel/metalink                                                             
 * base: centos.openitc.uk
 * epel: epel.besthosting.ua
 * extras: centos.mirroring.pulsant.co.uk
 * updates: centos.serverspace.co.uk
...
..
Complete!

Verify the Ansible
[vagrant@vagrant-centos65 vagrant-ansible-centos]$ ansible --version
ansible 1.9.2
  configured module search path = None

Provision it, with provision.sh script along with Ansible

[vagrant@vagrant-centos65 vagrant-ansible-centos]$ ./provision.sh dev

PLAY [web-servers] ************************************************************

GATHERING FACTS ***************************************************************
ok: [local]

TASK: [zip | Install zip/unzip util] ******************************************
<127.0.0.1> REMOTE_MODULE yum name=zip,unzip state=present

TASK: [tar | Install tar] *****************************************************
<127.0.0.1> REMOTE_MODULE yum name=tar state=present
ok: [local] => {"changed": false, "msg": "", "rc": 0, "results": ["tar-1.23-11.el6.x86_64 providing tar is already installed"]}

TASK: [git | Install Git] *****************************************************
<127.0.0.1> REMOTE_MODULE yum name=git,git-svn state=present

PLAY RECAP ********************************************************************
local                      : ok=4    changed=2    unreachable=0    failed=0

[vagrant@vagrant-centos65 vagrant-ansible-centos]$

Verify the provision software, e.g. git, tar and zip

[vagrant@vagrant-centos65 vagrant-ansible-centos]$ git --version
git version 1.7.1
[vagrant@vagrant-centos65 vagrant-ansible-centos]$ tar --version
tar (GNU tar) 1.23
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
[vagrant@vagrant-centos65 vagrant-ansible-centos]$ zip --version
Copyright (c) 1990-2008 Info-ZIP - Type 'zip "-L"' for software license.
This is Zip 3.0 (July 5th 2008), by Info-ZIP.
Currently maintained by E. Gordon.  Please send bug reports to
the authors using the web page at www.info-zip.org; see README for details.

Latest sources and executables are at ftp://ftp.info-zip.org/pub/infozip,
as of above date; see http://www.info-zip.org/ for other sites.

Compiled with gcc 4.4.4 20100525 (Red Hat 4.4.4-5) for Unix (Linux ELF) on Nov 11 2010.

Zip special compilation options:
        USE_EF_UT_TIME       (store Universal Time)
        SYMLINK_SUPPORT      (symbolic links supported)
        LARGE_FILE_SUPPORT   (can read and write large files on file system)
        ZIP64_SUPPORT        (use Zip64 to store large files in archives)
        UNICODE_SUPPORT      (store and read UTF-8 Unicode paths)
        STORE_UNIX_UIDs_GIDs (store UID/GID sizes/values using new extra field)
        UIDGID_NOT_16BIT     (old Unix 16-bit UID/GID extra field not used)
        [encryption, version 2.91 of 05 Jan 2007] (modified for Zip 3)

Encryption notice:
        The encryption code of this program is not copyrighted and is
        put in the public domain.  It was originally written in Europe
        and, to the best of our knowledge, can be freely distributed
        in both source and object forms from any country, including
        the USA under License Exception TSU of the U.S. Export
        Administration Regulations (section 740.13(e)) of 6 June 2002.

Zip environment options:
             ZIP:  [none]
          ZIPOPT:  [none]
[vagrant@vagrant-centos65 vagrant-ansible-centos]$

Is not it simple? For real implementation only we have to change the actual IP address of web server.

C:\vagrant-ansible-centos\inventory\dev

local ansible_ssh_port=2200 ansible_ssh_host=127.0.0.1 ansible_connection=local

[web-servers]
local

Note: instead of local need to change the actual IP address and it will work for you.

Git SCM, Gerrit Review tool and Jenkins/Hudson Continuous Integration Servers:


Requirements:
1. Min Hardware’s
a. 2 GB’s RAM
b. 5 GB’s Disk
2. Operating System Linux/Cent OS with latest update
a. Root or SUDO access
b. SSH service
c. Internet connectivity (need to download required software)
d. SMTP or Email server configuration
e. Open Port’s 29418, 8080, 8888
f. Users setups jenkins, demo and any others if required
3. Java JDK 1.7.x
4. Git installer or RPM
5. Gerrit 2.2.x WAR
6. Database H2, PostgreSQL and MySQL
7. Jenkins/Hudson




Details descriptions:
1. How to check the RAM
    Logging with root/sudo user and perform the below command
    [root@localhost ~]# free –g
2. How to check the free desk space
    Logging with root/sudo user and perform the below command
    [root@localhost ~]# df -h
3. How to verify ssh
    Type the below command
    [root@localhost ~]# ssh
    usage: ssh [-1246AaCfgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec]
           [-D [bind_address:]port] [-e escape_char] [-F configfile]
           [-I pkcs11] [-i identity_file]
           [-L [bind_address:]port:host:hostport]
           [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
           [-R [bind_address:]port:host:hostport] [-S ctl_path]
           [-W host:port] [-w local_tun[:remote_tun]]
           [user@]hostname [command]

4. How to check the Internet connectivity
   Type the below command
   [root@localhost ~]# wget http://google.com
   You will get status code ... 200 OK
   It’s indicate that you have internet connectivity        
5. How to verify the SMTP
   Type the below command
   [root@localhost ~]# mail -f /var/spool/mail/root
6. How to add group/user
   Type the below command
   groupadd -g 1001 demo
   useradd -d /home/demo -g 1001 -s /bin/bash demo
   Reset the password
   Type the command
   [root@localhost ~]# passwd demo
   Changing password for user demo.
   New password:
   Retype new password:
   passwd: all authentication tokens updated successfully.

7. Java: Install java with yum command or Download & untar java files in local directory
   Note: If you have already java installed then avoid below steps. 
   yum install "java-1.7.0-openjdk"
   or
   wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-   pub/java/jdk/7u79-b15/jdk-7u79-linux-x64.tar.gz"
   tar -xzvf jdk-7u79-linux-x64.tar.gz -C /home/
   Java Home/Path setting: 
   echo 'export JAVA_HOME=/home/jdk1.7.0_79' > /etc/profile.d/jdk.sh
   echo 'export PATH=$JAVA_HOME/bin:$PATH' >> /etc/profile.d/jdk.sh
   source /etc/profile.d/jdk.sh
   java -version
   java
8. GIT
   Logging with root or SUDO user and perform the below command
   [root@localhost ~]#yum install git
   Or 
   Refer from http://www.tutorialbyexample.com/2015/05/git-installation-unix-example.html
   Or 
   http://git-scm.com/
   [root@localhost ~]# git --version
   git version 1.7.1
   [root@localhost ~]#git config --list
   [root@localhost ~]#git config --global user.name "Vinod"
   [root@localhost ~]#git config --global user.email "vinod@tutorialbyexample.com"
   [root@localhost ~]#git config --list
   [root@localhost ~]#mkdir gitrepo
   [root@localhost ~]#cd gitrepo/
   [root@localhost ~]#chmod –R 777 gitrepo

   [root@localhost ~]#git init --bare /home/gitrepo/tutorialbyexample
   Note: Blank tutorialbyexample repository created.
9. Gerrit: Installed the Gerrit by downloading the gerrit-2.10.4.war file
   Logging with root/sudo user
   [root@localhost ~]mkdir gerrit
   [root@localhost ~]chmod 775 gerrit
   [root@localhost ~]cd gerrit
   [root@localhost ~]#wget "https://gerrit-releases.storage.googleapis.com/gerrit-2.10.4.war" -o /home/gerrit/gerrit-2.10.4.war
   [root@localhost gerrit]#java -jar gerrit-2.10.4.war init -d /home/gerrit
   Answer the various questions, such as:
   Location of Git repositories [git]
   Import existing repositories [Y/n]
   Database server type [H2/?]
   Authentication method [OPENID/?]
   type ? and then choose development_become_any_account or type development_become_any_account
   SMTP server hostname [localhost]
   SMTP server port [(default)]
   SMTP encryption [NONE/?]
   SMTP username
   Run as [you]
   Java runtime [/home/jdk1.7.0_79/jre]
   Copy gerrit.war to /home/gerrit/bin/gerrit.war [Y/n]
   Listen on address [*]
   Listen on port [29418]
   Download and install Bouncy Castle [Y/n]
   Behind http reverse proxy [y/N]
   Use SSL [y/N]
   Listen on address [*]
   Listen on port [8888]
   [root@localhost gerrit]# ./bin/gerrit.sh stop
   [root@localhost gerrit]#java -jar gerrit-2.10.4.war reindex
   [root@localhost gerrit]# ./bin/gerrit.sh start
   [root@localhost gerrit]#wget http://localhost:8888/






   Fixing the email address issue:
   [root@localhost gerrit]# bin/gerrit.sh stop
   Stopping Gerrit Code Review: OK
   [root@localhost gerrit]# ls -tlr
   total 40796
   -rwxrwxrwx 1 root root 41726206 May  7 12:19 gerrit-2.10.4.war
   drwxrwxrwx 2 root root     4096 May 20 11:59 static
   drwxrwxrwx 2 root root     4096 May 20 11:59 plugins
   drwxrwxrwx 2 root root     4096 May 20 11:59 lib
   drwxrwxrwx 2 root root     4096 May 20 11:59 data
   drwxrwxrwx 2 root root     4096 May 20 12:02 tmp
   drwxrwxrwx 2 root root     4096 May 20 12:02 bin
   drwxrwxrwx 3 root root     4096 May 20 12:08 index
   drwxrwxrwx 3 root root     4096 May 27 17:06 etc
   drwxrwxrwx 2 root root     4096 May 27 18:15 cache
   drwxrwxrwx 2 root root     4096 May 27 18:15 db
   drwxrwxrwx 2 root root     4096 May 27 18:15 logs
   [root@localhost gerrit]# java -jar bin/gerrit.war gsql
   [2015-05-27 18:15:57,656] INFO  com.google.gerrit.server.git.LocalDiskRepositoryManager : Defaulting core.streamFileThreshold to 58m
   Welcome to Gerrit Code Review 2.10.4
   (H2 1.3.174 (2013-10-19))

   Type '\h' for help.  Type '\r' to clear the buffer.

   gerrit> select * from ACCOUNT_EXTERNAL_IDS;
   ACCOUNT_ID | EMAIL_ADDRESS             | PASSWORD | EXTERNAL_ID
   -----------+---------------------------+----------+------------------------------------------
   1000000    | | NULL     | uuid:70ca83b5-6797-4e3c-a959-b7a22de78fa0
   1000000    | | NULL     | mailto:vinod@tutorialbyexample.com
   1000000    | | NULL     | username:extvkx
   (3 rows; 4 ms)
   gerrit> update ACCOUNT_EXTERNAL_IDS set EMAIL_ADDRESS='vinod@tutorialbyexample.com' where ACCOUNT_ID=1000000;
   UPDATE 2;UPDATE 3; 10 ms
   gerrit>\q
   Bye
   [root@localhost gerrit]#  bin/gerrit.sh start
   Starting Gerrit Code Review:
   OK
   User configuration for mapping to git and gerrit:
   Logging with demo user
   Type the command
   [demo@localhost ~]$ ssh-keygen -t rsa -b 2048
   Generating public/private rsa key pair.
   Enter file in which to save the key (/home/demo/.ssh/id_rsa):
   /home/demo/.ssh/id_rsa already exists.
   Overwrite (y/n)? y
   Enter passphrase (empty for no passphrase):
   Enter same passphrase again:
   Your identification has been saved in /home/demo/.ssh/id_rsa.
   Your public key has been saved in /home/demo/.ssh/id_rsa.pub.
   The key fingerprint is:
   bf:bc:9a:58:1f:0a:2b:3c:d1:4a:ef:8f:95:14:f7:24 demo@localhost.localdomain
   The key's randomart image is:
   +--[ RSA 2048]----+
   |                 |
   |                 |
   |        . E .    |
   |         o +     |
   |     .  S   .    |
   |    o .. o       |
   |   o +. + o      |
   |    = .B = o     |
   |     +=.=.=.     |
   +-----------------+
   [demo@localhost ~]$ vi .ssh/id_rsa.pub
   Copy the content and pest in gerrit SSH Public keys 

   http://localhost:8888/
   Click on the Become link located in right top corner
   Click on the new account

  

   Click on the Add button
   And Continue

   Verification, just type the below command:

   [demo@localhost ~]$ ssh -p 29418 demo@localhost
   ****    Welcome to Gerrit Code Review    ****
   Hi demo, you have successfully connected over SSH.
   Unfortunately, interactive shells are disabled.
   To clone a hosted Git repository, use:
   git clone ssh://demo@localhost.localdomain:29418/REPOSITORY_NAME.git
   Connection to localhost closed.

   Cloning the git reposetory: tutorialbyexample
   [demo@localhost ~]$ git clone ssh://demo@localhost:29418/tutorialbyexample
   Initialized empty Git repository in /home/demo/tutorialbyexample/.git/
   warning: remote HEAD refers to nonexistent ref, unable to checkout. cd tutorialbyexample 
   [demo@localhost ~]$ cd tutorialbyexample/
   [demo@localhost tutorialbyexample]$ cd .git/hooks
   [demo@localhost hooks]$ scp -P 29418 demo@localhost:hooks/commit-msg .
   commit-msg             100% 4362     4.3KB/s   00:00
   [demo@localhost hooks]$ cd ../..
   [demo@localhost tutorialbyexample]$ git config remote.origin.push refs/heads/*:refs/for/*
   [demo@localhost tutorialbyexample]$vi MainApp.java
   public class MainApp{
   public static void main(String a[])
     {
     System.out.println("Git, Gerrit, Jenkins and Java");
     }
   }
   [demo@localhost tutorialbyexample]$git add MainApp.java
   [demo@localhost tutorialbyexample]$ git commit -m " New MainApp.java added for testing the Git, Gerrit, Jenkins and Java"
   [master (root-commit) da284c6]  New MainApp.java added for testing the Git, Gerrit, Jenkins and Java
    1 files changed, 6 insertions(+), 0 deletions(-)
    create mode 100644 MainApp.java
[demo@localhost tutorialbyexample]$ git push origin
   Counting objects: 3, done.
   Delta compression using up to 2 threads.
   Compressing objects: 100% (2/2), done.
   Writing objects: 100% (3/3), 397 bytes, done.
   Total 3 (delta 0), reused 0 (delta 0)
   remote: Processing changes: new: 1, refs: 1, done
   remote:
   remote: New Changes:
   remote:   http://localhost.localdomain:8888/4  New MainApp.java added for testing the Git, Gerrit, Jenkins and Java
   remote:
   To ssh://demo@localhost:29418/tutorialbyexample
   * [new branch]      master -> refs/for/master 






















10. Jenkins/Hudson:
   Logging with root/sudo user
   [root@localhost home]#sudo wget -O /etc/yum.repos.d/jenkins.repo \ http://jenkins-ci.org/redhat/jenkins.repo
   [root@localhost home]#sudo rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-  ci.org.key
   [root@localhost home]#sudo yum install jenkins
   Jenkins file will there in belwo directory:
   /usr/lib/jenkins
   /var/lib/jenkins
   /etc/sysconfig/jenkins
   [root@localhost home]#sudo service jenkins start
   http://localhost:8080/










jenkins user will crated by default
[root@localhost home]#sudo su -s /bin/bash jenkins
[root@localhost home]#git ls-remote -h ssh://jenkins@localhost:29418/tutorialbyexample HEAD
Follow the user setup like demo above for gerrit and git for Jenkins user as well for fingerprint.
Or
Download the Jenkins.war file from http://jenkins-ci.org/
And 
[root@localhost home]# mkdir jenkins
[root@localhost home]#chmod –R 777 jenkins
[root@localhost home]#java -jar jenkins.war

Create the Jenkins job:
Follow the following steps:
1. Click on the 'New Job' at the top left. It will ask for a Project name: git-gerrit-jenkins-java-tutorialbyexample 
2. Under Source Code Management Select Git as the SCM type (if it's not shown, it means that you need to install the Git plugin above). The Repository URL will be     ssh://jenkins@localhost:29418/tutorialbyexample and Branch Specifier (blank for 'any'): */master
3. Build Triggers: Select the Poll SCM and endter the Schedule: * * * * *  This is a crontab-like format, which in this case equates to checking the repository every  minute.
4. Scroll down to add a build step and Build Command: pwd
   javac *.java
   java MainApp
5. Finally, click on Save and the project should be created.
Or 
Create the directory git-gerrit-jenkins-java-tutorialbyexample under /var/lib/jenkins/jobs
And place the config.xml file under git-gerrit-jenkins-java-tutorialbyexample

<?xml version='1.0' encoding='UTF-8'?>
<project>
  <actions/>
  <description></description>
  <keepDependencies>false</keepDependencies>
  <properties/>
  <scm class="hudson.plugins.git.GitSCM" plugin="git@2.3.5">
    <configVersion>2</configVersion>
    <userRemoteConfigs>
      <hudson.plugins.git.UserRemoteConfig>
        <name>tutorialbyexample</name>
        <url>ssh://jenkins@localhost:29418/tutorialbyexample</url>
      </hudson.plugins.git.UserRemoteConfig>
    </userRemoteConfigs>
    <branches>
      <hudson.plugins.git.BranchSpec>
        <name>*/master</name>
      </hudson.plugins.git.BranchSpec>
    </branches>
    <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
    <submoduleCfg class="list"/>
    <extensions/>
  </scm>
  <canRoam>true</canRoam>
  <disabled>false</disabled>
  <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
  <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
  <triggers>
    <hudson.triggers.SCMTrigger>
      <spec>* * * * *</spec>
      <ignorePostCommitHooks>false</ignorePostCommitHooks>
    </hudson.triggers.SCMTrigger>
  </triggers>
  <concurrentBuild>false</concurrentBuild>
  <builders>
    <hudson.tasks.Shell>
      <command>pwd
javac *.java
java MainApp</command>
    </hudson.tasks.Shell>
  </builders>
  <publishers>
    <hudson.tasks.Mailer plugin="mailer@1.11">
      <recipients>vinod@tutorialbyexample.com</recipients>
      <dontNotifyEveryUnstableBuild>false</dontNotifyEveryUnstableBuild>
      <sendToIndividuals>false</sendToIndividuals>
    </hudson.tasks.Mailer>
  </publishers>
  <buildWrappers/>
</project>

Jenkins > Gerrit Triggers:
Open the http://localhost:8080/
Click on the Jenkins
Click on the Manage Jenkins
Click on the Gerrit Trigger



















Click on the Add new server
Enter the Add New Server: gerrit-localhost
Click on the OK





















or add /var/lib/jenkins/gerrit-trigger.xml file:
<?xml version='1.0' encoding='UTF-8'?>
<com.sonyericsson.hudson.plugins.gerrit.trigger.PluginImpl plugin="gerrit-trigger@2.13.0">
  <servers class="java.util.concurrent.CopyOnWriteArrayList">
    <com.sonyericsson.hudson.plugins.gerrit.trigger.GerritServer>
      <name>gerrit-localhost</name>
      <noConnectionOnStartup>false</noConnectionOnStartup>
      <config class="com.sonyericsson.hudson.plugins.gerrit.trigger.config.Config">
        <gerritHostName>localhost</gerritHostName>
        <gerritSshPort>29418</gerritSshPort>
        <gerritProxy></gerritProxy>
        <gerritUserName>jenkins</gerritUserName>
        <gerritEMail></gerritEMail>
        <gerritAuthKeyFile>/var/lib/jenkins/.ssh/id_rsa</gerritAuthKeyFile>
        <gerritAuthKeyFilePassword>YaQ8Nkt2IgtwjiGnLQ6BrA==</gerritAuthKeyFilePassword>
        <useRestApi>false</useRestApi>
        <restCodeReview>false</restCodeReview>
        <restVerified>false</restVerified>
        <gerritBuildCurrentPatchesOnly>false</gerritBuildCurrentPatchesOnly>
        <gerritVerifiedCmdBuildSuccessful>gerrit review &lt;CHANGE&gt;,&lt;PATCHSET&gt; --message &apos;Build Successful &lt;BUILDS_STATS&gt;&apos; --verified &lt;VERIFIED&gt; --code-review &lt;CODE_REVIEW&gt;</gerritVerifiedCmdBuildSuccessful>
        <gerritVerifiedCmdBuildUnstable>gerrit review &lt;CHANGE&gt;,&lt;PATCHSET&gt; --message &apos;Build Unstable &lt;BUILDS_STATS&gt;&apos; --verified &lt;VERIFIED&gt; --code-review &lt;CODE_REVIEW&gt;</gerritVerifiedCmdBuildUnstable>
        <gerritVerifiedCmdBuildFailed>gerrit review &lt;CHANGE&gt;,&lt;PATCHSET&gt; --message &apos;Build Failed &lt;BUILDS_STATS&gt;&apos; --verified &lt;VERIFIED&gt; --code-review &lt;CODE_REVIEW&gt;</gerritVerifiedCmdBuildFailed>
        <gerritVerifiedCmdBuildStarted>gerrit review &lt;CHANGE&gt;,&lt;PATCHSET&gt; --message &apos;Build Started &lt;BUILDURL&gt; &lt;STARTED_STATS&gt;&apos; --verified &lt;VERIFIED&gt; --code-review &lt;CODE_REVIEW&gt;</gerritVerifiedCmdBuildStarted>
        <gerritVerifiedCmdBuildNotBuilt>gerrit review &lt;CHANGE&gt;,&lt;PATCHSET&gt; --message &apos;No Builds Executed &lt;BUILDS_STATS&gt;&apos; --verified &lt;VERIFIED&gt; --code-review &lt;CODE_REVIEW&gt;</gerritVerifiedCmdBuildNotBuilt>
        <gerritFrontEndUrl>http://localhost:8888/</gerritFrontEndUrl>
        <gerritBuildStartedVerifiedValue>0</gerritBuildStartedVerifiedValue>
        <gerritBuildStartedCodeReviewValue>0</gerritBuildStartedCodeReviewValue>
        <gerritBuildSuccessfulVerifiedValue>1</gerritBuildSuccessfulVerifiedValue>
        <gerritBuildSuccessfulCodeReviewValue>0</gerritBuildSuccessfulCodeReviewValue>
        <gerritBuildFailedVerifiedValue>-1</gerritBuildFailedVerifiedValue>
        <gerritBuildFailedCodeReviewValue>0</gerritBuildFailedCodeReviewValue>
        <gerritBuildUnstableVerifiedValue>0</gerritBuildUnstableVerifiedValue>
        <gerritBuildUnstableCodeReviewValue>-1</gerritBuildUnstableCodeReviewValue>
        <gerritBuildNotBuiltVerifiedValue>0</gerritBuildNotBuiltVerifiedValue>
        <gerritBuildNotBuiltCodeReviewValue>0</gerritBuildNotBuiltCodeReviewValue>
        <enableManualTrigger>true</enableManualTrigger>
        <enablePluginMessages>true</enablePluginMessages>
        <buildScheduleDelay>3</buildScheduleDelay>
        <dynamicConfigRefreshInterval>30</dynamicConfigRefreshInterval>
        <categories class="linked-list">
          <com.sonyericsson.hudson.plugins.gerrit.trigger.VerdictCategory>
            <verdictValue>CRVW</verdictValue>
            <verdictDescription>Code Review</verdictDescription>
          </com.sonyericsson.hudson.plugins.gerrit.trigger.VerdictCategory>
          <com.sonyericsson.hudson.plugins.gerrit.trigger.VerdictCategory>
            <verdictValue>VRIF</verdictValue>
            <verdictDescription>Verified</verdictDescription>
          </com.sonyericsson.hudson.plugins.gerrit.trigger.VerdictCategory>
        </categories>
        <replicationConfig>
          <enableReplication>false</enableReplication>
          <slaves class="linked-list"/>
          <enableSlaveSelectionInJobs>false</enableSlaveSelectionInJobs>
        </replicationConfig>
        <watchdogTimeoutMinutes>0</watchdogTimeoutMinutes>
        <watchTimeExceptionData>
          <daysOfWeek/>
          <timesOfDay class="linked-list"/>
        </watchTimeExceptionData>
        <notificationLevel>ALL</notificationLevel>
      </config>
    </com.sonyericsson.hudson.plugins.gerrit.trigger.GerritServer>
  </servers>
  <pluginConfig>
    <numberOfReceivingWorkerThreads>3</numberOfReceivingWorkerThreads>
    <numberOfSendingWorkerThreads>1</numberOfSendingWorkerThreads>
    <replicationCacheExpirationInMinutes>360</replicationCacheExpirationInMinutes>
  </pluginConfig>
</com.sonyericsson.hudson.plugins.gerrit.trigger.PluginImpl>

Note: /var/lib/jenkins/.ssh/id_rsa has been generated at the time of ssh-keytool for jenkins user.

Create new Jankins Jobs:

Click on the Jenkins
New Item
Enter the Item name:git-gerrit-jenkins-java-tutorialbyexample
Click on the Ok.












































config.xml file:
<?xml version='1.0' encoding='UTF-8'?>
<project>
  <actions/>
  <description></description>
  <keepDependencies>false</keepDependencies>
  <properties/>
  <scm class="hudson.plugins.git.GitSCM" plugin="git@2.3.5">
    <configVersion>2</configVersion>
    <userRemoteConfigs>
      <hudson.plugins.git.UserRemoteConfig>
        <name>tutorialbyexample</name>
        <refspec>$GERRIT_REFSPEC</refspec>
        <url>ssh://jenkins@localhost:29418/tutorialbyexample</url>
      </hudson.plugins.git.UserRemoteConfig>
    </userRemoteConfigs>
    <branches>
      <hudson.plugins.git.BranchSpec>
        <name>$GERRIT_BRANCH</name>
      </hudson.plugins.git.BranchSpec>
    </branches>
    <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
    <submoduleCfg class="list"/>
    <extensions>
      <hudson.plugins.git.extensions.impl.BuildChooserSetting>
        <buildChooser class="com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTriggerBuildChooser" plugin="gerrit-trigger@2.13.0">
          <separator>#</separator>
        </buildChooser>
      </hudson.plugins.git.extensions.impl.BuildChooserSetting>
    </extensions>
  </scm>
  <canRoam>true</canRoam>
  <disabled>false</disabled>
  <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>

  <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
 <triggers>
    <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTrigger plugin="gerrit-trigger@2.13.0">
      <spec></spec>
      <gerritProjects>
        <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.GerritProject>
          <compareType>PLAIN</compareType>
          <pattern>tutorialbyexample</pattern>
          <branches>
            <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.Branch>
              <compareType>ANT</compareType>
              <pattern>**</pattern>
            </com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.Branch>
          </branches>
        </com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.GerritProject>
      </gerritProjects>
      <skipVote>
        <onSuccessful>false</onSuccessful>
        <onFailed>false</onFailed>
        <onUnstable>false</onUnstable>
        <onNotBuilt>false</onNotBuilt>
      </skipVote>
      <silentMode>false</silentMode>
      <notificationLevel></notificationLevel>
      <silentStartMode>false</silentStartMode>
      <escapeQuotes>true</escapeQuotes>
      <noNameAndEmailParameters>false</noNameAndEmailParameters>
      <dependencyJobsNames></dependencyJobsNames>
      <readableMessage>false</readableMessage>
      <buildStartMessage></buildStartMessage>
      <buildFailureMessage></buildFailureMessage>
      <buildSuccessfulMessage></buildSuccessfulMessage>
      <buildUnstableMessage></buildUnstableMessage>
      <buildNotBuiltMessage></buildNotBuiltMessage>
      <buildUnsuccessfulFilepath></buildUnsuccessfulFilepath>
      <customUrl></customUrl>
      <serverName>gerrit-localhost</serverName>
      <triggerOnEvents>
        <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.events.PluginPatchsetCreatedEvent>
          <excludeDrafts>false</excludeDrafts>
          <excludeTrivialRebase>false</excludeTrivialRebase>
          <excludeNoCodeChange>false</excludeNoCodeChange>
        </com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.events.PluginPatchsetCreatedEvent>
        <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.events.PluginDraftPublishedEvent/>
        <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.events.PluginChangeMergedEvent/>
      </triggerOnEvents>
      <allowTriggeringUnreviewedPatches>false</allowTriggeringUnreviewedPatches>
      <dynamicTriggerConfiguration>false</dynamicTriggerConfiguration>
      <triggerConfigURL></triggerConfigURL>
      <triggerInformationAction/>
    </com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTrigger>
  </triggers>
  <concurrentBuild>false</concurrentBuild>
  <builders/>
  <publishers/>
  <buildWrappers/>
</project>


It's done for now try it from your end and put your point if any.


References: