InterviewSolution
Saved Bookmarks
| 1. |
How to download the Console log for a particular Jenkins build programmatically? |
|
Answer» Using the JENKINS CLI - console - command java -jar jenkins-cli.jar console JOB [BUILD] [-f] [-N N] Produces the console OUTPUT of a specific build to stdout, as if you are doing 'cat build.log'
E.g. ssh -l <ssh_username> -p <port_no> <Jenkins_URL> console <JOB_NAME> |
|