User:Wizzup/Jenkins

From Maemo Leste Wiki
< User:Wizzup
Revision as of 08:34, 28 April 2022 by Wizzup (talk | contribs) (Created page with "Setting up a Jenkins build slave requires the following steps to be executed on a machine that matches the Maemo devuan version (Not sure if this is strictly required, we just...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Setting up a Jenkins build slave requires the following steps to be executed on a machine that matches the Maemo devuan version (Not sure if this is strictly required, we just did it that way before).

{{{ apt install default-jre-headless apt install jenkins-debian-glue jenkins-debian-glue-buildenv-devuan apt purge exim4-base exim4-config exim4-daemon-light apt --purge autoremove apt install ntp

useradd -m -s /bin/bash jenkins passwd jenkins su - jenkins # add key apt install sudo sudo vi /etc/sudoers # allow passwordless sudo for sudo group gpasswd -a jenkins sudo }}}

Also copy over /etc/jenkins from one of the existing nodes, specifically for the debian glue config, see below.

Then add it to Jenkins as a node (I just copied an existing node and changed the host/ip).

Then run a build, it will likely fail, because our keys are not yet added to the pbuilder environment that just got created during the first build.

Add it like so:

{{{ cd /var/cache/pbuilder/base-beowulf-arm*.cow wget https://maedevu.maemo.org/extras-key.asc wget https://maedevu.maemo.org/testing-key.asc

chroot /var/cache/pbuilder/base-beowulf-arm*.cow apt install gnupg1 apt-key add < extras-key.asc apt-key add < testing-key.asc rm *.asc exit cd - }}}