A python script that checks for new Jenkins releases and sends email accordingly
- Python 3.8+
pip packages:
Package requirements are defined in requirements.txt
Configuration is performed via environment variables:
ENV VAR | Description |
---|---|
CHECK_JENKINS_UPDATES_DEBUG |
if set to 1, print debut output to stdout; if set to 0, no debug output Default: 0 |
CHECK_JENKINS_UPDATES_SOURCE |
URL to check for updates Default: http://updates.jenkins-ci.org/stable/update-center.json |
CHECK_JENKINS_UPDATES_SMTP |
SMTP server for sending email Default: localhost |
CHECK_JENKINS_UPDATES_FROM |
email address to send from Default: check-jenkins-updates@unknown |
CHECK_JENKINS_UPDATES_RECIPIENT |
email address(es) to send to; multiple email addresses must be comma-separated |
CHECK_JENKINS_UPDATES_CACHE |
path to cache file Default: /tmp/check_jenkins_version.cache |
CHECK_JENKINS_UPDATES_RETRY_TIMEOUT |
max time in seconds to retry failed connections to the updates source URL Default: 120 |
$ python check-jenkins-updates.py