java -jar jenkins-cli.jar
console JOB [BUILD] [-f] [-n N]
JOB
: Name of the jobBUILD
: Build number or permalink to point to the build. Defaults to the last build-f
: If the build is in progress, append console output as it comes, like tail -f-n N
: Display the last N lines.ssh -l <ssh_username> -p <port_no> <Jenkins_URL> console <JOB_NAME>