How can we get the jenkins console output in a text file(workspace) including jenkins console output also

Viewed 8280

How can we get the jenkins console output in a text file (workspace) including jenkins console output also.

1 Answers

if you want just access the log and download it as a txt file to your workspace from the job's URL:

${BUILD_URL}/consoleText

On Linux, you can use wget to download it to your workspace

wget ${BUILD_URL}/consoleText

The actual log file on the file system is in the Master machine. You can find it under:

$JENKINS_HOME/jobs/$JOB_NAME/builds/lastSuccessfulBuild/log

Related