Skip to main content

Posts

Showing posts from 2016

Move Jenkins from default directory to another directory

Main requirement of moving jenkins from root is that "root" always have lesser space captured in cloud platforms and "ebs" will be attached to provide more space to the node. By default when you install jenkins on any linux machines(centos/ubuntu etc...) Jenkins will be placed under /var/lib/jenkins with owner & group ownership of "jenkins" user. When we want to move jenkins from "root"(which is not having sufficient space) to /ebs(elastic block storage of any cloud CAAS), just follow below steps: The example im taking here is I will be moving jenkins from "/var/lib/jenkins" to "/ebs/jenkins" 1. firstly stop the jenkins running by "sudo service jenkins stop" 2. copy all the contents of jenkins folder from "/var/lib/jenkins" to "/ebs/jenkins" by - sudo cp -r /var/lib/jenkins /ebs/ 3. now come to /ebs by "cd /ebs" and check the owner & group of jenkins folder under...