modified version of jenkins debian glue (https://github.com/mika/jenkins-debian-glue) for devuan
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

NOTES.org 2.4 KiB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. * Misc Notes related to Jenkins
  2. This document provides some notes you might consider useful, but aren't necessarily releated to jenkins-debian-glue itself.
  3. ** Install jenkins.rb on Debian
  4. Goal: Clean installation of https://github.com/cowboyd/jenkins.rb on Debian, using Debian packages.
  5. Recipe provided by Michael Prokop:
  6. #+BEGIN_EXAMPLE
  7. mkdir jenkins-rb.deb ; cd jenkins-rb.deb
  8. gem2deb httparty
  9. gem2deb crack
  10. gem2deb thor
  11. sudo apt-get install libterm-ansicolor-ruby ruby-json libbuilder-ruby
  12. sudo dpkg -i ruby-crack_*.deb ruby-httparty_*.deb ruby-jenkins_*.deb ruby-thor_*.deb
  13. #+END_EXAMPLE
  14. Recipe provided by Michael Gebetsroither:
  15. #+BEGIN_EXAMPLE
  16. git clone git://github.com/gebi/rubyrrdtool.git
  17. cd rubyrrdtool
  18. ruby extconf.rb
  19. make
  20. checkinstall -D --pkgname=rubyrrdtool --maintainer=whatever@example.org --install=no --pkgversion=0.6.0 make install
  21. #+END_EXAMPLE
  22. ** Install python-jenkins on Debian
  23. Goal: Clean installation of https://launchpad.net/python-jenkins on Debian, using Debian packages.
  24. Recipe provided by Michael Prokop:
  25. #+BEGIN_EXAMPLE
  26. bzr branch lp:python-jenkins
  27. cd python-jenkins
  28. apt-get install python-stdeb
  29. python setup.py --command-packages=stdeb.command bdist_deb
  30. sudo dpkg -i deb_dist/python-*deb
  31. #+END_EXAMPLE
  32. ** Use chroot for building non-Debian stuff
  33. Goal: Do not build stuff on Jenkins Master/Slaves but use a dedicated chroot instead.
  34. Background: Whereas jenkins-debian-glue uses cowbuilder/pbuilder and its separate chroots for building you might want to also build
  35. e.g. documentation without abusing your main build host(s). Using dedicated chroots as slave nodes inside Jenkins provides that.
  36. Set up a basic chroot (e.g. Debian/squeeze):
  37. #+BEGIN_EXAMPLE
  38. debootstrap squeeze /srv/chroot_documentation_builder http://debian.inode.at/debian
  39. wget -O ./make_chroot_jail https://github.com/grml/grml-scripts/raw/master/usr_sbin/make_chroot_jail
  40. bash ./make_chroot_jail chroot-docs /bin/chroot-shell /srv/chroot_documentation_builder
  41. #+END_EXAMPLE
  42. Test the login via SSH running:
  43. : ssh chroot-docs@localhost
  44. Finally install Java (required for Jenkins) and build-essential (and optionally whatever you might also need):
  45. #+BEGIN_EXAMPLE
  46. chroot /srv/chroot_documentation_builder
  47. mount -t proc none /proc
  48. apt-get install openjdk-6-jre
  49. mkdir /var/lib/jenkins
  50. chown chroot-docs /var/lib/jenkins/
  51. apt-get install build-essential
  52. #+END_EXAMPLE
  53. Then configure a new Slave node in Jenkins using /var/lib/jenkins as $HOME directory and user chroot-docs as login.