Jenkins scripts I use in my projects and spend some time researching.
I think it will be nice to put it here since it took me sometime to find solutions.
OS: Ubuntu 16.04 Xenial
Script to download the pipeline PNG from Jenkins Blue Ocean latest Branch
sudo apt-get install chromium-chromedriver
sudo pip install Pillow
sudo pip install selenium
sudo pip install PyVirtualDisplay
OS: CentOS7
Template that will send a nice formated email resume to the handlers of the project.
mkdir /var/lib/jenkins/email-templates
On the Jenkinsfile with emailext:
--> body: '${JELLY_SCRIPT,template="emailext_template"}'
OS: CentOS7
Jenkinsfile DSL pipeline integration with: Jira, Gitlab and Email-ext
Remove the template and add it in the root of your repository