To my surprise today Jenkins startede to speak to me, that was pretty scary. To change that behaviour then you have to install a locale pluging and set the default language.
INSTALL THE LOCALE PLUGIN
Go to -> Manage Jenkins -> Manage Plugins -> Click on Availables -> Check the “Locale plugin”
Just choose the option “Download now and install after restart”
Go to the plugin manager again and check if it is enabled.
SET THE LOCALE TO ENGLISH
Go to -> Manage Jenkins -> Configure System -> Locale -> set it to en
Check the option Ignore browser preferences otherwise your browser language would set it to your locale and it won’t work.
Jenkins is an automation server, that automates repeating tasks that is used in continuous integration and development.
It can also be used as an advanced crontab that send you an e-mail whenever a jobs has failed with a log from the console output.
It can pull code from a repository and trigger every thime there is a new release or it can be triggered by a push from github or other kinds of systems that can use webhooks
Its very userfriendly to setup and use.
This guide describe how to install it on a brand new Ubuntu 18.04 instance.
sudo apt install default-jre
wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ \
sudo apt update
sudo apt install jenkins
sudo systemctl enable jenkins
sudo systemctl start jenkins
SETTING UP JENKINS
Start your browser and go to the url where jenkins is running
You should see a Jenkins screen that asks for a generated install password
Go to you terminal and type this to get the password
sudo cat /var/lib/jenkins/secrets/initialAdminPassword
ALLOWING JENKINS TO EXECUTE AS SUDO
If you have the needs to give Jenkins access to execute commands as root trough sudo then the solution to is to add this line in the /etc/sudoers file
jenkins ALL=(ALL:ALL) NOPASSWD:ALL
I have created a small simple snapshot ruby script that create a timestamp for each snapshot
servername = ARGV
tank = ARGV
t = Time.now()
t = t.strftime("%d-%m-%y")
cmd = "zfs snapshot " + tank + "/" + servername + "@snap-" + t
puts "taking snapshot of " + servername + " " + cmd
Here is an example of how to use it in your /etc/crontab
05 5 * * * root /root/scripts/snapshot.rb backup rasp1 >/dev/null 2>&1
It makes a snapshot of /backup/rasp1 on a daily basis