Reputation: 21
How can we get the jenkins console output in a text file (workspace) including jenkins console output also.
Upvotes: 2
Views: 10571
Reputation: 382
If the curl command isn't working for you due to user authentication issues, you can visit the ${BUILD_URL}/consoleText
URL in your browser, then press CTRL+S as the page is loading.
Upvotes: 0
Reputation: 762
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
Upvotes: 2