Jenkins spring clean¶
Updating and cleaning the Jenkins box¶
Check if the Jenkins box needs upgrading:
sudo apt-mark hold google-chrome-stable && sudo apt dist-upgrade && sudo apt-mark unhold google-chrome-stable
Remove unneeded packages:
sudo apt autoremove --purge
Delete apt cache:
sudo apt clean
Delete jenkins pip cache:
rm -rf /var/lib/jenkins/.cache/pip/*
Prune Docker containers and images:
sudo docker system prune
Update Chrom and Chromedriver¶
We use Chrome and Chromedriver to run the functional tests on Jenkins. SSH into Jenkins and run:
chromedriver --version
to see the version of Chromedriver. The major version of this will match the major version of Chrome.
Check the Chrome repository and the Chromedriver releases to see if there’s a new major version of both.
If so, update the Chrome version in the package list and the URL to download Chromedriver, then run:
TAGS=apt make jenkins
from the digitalmarketplace-jenkins repository.