Commands you can use to interact with Jenkins
Fetch the Jenkins job results
jenkins_build_data.py
You can download test results and console output:
jenkins_build_data.py
In case the truncated console log does not provide enough information, download the full log
jenkins_build_data.py
in case the jenkins job/build is still BUILDING, you can poll until it is finished (defaults 2 minutes):
jenkins_build_data.py
Usage:
jenkins_build_data.py [-h] [--include INCLUDE] [--download SPEC] [--download-dir DOWNLOAD_DIR] [--json] [-q] url
INCLUDE can be: console,tests,artifacts,stages,full-console
Downloading artifacts
Always use
/tmp/jenkins-artifacts
as the download directory:
jenkins_build_data.py