Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 1.26 KB

README.md

File metadata and controls

34 lines (23 loc) · 1.26 KB

check-jenkins-updates

A python script that checks for new Jenkins releases and sends email accordingly

Requirements

  • Python 3.8+

pip packages:

Package requirements are defined in requirements.txt

Configuration

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

Usage

$ python check-jenkins-updates.py