snippetMajor
How can we get the jenkins console output in a text file?
Viewed 0 times
canthefilejenkinstextoutputgethowconsole
Problem
How can i get the Jenkins console output in a text file?
I want to share it with someone, is there any way to do it?
I want to share it with someone, is there any way to do it?
Solution
if you want just access the log and download it as a txt file to your workspace from the job's URL:
On Linux, you can use
The actual log file on the file system is in the Master machine. You can find it under:
${BUILD_URL}/consoleTextOn Linux, you can use
wget to download it to your workspacewget ${BUILD_URL}/consoleTextThe actual log file on the file system is in the Master machine. You can find it under:
$JENKINS_HOME/jobs/$JOB_NAME/builds/lastSuccessfulBuild/logCode Snippets
${BUILD_URL}/consoleTextwget ${BUILD_URL}/consoleTextContext
StackExchange DevOps Q#6085, answer score: 41
Revisions (0)
No revisions yet.