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?


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 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:


  • Also use $WORKSPACE.
    – Nakilon
    Sep 5 '19 at 21:09
  • Thanks for this. I had to open a full console output via browser, but it was very big, my browser cannot handle it. You can change the last part of the URL from consoleFull to consoleText as noted above. While the browser is loading it, you can hit CTRL+S to save it as a txt file and open it in notepad++. Or as noted above, use wget or curl which should be available if you have git for windows installed (for windows users).
    – thirdy
    Sep 12 '19 at 1:29

For Windows you could use curl in a powershell prompt:

curl  ${BUILD_URL}\consoleText -OutFile C:\SomeLocation\SomeFile.txt

For MacOS:

curl  ${BUILD_URL}/consoleText -o /SomeLocation/SomeFile.txt

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.