This release is a pre-release and may not be stable for production use.
download-jenkins-build-log utility
This is a simple tool that enables downloading console output files from Jenkins jobs. Freestyle, pipeline and matrix jobs are supported.
Pre-requisites
Python 3.3 or later
Installation
pip3 install download-jenkins-build-log
Basic Usage
Use
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 https://myjenkins.example.com:8080, use the following command line:
download-jenkins-build-log --url https://myjenkins.example.com:8080 --build 123 --directory logs my-freestyle-job
Authentication
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 |
|---|---|
DOWNLOAD_JENKINS_BUILD_LOG_LOGIN |
login name |
DOWNLOAD_JENKINS_BUILD_LOG_API_TOKEN |
password or API token |
Return Codes
The tool will return 0 in case of successful execution, and -1 in case of an error.
Release files for download-jenkins-build-log 0.0.1a7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| download-jenkins-build-log-0.0.1a7.tar.gz | 3.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| download_jenkins_build_log-0.0.1a7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.3 kB
Release files / download-jenkins-build-log-0.0.1a7.tar.gz
| Download URL | download-jenkins-build-log-0.0.1a7.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1550399f8e74534696717f9ea1f087cd6b6e81c428698ecd74bcdaa1460b36de
|
|
BLAKE2b-256 checksum How to use checksums |
1fb5fe49c704737e2c13103313c777fbaabc44893c67b917d1e4e2b0ccda91ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
|
Release files / download_jenkins_build_log-0.0.1a7-py3-none-any.whl
| Download URL | download_jenkins_build_log-0.0.1a7-py3-none-any.whl |
|---|---|
| Size | 8.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
05358383a374181ef1e6aa8ea9bf195651c0030b57079a55ffe858fb0518e705
|
|
BLAKE2b-256 checksum How to use checksums |
13d70b576fb2832bf871408b92b68d56966d174de613d1388cb24244cca53c38
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
|