Tools and tips.
Laminar installation automatically create a laminar user.
To edit files in Laminar config folder (default /var/lib/laminar/cfg/jobs
) without sudo
, you can use the GNU/Linux group mechanism :
sudo usermod -a -G laminar jovian
chmod -R sudo chmod -R g+w /var/lib/laminar/cfg/
How to install and administrate Jenkins. This tool is using Java, requiring a lot of memory and CPU resources. It is not recommanded to use it on Rasperry Pi, the UI is slow and unresponsive.
You need Java 8 or 11 if you have Jenkins above 2.164.
sudo apt install openjdk-8-jre
To execute on debian server
wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add - ;
sudo sh -c 'echo deb https://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list' ;
sudo apt-get update ;
sudo apt-get install jenkins ;
Jenkins is now installed as a daemon and you should connect locally to it with a browser to complete installation.
192.168.0.40:8080
The best way to secure Jenkins is to use the proxy with Apache.
Jenkins wiki : running Jenkins behind Apache
See the JovianHttpd repository to see the template for configuration.
Integrate Jenkins with other tools
Install gogs-webhook
plugin.
Documentation on plugins.jenkins.io.
In the Gogs repository settings, add the webhook
https://jenkins.jovian-hersemeule.eu/gogs-webhook/?job=experiments/connect
Adapt job name.
ssh-keygen
How to deploy on a Httpd server.
You have to set jenkins user owner of the targeted folder.
In file /var/log/jenkins/jenkins.log
To allow the command git describe
to work, go to your job configuration and add an Advanced Cloned Behaviours and tick the tags checkbox.
Configuration parameters can be found at /etc/default/jenkins
Useful to build tags.