Search This Blog

Showing posts with label CI. Show all posts
Showing posts with label CI. Show all posts

Monday, June 2, 2014

Auto Merging of Git Branches through Jenkins

Two Git branches can be merged and pushed to remote as a part of the build process. This is possible with Jenkins Git plugin with just 2-3 steps configuration. Lets see that in detail.

  • Create/configure a job in Jenkins
  • In Source code management configure the git repository and the integration branch.
    • While merging Test4 branch into Test3 branch; integration branch is Test4 and the Branch to merge to is Test3

Monday, May 12, 2014

How to Restart Jenkins


  • Login to the Jenkins server using powershell or Putty
  • In order to check of the jenkins process is running or not; execute the below command; This will give you the process Id if it is running.
                        > ps -ef | grep jenkins
  • Jenkins service can be started/stopped/restarted only as a root user. So change to the root user and do the action as below
                        > sudo su
                        > sudo service jenkins start
  • If the service is not detected using this script; do the following
                       > /etc/init.d/jenkins start
  • The above command will start your jenkins server. Now open the Jenkins web page in browser and check for the status.