[CLOSED][Guide] How-to Automate Your ROM Build Process Using Jenkins - Setup Nightlies

Status
Not open for further replies.
Search This thread
A

AndroidSlave

Guest
i have question what will be the estimate hardisk size if i build on vps in one device rom and can you share some affordable hosting we can use

Probably want at least 100gb with 4+ gb ram, and always an SSD HD 64 bit Ubuntu (if you are just building one ROM

My favorite host is weloveservers.net , they are very cheap and reliable for me for 2 years+ now. They often have good promos too.
 

maxprzemo

Senior Member
Jan 6, 2013
131
426
Ostrów Wielkopolski
If you use two or more partitions on your computer, for example:
/ ( partition for system, small partition, at my place 20 GB)
/home (partition for user data, big partition, at my place 200 GB)
Sources do not come into /var/lib/jenkins. Therefore, you need a few odd tricks.
I have a source in /home/maxprzemo/CM13
Jenkins working directory is /var/lib/jenkins/jobs/CM13/workspace
Make an empty folder with the name CM13 (rename the CM13 on your folder name)
Code:
sudo mkdir /var/lib/jenkins/jobs/CM13/workspace/CM13
mount in this folder sources (replace "maxprzemo" on the name of your user)
Code:
sudo mount -o bind  /home/maxprzemo/CM13 /var/lib/jenkins/jobs/CM13/workspace/CM13
give permissions
Code:
sudo chown -R jenkins:jenkins /var/lib/jenkins/jobs/CM13/workspace/CM13
For automatic mounting at startup add to file etc/init.d/jenkins (replace "maxprzemo" on the name of your user)
Code:
mount -o bind  /home/maxprzemo/CM13 /var/lib/jenkins/jobs/CM13/workspace/CM13
To work correctly "repo sync"add to your script .sh (replace "maxprzemo" on the name of your user)
Code:
export PATH=/home/maxprzemo/bin:/var/lib/jenkins/bin:$PATH
Done :)
It may be useful to someone.
 
Status
Not open for further replies.

Top Liked Posts