Skip to main content

Command-line utility for downloading Jenkins job console logs

Project description

download-jenkins-build-log utility

Build status

This is a simple tool that enables downloading console output files from Jenkins jobs. Freestyle, pipeline and matrix jobs are supported.


Python 3.3 or later


pip3 install download-jenkins-build-log

Basic Usage


download-jenkins-build-log -h

to see all the available options.

For example, to download the console log of a freestyle project my-freestyle-job with the build number 123 into the target directory of logs from the Jenkins instance at, use the following command line:

download-jenkins-build-log --url --build 123 --directory logs my-freestyle-job


You may use the --login to set the user name and the --token to set the password or API token to access Jenkins. Jenkins documentation recommends creating an API token to use with tools.

Alternatively, you can also provide credentials with the following environment variables.

Environment variable name Description

Return Codes

The tool will return 0 in case of successful execution, and -1 in case of an error.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for download-jenkins-build-log, version 0.0.1a7
Filename, size File type Python version Upload date Hashes
Filename, size download_jenkins_build_log-0.0.1a7-py3-none-any.whl (8.7 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size download-jenkins-build-log-0.0.1a7.tar.gz (3.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page