How can we get the jenkins console output in a text file?

HOW TO -️ October 18, 2021

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?

Answer

See also https://stackoverflow.com/questions/37018509/jenkinsfile-build-log

Initializing...